File indexing completed on 2024-04-06 12:05:18
0001
0002
0003
0004
0005
0006
0007
0008
0009 #ifndef DataFormats_TotemReco_TotemT2RecHit_h
0010 #define DataFormats_TotemReco_TotemT2RecHit_h
0011
0012 #include "DataFormats/GeometryVector/interface/GlobalPoint.h"
0013
0014 class TotemT2RecHit {
0015 public:
0016 TotemT2RecHit() = default;
0017 explicit TotemT2RecHit(const GlobalPoint&, float, float, float);
0018
0019 const GlobalPoint centre() const { return centre_; }
0020 void setTime(float time) { time_ = time; }
0021 float time() const { return time_; }
0022 void setTimeUnc(float time_unc) { time_unc_ = time_unc; }
0023 float timeUnc() const { return time_unc_; }
0024 void setToT(float tot) { tot_ = tot; }
0025 float toT() const { return tot_; }
0026
0027 private:
0028
0029 GlobalPoint centre_;
0030
0031 float time_{0.f};
0032
0033 float time_unc_{0.f};
0034
0035 float tot_{0.f};
0036 };
0037
0038 bool operator<(const TotemT2RecHit&, const TotemT2RecHit&);
0039
0040 #endif