//----------------------------------------------------------- // File and Version Information: // $Id$ // // Description: // Track information after Hough PR // // // Environment: // Software developed for the PANDA Detector at FAIR. // // Author List: // Philipp Gadow TUM (original author) // // //----------------------------------------------------------- #ifndef TPCTRACKALICE_HH #define TPCTRACKALICE_HH // Base Class Headers ---------------- #include "TObject.h" // Collaborating Class Headers ------- #include #include "TVector3.h" #include "TpcCluster.h" // Collaborating Class Declarations -- class TVector3; class TpcTrackAlice : public TObject{ public: // Constructors/Destructors --------- TpcTrackAlice(); TpcTrackAlice(TVector3 pos,TVector3 poserr, TVector3 mom, TVector3 momerr, std::vector clusters); ~TpcTrackAlice(){;} // Accessors ----------------------- const TVector3& pos() const {return _pos;} const TVector3& poserr() const {return _poserr;} const TVector3& mom() const {return _mom;} const TVector3& momerr() const {return _momerr;} bool isFitted() const {return _isFitted;} bool isInitialized() const {return _isInitialized;} bool isFinished(){return _isFinished;} bool isGood(){return _isGood;} unsigned int getNumClusters() const {return _clusters.size();} TpcCluster* getCluster(unsigned int i) const {return _clusters[i];} TpcCluster* getLastCluster() const {return _clusters.back();} TpcCluster* getFirstCluster() const {return _clusters.front();} const std::vector* getClusters() const {return &_clusters;} // Modifiers ----------------------- void setFinished(bool opt=true){_isFinished=opt;} void setGood(bool opt=true){_isGood=opt;} void addCluster(TpcCluster* clus); // Operations ---------------------- void setVerbose(bool opt=true){fVerbose=opt;} private: // Operations ---------------------- // Private Data Members ------------ TVector3 _pos; // position of hough track TVector3 _poserr; // error of position of hough track TVector3 _mom; // momentum of hough track TVector3 _momerr; // error of momentum of hough track bool _isFitted; // fitted plane and dip bool _isInitialized; // initSL was called, is set to false if fitandsort is called bool _isFinished; // track is finished, no more hits will be added bool _isGood; // track cannot be deleted by PR bool fVerbose; std::vector _clusters; // clusters of the track; track has ownership! // Private Methods ----------------- public: ClassDef(TpcTrackAlice,1) }; #endif //-------------------------------------------------------------- // $Log$ //--------------------------------------------------------------