CMS 3D CMS Logo

ME0TriggerDigi.h
Go to the documentation of this file.
1 #ifndef GEMDigi_ME0TriggerDigi_h
2 #define GEMDigi_ME0TriggerDigi_h
3 
24 #include <cstdint>
25 #include <iosfwd>
27 
29 {
30  public:
31 
33  ME0TriggerDigi(const int chamberid, const int quality,
34  const int phiposition, const int partition,
35  const int deltaphi,
36  const int bend, const int bx);
37 
39  ME0TriggerDigi();
40 
42  void clear();
43 
45  bool operator == (const ME0TriggerDigi &) const;
46  bool operator != (const ME0TriggerDigi &rhs) const
47  { return !(this->operator==(rhs)); }
48 
50  int getChamberid() const { return chamberid_; }
51 
53  int getQuality() const { return quality_; }
54 
56  int getStrip() const { return strip_; }
57 
59  int getPhiposition() const { return phiposition_; }
60 
62  int getPartition() const { return partition_; }
63 
65  int getDeltaphi() const { return deltaphi_; }
66 
68  int getBend() const { return bend_; }
69 
71  int getBX() const { return bx_; }
72 
73 
75  bool isValid() const { return quality_!=0; }
76 
78  void setChamberid(const uint16_t number) {chamberid_ = number;}
79 
81  void setQuality(unsigned int q) {quality_=q;}
82 
84  void setStrip(unsigned int s) {strip_=s;}
85 
87  void setPhiposition(unsigned int phi) {phiposition_=phi;}
88 
90  void setPartition(unsigned int p) {partition_=p;}
91 
93  void setDeltaphi(unsigned int dphi) {deltaphi_=dphi;}
94 
96  void setBend(unsigned int b) {bend_=b;}
97 
99  void setBX(unsigned int b) {bx_=b;}
100 
101 
102  /*
104  const ME0Segment& getME0Segment () const {return segment_;}
105 
107  void setME0Segment(const ME0Segment &seg) {segment_ = seg;}
108  */
109 
110  private:
111  uint16_t chamberid_;
112  uint16_t quality_;
113  uint16_t strip_;
114  uint16_t phiposition_;
115  uint16_t partition_;
116  uint16_t deltaphi_;
117  uint16_t bend_;
118  uint16_t bx_;
119 
120  private:
122 };
123 
124 std::ostream & operator<<(std::ostream & o, const ME0TriggerDigi& digi);
125 
126 #endif
int getDeltaphi() const
return bending angle
void setQuality(unsigned int q)
set quality code
uint16_t partition_
int getStrip() const
return the key strip
bool operator==(const ME0TriggerDigi &) const
Comparison.
int getPhiposition() const
return the phi position, resolution: half strip level
int getQuality() const
return the Quality
int getPartition() const
return the key "partition"
bool operator!=(const ME0TriggerDigi &rhs) const
ME0TriggerDigi()
default
ME0Segment segment_
int getBX() const
return BX
void setPartition(unsigned int p)
set partition
std::ostream & operator<<(std::ostream &o, const ME0TriggerDigi &digi)
uint16_t deltaphi_
uint16_t phiposition_
void setBX(unsigned int b)
set bx
void setPhiposition(unsigned int phi)
set phi position
void setDeltaphi(unsigned int dphi)
set bending angle
void setStrip(unsigned int s)
set strip
int getBend() const
return bend
double b
Definition: hdecay.h:120
uint16_t chamberid_
void clear()
clear this Trigger
void setBend(unsigned int b)
set bend
int getChamberid() const
return chamber number in one CTP7
void setChamberid(const uint16_t number)
Set track number.
bool isValid() const
is valid?