Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2022-08-25 01:53:11

0001 /****************************************************************************
0002  *
0003  * This is a part of TOTEM offline software.
0004  * Author:
0005  *   Laurent Forthomme
0006  *
0007  ****************************************************************************/
0008 
0009 #ifndef DataFormats_TotemReco_TotemT2Digi_h
0010 #define DataFormats_TotemReco_TotemT2Digi_h
0011 
0012 class TotemT2Digi {
0013 public:
0014   TotemT2Digi() = default;
0015   TotemT2Digi(unsigned char geo, unsigned char id, unsigned char marker, unsigned short le, unsigned short te);
0016 
0017   void setLeadingEdge(unsigned short le) { lead_edge_ = le; }
0018   unsigned short leadingEdge() const { return lead_edge_; }
0019   void setTrailingEdge(unsigned short te) { trail_edge_ = te; }
0020   unsigned short trailingEdge() const { return trail_edge_; }
0021 
0022 private:
0023   /// Geo ID
0024   unsigned char geo_id_{0};
0025   /// Channel ID
0026   unsigned char channel_id_{0};
0027   /// Channel marker
0028   unsigned char marker_{0};
0029   /// Leading edge time
0030   unsigned short lead_edge_{0};
0031   /// Trailing edge time
0032   unsigned short trail_edge_{0};
0033 };
0034 
0035 bool operator<(const TotemT2Digi& lhs, const TotemT2Digi& rhs);
0036 
0037 #endif