1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
|
#ifndef DataFormats_GEMDigi_GEMDigi_h
#define DataFormats_GEMDigi_GEMDigi_h
/** \class GEMDigi
*
* Digi for GEM
*
* \author Vadim Khotilovich
*
*/
#include <cstdint>
#include <iosfwd>
class GEMDigi {
public:
explicit GEMDigi(uint16_t strip, int16_t bx);
GEMDigi();
bool operator==(const GEMDigi& digi) const;
bool operator!=(const GEMDigi& digi) const;
bool operator<(const GEMDigi& digi) const;
bool isValid() const;
// return the strip number. counts from 0.
uint16_t strip() const { return strip_; }
int16_t bx() const { return bx_; }
void print() const;
private:
uint16_t strip_;
int16_t bx_;
};
std::ostream& operator<<(std::ostream& o, const GEMDigi& digi);
#endif
|