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 <cstdint>
12 #include <iosfwd>
13 
15 {
16  public:
17 
19  ME0TriggerDigi(const int trknmb, const int quality,
20  const int strip, const int partition,
21  const int pattern,
22  const int bend, const int bx);
23 
25  ME0TriggerDigi();
26 
28  void clear();
29 
31  bool operator == (const ME0TriggerDigi &) const;
32  bool operator != (const ME0TriggerDigi &rhs) const
33  { return !(this->operator==(rhs)); }
34 
36  int getTrknmb() const { return trknmb_; }
37 
39  int getQuality() const { return quality_; }
40 
42  int getStrip() const { return strip_; }
43 
45  int getPartition() const { return partition_; }
46 
48  int getPattern() const { return pattern_; }
49 
51  int getBend() const { return bend_; }
52 
54  int getBX() const { return bx_; }
55 
57  bool isValid() const { return pattern_!=0; }
58 
60  void setTrknmb(const uint16_t number) {trknmb_ = number;}
61 
63  void setQuality(unsigned int q) {quality_=q;}
64 
66  void setStrip(unsigned int s) {strip_=s;}
67 
69  void setPartition(unsigned int s) {partition_=s;}
70 
72  void setPattern(unsigned int p) {pattern_=p;}
73 
75  void setBend(unsigned int b) {bend_=b;}
76 
78  void setBX(unsigned int b) {bx_=b;}
79 
80  private:
81  uint16_t trknmb_;
82  uint16_t quality_;
83  uint16_t strip_;
84  uint16_t partition_;
85  uint16_t pattern_;
86  uint16_t bend_;
87  uint16_t bx_;
88 };
89 
90 std::ostream & operator<<(std::ostream & o, const ME0TriggerDigi& digi);
91 
92 #endif
void setQuality(unsigned int q)
set quality code
int getPattern() const
return pattern
uint16_t partition_
void setPartition(unsigned int s)
set partition
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
uint16_t trknmb_
uint16_t quality_
int getPartition() const
return the key "partition"
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
void setTrknmb(const uint16_t number)
Set track number.
uint16_t pattern_
void setPattern(unsigned int p)
set pattern
bool isValid() const
is valid?