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 public:
31  ME0TriggerDigi(const int chamberid,
32  const int quality,
33  const int phiposition,
34  const int partition,
35  const int deltaphi,
36  const int bend,
37  const int bx);
38 
41 
43  void clear();
44 
46  bool operator==(const ME0TriggerDigi &) const;
47  bool operator!=(const ME0TriggerDigi &rhs) const { 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 
74  bool isValid() const { return quality_ != 0; }
75 
77  void setChamberid(const uint16_t number) { chamberid_ = number; }
78 
80  void setQuality(unsigned int q) { quality_ = q; }
81 
83  void setStrip(unsigned int s) { strip_ = s; }
84 
86  void setPhiposition(unsigned int phi) { phiposition_ = phi; }
87 
89  void setPartition(unsigned int p) { partition_ = p; }
90 
92  void setDeltaphi(unsigned int dphi) { deltaphi_ = dphi; }
93 
95  void setBend(unsigned int b) { bend_ = b; }
96 
98  void setBX(unsigned int b) { bx_ = b; }
99 
100  /*
102  const ME0Segment& getME0Segment () const {return segment_;}
103 
105  void setME0Segment(const ME0Segment &seg) {segment_ = seg;}
106  */
107 
108 private:
109  uint16_t chamberid_;
110  uint16_t quality_;
111  uint16_t strip_;
112  uint16_t phiposition_;
113  uint16_t partition_;
114  uint16_t deltaphi_;
115  uint16_t bend_;
116  uint16_t bx_;
117 
118 private:
120 };
121 
122 std::ostream &operator<<(std::ostream &o, const ME0TriggerDigi &digi);
123 
124 #endif
bool operator!=(const ME0TriggerDigi &rhs) const
void setQuality(unsigned int q)
set quality code
uint16_t partition_
int getQuality() const
return the Quality
int getChamberid() const
return chamber number in one CTP7
int getBend() const
return bend
int getDeltaphi() const
return bending angle
ME0TriggerDigi()
default
ME0Segment segment_
void setPartition(unsigned int p)
set partition
bool operator==(const ME0TriggerDigi &) const
Comparison.
std::ostream & operator<<(std::ostream &o, const ME0TriggerDigi &digi)
int getStrip() const
return the key strip
uint16_t deltaphi_
uint16_t phiposition_
int getPhiposition() const
return the phi position, resolution: half strip level
void setBX(unsigned int b)
set bx
void setPhiposition(unsigned int phi)
set phi position
void setDeltaphi(unsigned int dphi)
set bending angle
bool isValid() const
is valid?
void setStrip(unsigned int s)
set strip
int getBX() const
return BX
double b
Definition: hdecay.h:118
uint16_t chamberid_
void clear()
clear this Trigger
void setBend(unsigned int b)
set bend
int getPartition() const
return the key "partition"
string quality
void setChamberid(const uint16_t number)
Set track number.