CMS 3D CMS Logo

TotemT2Digi.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_TotemT2Digi_h
10 #define DataFormats_TotemReco_TotemT2Digi_h
11 
12 class TotemT2Digi {
13 public:
14  TotemT2Digi() = default;
15  TotemT2Digi(unsigned char geo, unsigned char id, unsigned char marker, unsigned short le, unsigned short te);
16 
17  void setLeadingEdge(unsigned short le) { lead_edge_ = le; }
18  unsigned short leadingEdge() const { return lead_edge_; }
19  void setTrailingEdge(unsigned short te) { trail_edge_ = te; }
20  unsigned short trailingEdge() const { return trail_edge_; }
21 
22 private:
24  unsigned char geo_id_{0};
26  unsigned char channel_id_{0};
28  unsigned char marker_{0};
30  unsigned short lead_edge_{0};
32  unsigned short trail_edge_{0};
33 };
34 
35 bool operator<(const TotemT2Digi& lhs, const TotemT2Digi& rhs);
36 
37 #endif
unsigned short trail_edge_
Trailing edge time.
Definition: TotemT2Digi.h:32
void setTrailingEdge(unsigned short te)
Definition: TotemT2Digi.h:19
bool operator<(const TotemT2Digi &lhs, const TotemT2Digi &rhs)
Definition: TotemT2Digi.cc:6
unsigned char channel_id_
Channel ID.
Definition: TotemT2Digi.h:26
unsigned short lead_edge_
Leading edge time.
Definition: TotemT2Digi.h:30
void setLeadingEdge(unsigned short le)
Definition: TotemT2Digi.h:17
TotemT2Digi()=default
unsigned char geo_id_
Geo ID.
Definition: TotemT2Digi.h:24
unsigned char marker_
Channel marker.
Definition: TotemT2Digi.h:28
unsigned short trailingEdge() const
Definition: TotemT2Digi.h:20
unsigned short leadingEdge() const
Definition: TotemT2Digi.h:18