CMS 3D CMS Logo

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