CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros 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 <boost/cstdint.hpp>
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  int strip() const { return strip_; }
26  int bx() const {return bx_; }
27 
28  void print() const;
29 
30 private:
31  uint16_t strip_;
32  int32_t bx_;
33 };
34 
35 std::ostream & operator<<(std::ostream & o, const GEMDigi& digi);
36 
37 #endif
38 
void print() const
Definition: GEMDigi.cc:52
std::ostream & operator<<(std::ostream &out, const ALILine &li)
Definition: ALILine.cc:188
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:26
uint16_t strip_
Definition: GEMDigi.h:31
GEMDigi()
Definition: GEMDigi.cc:16
int strip() const
Definition: GEMDigi.h:25
int32_t bx_
Definition: GEMDigi.h:32