CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
ME0Digi.h
Go to the documentation of this file.
1 #ifndef DataFormats_GEMDigi_ME0Digi_h
2 #define DataFormats_GEMDigi_ME0Digi_h
3 
12 #include <cstdint>
13 #include <iosfwd>
14 
15 class ME0Digi {
16 public:
17  explicit ME0Digi(int strip, int bx);
18  ME0Digi();
19 
20  bool operator==(const ME0Digi& digi) const;
21  bool operator!=(const ME0Digi& digi) const;
22  bool operator<(const ME0Digi& digi) const;
23 
24  // return the strip number. counts from 1.
25  int strip() const { return strip_; }
26  int bx() const { return bx_; }
27 
28 private:
29  uint16_t strip_;
30  int16_t bx_;
31 };
32 
33 std::ostream& operator<<(std::ostream& o, const ME0Digi& digi);
34 
35 #endif
bool operator!=(const ME0Digi &digi) const
Definition: ME0Digi.cc:10
ME0Digi()
Definition: ME0Digi.cc:6
std::ostream & operator<<(std::ostream &out, const ALILine &li)
Definition: ALILine.cc:167
uint16_t strip_
Definition: ME0Digi.h:29
int strip() const
Definition: ME0Digi.h:25
bool operator==(const ME0Digi &digi) const
Definition: ME0Digi.cc:8
int16_t bx_
Definition: ME0Digi.h:30
int bx() const
Definition: ME0Digi.h:26
bool operator<(const ME0Digi &digi) const
Definition: ME0Digi.cc:12