CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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
int getDeltaphi() const
return bending angle
void setQuality(unsigned int q)
set quality code
uint16_t partition_
uint32_t const *__restrict__ Quality * quality
int getStrip() const
return the key strip
bool operator==(const ME0TriggerDigi &) const
Comparison.
int getPhiposition() const
return the phi position, resolution: half strip level
std::ostream & operator<<(std::ostream &out, const ALILine &li)
Definition: ALILine.cc:167
int getQuality() const
return the Quality
int getPartition() const
return the key &quot;partition&quot;
bool operator!=(const ME0TriggerDigi &rhs) const
ME0TriggerDigi()
default
ME0Segment segment_
int getBX() const
return BX
void setPartition(unsigned int p)
set partition
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:118
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?