CMS 3D CMS Logo

GEMDigi.h
Go to the documentation of this file.
1 #ifndef DataFormats_GEMDigi_GEMDigi_h
2 #define DataFormats_GEMDigi_GEMDigi_h
3 
12 #include <cstdint>
13 #include <iosfwd>
14 
15 class GEMDigi {
16 public:
17  explicit GEMDigi(int strip, int bx);
18  GEMDigi();
19 
20  bool operator==(const GEMDigi& digi) const;
21  bool operator!=(const GEMDigi& digi) const;
22  bool operator<(const GEMDigi& digi) const;
23  bool isValid() const;
24 
25  // return the strip number. counts from 0.
26  int strip() const { return strip_; }
27  int bx() const { return bx_; }
28 
29  void print() const;
30 
31 private:
32  uint16_t strip_;
33  int16_t bx_;
34 };
35 
36 std::ostream& operator<<(std::ostream& o, const GEMDigi& digi);
37 
38 #endif
void print() const
Definition: GEMDigi.cc:28
bool operator!=(const GEMDigi &digi) const
Definition: GEMDigi.cc:12
bool operator<(const GEMDigi &digi) const
Precedence operator.
Definition: GEMDigi.cc:15
bool operator==(const GEMDigi &digi) const
Definition: GEMDigi.cc:9
bool isValid() const
Definition: GEMDigi.cc:22
int bx() const
Definition: GEMDigi.h:27
uint16_t strip_
Definition: GEMDigi.h:32
std::ostream & operator<<(std::ostream &o, const GEMDigi &digi)
Definition: GEMDigi.cc:24
GEMDigi()
Definition: GEMDigi.cc:6
int strip() const
Definition: GEMDigi.h:26
int16_t bx_
Definition: GEMDigi.h:33