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