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 
17 public:
18  explicit GEMDigi (int strip, int bx);
19  GEMDigi ();
20 
21  bool operator==(const GEMDigi& digi) const;
22  bool operator!=(const GEMDigi& digi) const;
23  bool operator<(const GEMDigi& digi) 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
39 
void print() const
Definition: GEMDigi.cc:52
bool operator!=(const GEMDigi &digi) const
Definition: GEMDigi.cc:30
bool operator<(const GEMDigi &digi) const
Precedence operator.
Definition: GEMDigi.cc:37
bool operator==(const GEMDigi &digi) const
Definition: GEMDigi.cc:23
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:46
GEMDigi()
Definition: GEMDigi.cc:16
int strip() const
Definition: GEMDigi.h:26
int16_t bx_
Definition: GEMDigi.h:33