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
ME0TriggerDigi::bx_
uint16_t bx_
Definition: ME0TriggerDigi.h:116
ME0TriggerDigi::chamberid_
uint16_t chamberid_
Definition: ME0TriggerDigi.h:109
ME0TriggerDigi::getDeltaphi
int getDeltaphi() const
return bending angle
Definition: ME0TriggerDigi.h:65
ME0TriggerDigi::setStrip
void setStrip(unsigned int s)
set strip
Definition: ME0TriggerDigi.h:83
ME0TriggerDigi::setBX
void setBX(unsigned int b)
set bx
Definition: ME0TriggerDigi.h:98
ME0TriggerDigi::bend_
uint16_t bend_
Definition: ME0TriggerDigi.h:115
AlCaHLTBitMon_ParallelJobs.p
p
Definition: AlCaHLTBitMon_ParallelJobs.py:153
ME0TriggerDigi::isValid
bool isValid() const
is valid?
Definition: ME0TriggerDigi.h:74
l1GtPatternGenerator_cfi.bx
bx
Definition: l1GtPatternGenerator_cfi.py:18
operator<<
std::ostream & operator<<(std::ostream &o, const ME0TriggerDigi &digi)
Definition: ME0TriggerDigi.cc:39
data-class-funcs.q
q
Definition: data-class-funcs.py:169
ME0TriggerDigi::segment_
ME0Segment segment_
Definition: ME0TriggerDigi.h:119
ME0TriggerDigi::operator!=
bool operator!=(const ME0TriggerDigi &rhs) const
Definition: ME0TriggerDigi.h:47
EcalTangentSkim_cfg.o
o
Definition: EcalTangentSkim_cfg.py:36
ME0TriggerDigi::setDeltaphi
void setDeltaphi(unsigned int dphi)
set bending angle
Definition: ME0TriggerDigi.h:92
ME0TriggerDigi::getPhiposition
int getPhiposition() const
return the phi position, resolution: half strip level
Definition: ME0TriggerDigi.h:59
alignCSCRings.s
s
Definition: alignCSCRings.py:92
contentValuesFiles.number
number
Definition: contentValuesFiles.py:53
ME0TriggerDigi::getQuality
int getQuality() const
return the Quality
Definition: ME0TriggerDigi.h:53
ME0TriggerDigi::ME0TriggerDigi
ME0TriggerDigi()
default
Definition: ME0TriggerDigi.cc:20
ME0TriggerDigi::getChamberid
int getChamberid() const
return chamber number in one CTP7
Definition: ME0TriggerDigi.h:50
ME0TriggerDigi::getStrip
int getStrip() const
return the key strip
Definition: ME0TriggerDigi.h:56
ME0TriggerDigi::quality_
uint16_t quality_
Definition: ME0TriggerDigi.h:110
b
double b
Definition: hdecay.h:118
ME0TriggerDigi::getPartition
int getPartition() const
return the key "partition"
Definition: ME0TriggerDigi.h:62
ME0TriggerDigi::deltaphi_
uint16_t deltaphi_
Definition: ME0TriggerDigi.h:114
ME0TriggerDigi::getBX
int getBX() const
return BX
Definition: ME0TriggerDigi.h:71
ME0TriggerDigi::strip_
uint16_t strip_
Definition: ME0TriggerDigi.h:111
ME0Segment
Definition: ME0Segment.h:20
ME0TriggerDigi::getBend
int getBend() const
return bend
Definition: ME0TriggerDigi.h:68
ME0TriggerDigi::partition_
uint16_t partition_
Definition: ME0TriggerDigi.h:113
ME0Segment.h
ME0TriggerDigi
Definition: ME0TriggerDigi.h:28
DDAxes::phi
ME0TriggerDigi::phiposition_
uint16_t phiposition_
Definition: ME0TriggerDigi.h:112
ME0TriggerDigi::setChamberid
void setChamberid(const uint16_t number)
Set track number.
Definition: ME0TriggerDigi.h:77
ME0TriggerDigi::setBend
void setBend(unsigned int b)
set bend
Definition: ME0TriggerDigi.h:95
qcdUeDQM_cfi.quality
quality
Definition: qcdUeDQM_cfi.py:31
ME0TriggerDigi::setPhiposition
void setPhiposition(unsigned int phi)
set phi position
Definition: ME0TriggerDigi.h:86
ME0TriggerDigi::setPartition
void setPartition(unsigned int p)
set partition
Definition: ME0TriggerDigi.h:89
ME0TriggerDigi::clear
void clear()
clear this Trigger
Definition: ME0TriggerDigi.cc:24
trklet::bend
double bend(double r, double rinv, double stripPitch)
Definition: Util.h:160
ME0TriggerDigi::setQuality
void setQuality(unsigned int q)
set quality code
Definition: ME0TriggerDigi.h:80
ME0TriggerDigi::operator==
bool operator==(const ME0TriggerDigi &) const
Comparison.
Definition: ME0TriggerDigi.cc:34