CMS 3D CMS Logo

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
ME0PadDigi::bx
int bx() const
Definition: ME0PadDigi.h:26
ME0PadDigi::bx_
int16_t bx_
Definition: ME0PadDigi.h:30
EcalTangentSkim_cfg.o
o
Definition: EcalTangentSkim_cfg.py:36
ME0PadDigi::pad_
uint16_t pad_
Definition: ME0PadDigi.h:29
operator<<
std::ostream & operator<<(std::ostream &o, const ME0PadDigi &digi)
Definition: ME0PadDigi.cc:19
ME0PadDigi::operator!=
bool operator!=(const ME0PadDigi &digi) const
Definition: ME0PadDigi.cc:10
ME0PadDigi::operator==
bool operator==(const ME0PadDigi &digi) const
Definition: ME0PadDigi.cc:8
ME0PadDigi
Definition: ME0PadDigi.h:15
ME0PadDigi::pad
int pad() const
Definition: ME0PadDigi.h:25
ME0PadDigi::operator<
bool operator<(const ME0PadDigi &digi) const
Definition: ME0PadDigi.cc:12
ME0PadDigi::ME0PadDigi
ME0PadDigi()
Definition: ME0PadDigi.cc:6