File indexing completed on 2024-04-06 12:04:01
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010 #ifndef DataFormats_CTPPSReco_TotemRPRecHit
0011 #define DataFormats_CTPPSReco_TotemRPRecHit
0012
0013
0014
0015
0016
0017
0018 class TotemRPRecHit {
0019 public:
0020 TotemRPRecHit(double position = 0, double sigma = 0) : position_(position), sigma_(sigma) {}
0021
0022 inline double position() const { return position_; }
0023 inline void setPosition(double position) { position_ = position; }
0024
0025 inline double sigma() const { return sigma_; }
0026 inline void setSigma(double sigma) { sigma_ = sigma; }
0027
0028 private:
0029
0030 double position_;
0031
0032
0033 double sigma_;
0034 };
0035
0036
0037
0038 inline bool operator<(const TotemRPRecHit &l, const TotemRPRecHit &r) {
0039 if (l.position() < r.position())
0040 return true;
0041 if (l.position() > r.position())
0042 return false;
0043
0044 if (l.sigma() < r.sigma())
0045 return true;
0046
0047 return false;
0048 }
0049
0050 #endif