CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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
void print() const
Definition: GEMDigi.cc:28
int16_t bx() const
Definition: GEMDigi.h:27
std::ostream & operator<<(std::ostream &out, const ALILine &li)
Definition: ALILine.cc:167
bool operator!=(const GEMDigi &digi) const
Definition: GEMDigi.cc:12
uint16_t strip() const
Definition: GEMDigi.h:26
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
uint16_t strip_
Definition: GEMDigi.h:32
GEMDigi()
Definition: GEMDigi.cc:6
int16_t bx_
Definition: GEMDigi.h:33