//----------------------------------------------------------- // 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 - Jülich) during the Panda Meeting 03/09 // // //----------------------------------------------------------- #ifndef PNDTRACKCAND_HH #define PNDTRACKCAND_HH // Root Class Headers ---------------- #include "TObject.h" #include #include typedef std::multimap >::const_iterator mapIter; class PndTrackCandHit { public : PndTrackCandHit():fHitId(-1), fDetId(-1), fRho(0){} PndTrackCandHit(Int_t detId, Int_t hitId, Double_t rho):fDetId(detId), fHitId(hitId), fRho(rho){} friend bool operator< (const PndTrackCandHit& lhs, const PndTrackCandHit& rhs) {return lhs.GetRho()GetSortedHits(); void Sort(); // Modifiers ----------------------- void AddHit(UInt_t detId, UInt_t hitId, Double_t rho); void DeleteHit(UInt_t detId, UInt_t hitId); Int_t HitInTrack(UInt_t detId, UInt_t hitId); void Reset(); private: // Private Data Members ------------ std::vector fHitId; ///< first index is detId, second index is hit Id bool sorted; public: ClassDef(PndTrackCand,1) }; #endif //-------------------------------------------------------------- // $Log$ //--------------------------------------------------------------