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(uint16_t strip, int16_t 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  uint16_t strip() const { return strip_; }
27  int16_t 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
bool isValid() const
Definition: GEMDigi.cc:22
bool operator<(const GEMDigi &digi) const
Precedence operator.
Definition: GEMDigi.cc:15
void print() const
Definition: GEMDigi.cc:28
bool operator==(const GEMDigi &digi) const
Definition: GEMDigi.cc:9
uint16_t strip() const
Definition: GEMDigi.h:26
uint16_t strip_
Definition: GEMDigi.h:32
int16_t bx() const
Definition: GEMDigi.h:27
std::ostream & operator<<(std::ostream &o, const GEMDigi &digi)
Definition: GEMDigi.cc:24
GEMDigi()
Definition: GEMDigi.cc:6
bool operator!=(const GEMDigi &digi) const
Definition: GEMDigi.cc:12
int16_t bx_
Definition: GEMDigi.h:33