Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 12:53:12

0001 /****************************************************************************
0002 *
0003 * This is a part of TOTEM offline software.
0004 * Authors:
0005 *   Hubert Niewiadomski
0006 *   Jan Kašpar (jan.kaspar@gmail.com)
0007 *
0008 ****************************************************************************/
0009 
0010 #ifndef DataFormats_CTPPSDigi_TotemRPDigi
0011 #define DataFormats_CTPPSDigi_TotemRPDigi
0012 
0013 /**
0014  * Digi structure for TOTEM RP silicon strip sensors.
0015 **/
0016 class TotemRPDigi {
0017 public:
0018   TotemRPDigi(unsigned short strip_no = 0) : strip_no_(strip_no){};
0019 
0020   unsigned short stripNumber() const { return strip_no_; }
0021 
0022 private:
0023   /// index of the activated strip
0024   unsigned short strip_no_;
0025 };
0026 
0027 inline bool operator<(const TotemRPDigi& one, const TotemRPDigi& other) {
0028   return one.stripNumber() < other.stripNumber();
0029 }
0030 
0031 #endif