CMS 3D CMS Logo

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 
17 public:
18  explicit ME0Digi (int strip, int bx);
19  ME0Digi ();
20 
21  bool operator==(const ME0Digi& digi) const;
22  bool operator!=(const ME0Digi& digi) const;
23  bool operator<(const ME0Digi& digi) const;
24 
25  // return the strip number. counts from 1.
26  int strip() const { return strip_; }
27  int bx() const {return bx_; }
28 
29 private:
30  uint16_t strip_;
31  int16_t bx_;
32 };
33 
34 std::ostream & operator<<(std::ostream & o, const ME0Digi& digi);
35 
36 #endif
37 
bool operator!=(const ME0Digi &digi) const
Definition: ME0Digi.cc:19
ME0Digi()
Definition: ME0Digi.cc:9
uint16_t strip_
Definition: ME0Digi.h:30
int strip() const
Definition: ME0Digi.h:26
bool operator==(const ME0Digi &digi) const
Definition: ME0Digi.cc:14
int16_t bx_
Definition: ME0Digi.h:31
std::ostream & operator<<(std::ostream &o, const ME0Digi &digi)
Definition: ME0Digi.cc:32
int bx() const
Definition: ME0Digi.h:27
bool operator<(const ME0Digi &digi) const
Definition: ME0Digi.cc:24