//----------------------------------------------------------- // File and Version Information: // $Id$ // // Description: // a cluster in the tpc // // // Environment: // Software developed for the PANDA Detector at FAIR. // // Author List: // Sebastian Neubert TUM (original author) // // //----------------------------------------------------------- #ifndef TPCCLUSTER_HH #define TPCCLUSTER_HH // Base Class Headers ---------------- #include "TObject.h" // Collaborating Class Headers ------- #include // remove if you do not need streaming op #include #include "TVector3.h" #include "McId.h" // Collaborating Class Declarations -- class TpcCluster : public TObject{ public: // Constructors/Destructors --------- TpcCluster(); TpcCluster(const TVector3& pos, unsigned int amp, unsigned int index, unsigned int size=1); TpcCluster(const TVector3& pos, const TVector3& sig, unsigned int amp, unsigned int index, unsigned int size=1); virtual ~TpcCluster(); friend std::ostream& operator<< (std::ostream& s, const TpcCluster& me); // Accessors ----------------------- const TVector3& pos() const {return _pos;} const TVector3& sig() const {return _sig;} unsigned int amp() const {return _amp;} unsigned int size() const {return _size;} unsigned int index() const {return _index;} const McId& mcId() const {return _mcid;} // Modifiers ----------------------- void SetMcId(const McId& m){_mcid=m;} void SetIndex(unsigned int id){_index=id;} // Operations ---------------------- private: // Private Data Members ------------ TVector3 _pos; TVector3 _sig; // errors unsigned int _amp; unsigned int _size; unsigned int _index; McId _mcid; // Private Methods ----------------- public: ClassDef(TpcCluster,1) }; #endif //-------------------------------------------------------------- // $Log$ //--------------------------------------------------------------