//----------------------------------------------------------- // File and Version Information: // $Id$ // // Description: // Implementation of class PndTrackCand // see PndTrackCand.hh for details // // Environment: // Software developed for the PANDA Detector at FAIR. // // Author List: // Tobias Stockmanns (IKP - Juelich) during the Panda Meeting 03/09 // // //----------------------------------------------------------- #ifndef PNDTRACKCAND_HH #define PNDTRACKCAND_HH // Root Class Headers ---------------- #include "PndTrackCandHit.h" #include "FairMultiLinkedData.h" #include "TObject.h" #include "TVector3.h" #include "TString.h" #include #include #include typedef std::multimap >::const_iterator mapIter; class PndTrackCand : public FairMultiLinkedData { public: // Constructors/Destructors --------- PndTrackCand(); ~PndTrackCand(); // operators bool operator== (const PndTrackCand& rhs); // Accessors ----------------------- PndTrackCandHit GetSortedHit(UInt_t i){ if (sorted == false) Sort(); return fHitId.at(i); } UInt_t GetNHits() const {return fHitId.size();} int getMcTrackId() const {return fMcTrackId;} TVector3 getPosSeed() const {return fPosSeed;} TVector3 getDirSeed() const {return fDirSeed;} double getQoverPseed() const {return fQoverPseed;} std::vectorGetSortedHits(); void Sort(); // Modifiers ----------------------- void AddHit(UInt_t detId, UInt_t hitId, Double_t rho); void AddHit(TString branchName, UInt_t hitId, Double_t rho); void DeleteHit(UInt_t detId, UInt_t hitId); Int_t HitInTrack(UInt_t detId, UInt_t hitId); void setMcTrackId(int i){fMcTrackId=i;} void setTrackSeed(const TVector3& p,const TVector3& d,double qop){ fPosSeed=p;fDirSeed=d;fQoverPseed=qop; } void Reset(); void Print(); private: // Private Data Members ------------ std::vector fHitId; ///< first index is detId, second index is hit Id bool sorted; int fMcTrackId; //track id for MC simulation TVector3 fPosSeed; TVector3 fDirSeed; double fQoverPseed; public: ClassDef(PndTrackCand,1); }; #endif //-------------------------------------------------------------- // $Log$ //--------------------------------------------------------------