CMS 3D CMS Logo

ME0TriggerDigi.h
Go to the documentation of this file.
1 #ifndef GEMDigi_ME0TriggerDigi_h
2 #define GEMDigi_ME0TriggerDigi_h
3 
11 #include <boost/cstdint.hpp>
12 #include <iosfwd>
13 
15 {
16  public:
17 
19  ME0TriggerDigi(const int trknmb, const int quality,
20  const int strip, const int pattern,
21  const int bend, const int bx);
22 
24  ME0TriggerDigi();
25 
27  void clear();
28 
30  bool operator == (const ME0TriggerDigi &) const;
31  bool operator != (const ME0TriggerDigi &rhs) const
32  { return !(this->operator==(rhs)); }
33 
35  int getTrknmb() const { return trknmb; }
36 
38  int getQuality() const { return quality; }
39 
41  int getStrip() const { return strip; }
42 
44  int getPattern() const { return pattern; }
45 
47  int getBend() const { return bend; }
48 
50  int getBX() const { return bx; }
51 
53  bool isValid() const { return pattern!=0; }
54 
56  void setTrknmb(const uint16_t number) {trknmb = number;}
57 
59  void setQuality(unsigned int q) {quality=q;}
60 
62  void setStrip(unsigned int s) {strip=s;}
63 
65  void setPattern(unsigned int p) {pattern=p;}
66 
68  void setBend(unsigned int b) {bend=b;}
69 
71  void setBX(unsigned int b) {bx=b;}
72 
73  private:
74  uint16_t trknmb;
75  uint16_t quality;
76  uint16_t strip;
77  uint16_t pattern;
78  uint16_t bend;
79  uint16_t bx;
80 };
81 
82 std::ostream & operator<<(std::ostream & o, const ME0TriggerDigi& digi);
83 
84 #endif
void setQuality(unsigned int q)
set quality code
int getPattern() const
return pattern
uint16_t quality
int getStrip() const
return the key strip
bool operator==(const ME0TriggerDigi &) const
Comparison.
int getQuality() const
return the Quality
int getTrknmb() const
return track number
bool operator!=(const ME0TriggerDigi &rhs) const
ME0TriggerDigi()
default
int getBX() const
return BX
std::ostream & operator<<(std::ostream &o, const ME0TriggerDigi &digi)
void setBX(unsigned int b)
set bx
void setStrip(unsigned int s)
set strip
int getBend() const
return bend
double b
Definition: hdecay.h:120
void clear()
clear this Trigger
void setBend(unsigned int b)
set bend
uint16_t pattern
void setTrknmb(const uint16_t number)
Set track number.
void setPattern(unsigned int p)
set pattern
bool isValid() const
is valid?