CMS 3D CMS Logo

TotemT2RecHit.h
Go to the documentation of this file.
1 /****************************************************************************
2  *
3  * This is a part of TOTEM offline software.
4  * Author:
5  * Laurent Forthomme
6  *
7  ****************************************************************************/
8 
9 #ifndef DataFormats_TotemReco_TotemT2RecHit_h
10 #define DataFormats_TotemReco_TotemT2RecHit_h
11 
13 
15 public:
16  TotemT2RecHit() = default;
17  explicit TotemT2RecHit(const GlobalPoint&, float, float, float);
18 
19  const GlobalPoint centre() const { return centre_; }
20  void setTime(float time) { time_ = time; }
21  float time() const { return time_; }
22  void setTimeUnc(float time_unc) { time_unc_ = time_unc; }
23  float timeUnc() const { return time_unc_; }
24  void setToT(float tot) { tot_ = tot; }
25  float toT() const { return tot_; }
26 
27 private:
31  float time_{0.f};
33  float time_unc_{0.f};
35  float tot_{0.f};
36 };
37 
38 bool operator<(const TotemT2RecHit&, const TotemT2RecHit&);
39 
40 #endif
bool operator<(const TotemT2RecHit &, const TotemT2RecHit &)
void setToT(float tot)
Definition: TotemT2RecHit.h:24
GlobalPoint centre_
Tile centre position.
Definition: TotemT2RecHit.h:29
TotemT2RecHit()=default
float timeUnc() const
Definition: TotemT2RecHit.h:23
float time() const
Definition: TotemT2RecHit.h:21
float tot_
Time over threshold/pulse width.
Definition: TotemT2RecHit.h:35
void setTime(float time)
Definition: TotemT2RecHit.h:20
const GlobalPoint centre() const
Definition: TotemT2RecHit.h:19
float time_
Leading edge time.
Definition: TotemT2RecHit.h:31
float time_unc_
Uncertainty on leading edge time.
Definition: TotemT2RecHit.h:33
float toT() const
Definition: TotemT2RecHit.h:25
void setTimeUnc(float time_unc)
Definition: TotemT2RecHit.h:22