File indexing completed on 2025-08-05 08:18:21
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015
0016
0017
0018
0019
0020
0021
0022
0023 #ifndef genfit_TrackCandHit_h
0024 #define genfit_TrackCandHit_h
0025
0026 #include <TObject.h>
0027
0028
0029 namespace genfit {
0030
0031
0032
0033
0034 class TrackCandHit : public TObject {
0035 public:
0036
0037
0038 TrackCandHit(int detId = -1,
0039 int hitId = -1,
0040 int planeId = -1,
0041 double sortingParameter = 0.);
0042
0043 virtual ~TrackCandHit() {;}
0044
0045 virtual TrackCandHit* clone() const {return new TrackCandHit(*this);}
0046
0047
0048 int getDetId() const {return detId_;}
0049 int getHitId() const {return hitId_;}
0050 int getPlaneId() const {return planeId_;}
0051 double getSortingParameter() const {return sortingParameter_;}
0052
0053
0054 void setSortingParameter(double sortingParameter) {sortingParameter_ = sortingParameter;}
0055
0056 virtual void Print(Option_t* option = "") const;
0057
0058
0059
0060
0061 friend bool operator== (const TrackCandHit& lhs, const TrackCandHit& rhs);
0062 friend bool operator!= (const TrackCandHit& lhs, const TrackCandHit& rhs) {
0063 return !(lhs == rhs);
0064 }
0065
0066
0067
0068 friend bool operator< (const TrackCandHit& lhs, const TrackCandHit& rhs) {
0069 return (lhs.sortingParameter_ < rhs.sortingParameter_);
0070 }
0071
0072 protected:
0073
0074
0075 TrackCandHit(const TrackCandHit& other) :
0076 TObject(other), detId_(other.detId_), hitId_(other.hitId_), planeId_(other.planeId_), sortingParameter_(other.sortingParameter_) {;}
0077
0078 TrackCandHit& operator=(const TrackCandHit&);
0079
0080
0081
0082 int detId_;
0083 int hitId_;
0084 int planeId_;
0085 double sortingParameter_;
0086
0087
0088 public:
0089
0090 ClassDef(TrackCandHit,1)
0091
0092 };
0093
0094 }
0095
0096
0097 #endif