//----------------------------------------------------------- // 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 PNDTRACKCANDHIT_HH #define PNDTRACKCANDHIT_HH // Root Class Headers ---------------- #include "TObject.h" #include #include #include class PndTrackCandHit : public TObject{ public: PndTrackCandHit():fHitId(-1), fDetId(-1), fRho(0){} PndTrackCandHit(Int_t detId, Int_t hitId, Double_t rho):fHitId(hitId), fDetId(detId), fRho(rho){} ~PndTrackCandHit() {} bool operator< (const PndTrackCandHit& rhs) const {return fRho (const PndTrackCandHit& rhs) const {return fRho>rhs.fRho;}; bool operator<= (const PndTrackCandHit& rhs) const {return fRho<=rhs.fRho;}; bool operator>= (const PndTrackCandHit& rhs) const {return fRho>=rhs.fRho;}; bool operator== (const PndTrackCandHit& hit) const { return (fHitId == hit.fHitId && fDetId == hit.fDetId); } bool operator!= (const PndTrackCandHit& hit) const { return (fHitId != hit.fHitId || fDetId != hit.fDetId); } Int_t GetHitId()const {return fHitId;} Int_t GetDetId()const {return fDetId;} Double_t GetRho()const {return fRho;} void Print(); private : Int_t fHitId; Int_t fDetId; Double_t fRho; ///< sorting parameter ClassDef(PndTrackCandHit,1); }; #endif //-------------------------------------------------------------- // $Log$ //--------------------------------------------------------------