CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
TotemRPDigi.h
Go to the documentation of this file.
1 /****************************************************************************
2 *
3 * This is a part of TOTEM offline software.
4 * Authors:
5 * Hubert Niewiadomski
6 * Jan Kašpar (jan.kaspar@gmail.com)
7 *
8 ****************************************************************************/
9 
10 #ifndef DataFormats_CTPPSDigi_TotemRPDigi
11 #define DataFormats_CTPPSDigi_TotemRPDigi
12 
16 class TotemRPDigi {
17 public:
18  TotemRPDigi(unsigned short strip_no = 0) : strip_no_(strip_no){};
19 
20  unsigned short stripNumber() const { return strip_no_; }
21 
22 private:
24  unsigned short strip_no_;
25 };
26 
27 inline bool operator<(const TotemRPDigi& one, const TotemRPDigi& other) {
28  return one.stripNumber() < other.stripNumber();
29 }
30 
31 #endif
unsigned short stripNumber() const
Definition: TotemRPDigi.h:20
unsigned short strip_no_
index of the activated strip
Definition: TotemRPDigi.h:24
bool operator<(DTCELinkId const &lhs, DTCELinkId const &rhs)
Definition: DTCELinkId.h:70
TotemRPDigi(unsigned short strip_no=0)
Definition: TotemRPDigi.h:18