CMS 3D CMS Logo

DTTracoTrig.h
Go to the documentation of this file.
1 //-------------------------------------------------
2 //
13 //
14 //--------------------------------------------------
15 #ifndef DT_TRACO_TRIG_H
16 #define DT_TRACO_TRIG_H
17 
18 //------------------------------------
19 // Collaborating Class Declarations --
20 //------------------------------------
21 class DTBtiTrigData;
22 class DTTracoChip;
23 
24 //----------------------
25 // Base Class Headers --
26 //----------------------
30 
31 //---------------
32 // C++ Headers --
33 //---------------
34 #include <vector>
35 
36 // ---------------------
37 // -- Class Interface --
38 // ---------------------
39 
40 class DTTracoTrig : public DTTrigData {
41 public:
43  DTTracoTrig();
44 
46  DTTracoTrig(DTTracoChip *, int);
47 
50 
52  ~DTTracoTrig() override;
53 
56 
58  inline void addDTBtiTrig(const DTBtiTrigData *btitrig) { _btitrig.push_back(btitrig); }
59 
61  inline void setPV(int first, int code, int K, int io) { _data.setPV(first, code, K, io); }
62 
64  inline void setPVCorr(int ic) { _data.setPVCorr(ic); }
65 
67  inline void setCodeIn(int code) { _data.setCodeIn(code); }
68 
70  inline void setCodeOut(int code) { _data.setCodeOut(code); }
71 
73  inline void setPosIn(int pos) { _data.setPosIn(pos); }
74 
76  inline void setPosOut(int pos) { _data.setPosOut(pos); }
77 
79  inline void setEqIn(int eq) { _data.setEqIn(eq); }
80 
82  inline void setEqOut(int eq) { _data.setEqOut(eq); }
83 
85  inline void setK(int k) { _data.setK(k); }
86 
88  inline void setX(int x) { _data.setX(x); }
89 
91  inline void setAngles(int psi, int psir, int dpsir) { _data.setAngles(psi, psir, dpsir); }
92 
94  inline void resetVar() { _data.resetVar(); }
95 
97  inline void resetPV() { _data.resetPV(); }
98 
100  inline void clear() {
101  _data.clear();
102  _btitrig.clear();
103  }
104 
106  inline DTChamberId ChamberId() const override { return _data.ChamberId(); }
107 
109  inline void print() const override { _data.print(); }
110 
112  inline DTTracoChip *tParent() const { return _tparent; }
113 
115  inline DTTracoTrigData data() const { return _data; }
116 
118  inline int tracoNumber() const { return _data.tracoNumber(); }
119 
121  inline int step() const { return _data.step(); }
122 
124  inline int code() const { return _data.code(); }
125 
127  inline int posMask() const { return _data.posMask(); }
128 
130  inline int posIn() const { return _data.posIn(); }
131 
133  inline int posOut() const { return _data.posOut(); }
134 
136  inline int eqIn() { return _data.eqIn(); }
137 
139  inline int eqOut() { return _data.eqOut(); }
140 
142  inline int isFirst() const { return _data.isFirst(); }
143 
145  inline int pvCode() const { return _data.pvCode(); }
146 
148  inline int pvK() const { return _data.pvK(); }
149 
151  inline int pvCorr() const { return _data.pvCorr(); }
152 
154  inline int K() const { return _data.K(); }
155 
157  inline int X() const { return _data.X(); }
158 
160  inline int psi() const { return _data.psi(); }
161 
163  inline int psiR() const { return _data.psiR(); }
164 
166  inline int DeltaPsiR() const { return _data.DeltaPsiR(); }
167 
169  inline int qdec() const { return _data.qdec(); }
170 
172  std::vector<const DTBtiTrigData *> btiTrigList() const { return _btitrig; }
173 
175  bool operator==(const DTTracoTrig &) const;
176 
177 private:
178  // parent TRACO
180 
181  // Trigger data component
183 
184  // vector of BTI triggers which produce the DTTracoChip trigger (1 or 2)
185  std::vector<const DTBtiTrigData *> _btitrig;
186 };
187 
188 #endif
DTTracoTrig::resetVar
void resetVar()
Reset all variables but preview.
Definition: DTTracoTrig.h:94
DTTracoTrigData::pvCorr
int pvCorr() const
Return the preview correaltion bit.
Definition: DTTracoTrigData.h:192
DTTracoTrigData::tracoNumber
int tracoNumber() const
Return parent TRACO number.
Definition: DTTracoTrigData.h:159
DTTracoTrig::eqOut
int eqOut()
Return bti trigger equation of segments, outer.
Definition: DTTracoTrig.h:139
DTTracoTrigData.h
DTTracoTrig::~DTTracoTrig
~DTTracoTrig() override
Destructor.
Definition: DTTracoTrig.cc:62
DTTracoTrigData::setK
void setK(int k)
Set trigger K parameter.
Definition: DTTracoTrigData.h:94
DTTracoTrigData::setCodeIn
void setCodeIn(int code)
Set trigger code inner layer.
Definition: DTTracoTrigData.h:77
DTTracoTrig::posIn
int posIn() const
Return the position of inner segment.
Definition: DTTracoTrig.h:130
DTTracoTrig::_btitrig
std::vector< const DTBtiTrigData * > _btitrig
Definition: DTTracoTrig.h:185
DTTracoTrig::eqIn
int eqIn()
Return bti trigger equation of segments, inner.
Definition: DTTracoTrig.h:136
DTTracoTrig::setK
void setK(int k)
Set trigger K parameter.
Definition: DTTracoTrig.h:85
pos
Definition: PixelAliasList.h:18
DTTracoTrig::setX
void setX(int x)
Set trigger X parameter.
Definition: DTTracoTrig.h:88
DTTracoTrigData::pvCode
int pvCode() const
Return the preview code.
Definition: DTTracoTrigData.h:186
DTTracoTrig::setPosOut
void setPosOut(int pos)
Set position of segments, outer.
Definition: DTTracoTrig.h:76
DTTracoTrig::_data
DTTracoTrigData _data
Definition: DTTracoTrig.h:182
DTTracoTrigData::isFirst
int isFirst() const
Return non 0 if the track is a first track.
Definition: DTTracoTrigData.h:183
DDAxes::x
DTTracoTrig::clear
void clear()
Clear.
Definition: DTTracoTrig.h:100
DTBtiTrig.h
DTTracoTrigData::setCodeOut
void setCodeOut(int code)
Set trigger code outer layer.
Definition: DTTracoTrigData.h:79
DTTracoTrig::ChamberId
DTChamberId ChamberId() const override
Return chamber identifier.
Definition: DTTracoTrig.h:106
DTTracoTrig::setCodeOut
void setCodeOut(int code)
Set trigger code, outer segment.
Definition: DTTracoTrig.h:70
DTTracoTrig::DeltaPsiR
int DeltaPsiR() const
Return DeltaPsiR.
Definition: DTTracoTrig.h:166
DTTracoTrig::_tparent
DTTracoChip * _tparent
Definition: DTTracoTrig.h:179
DTTracoTrig::data
DTTracoTrigData data() const
Return the data part.
Definition: DTTracoTrig.h:115
DTTracoTrig::psi
int psi() const
Return trigger K parameter converted to angle.
Definition: DTTracoTrig.h:160
DTTracoTrigData::resetVar
void resetVar()
Reset all variables but preview.
Definition: DTTracoTrigData.h:114
DTTracoTrig::operator==
bool operator==(const DTTracoTrig &) const
comparison operator
Definition: DTTracoTrig.cc:64
DTTracoTrigData::eqIn
int eqIn() const
Return bti trigger equation of inner segment.
Definition: DTTracoTrigData.h:177
DTTracoTrigData::pvK
int pvK() const
Return the preview K.
Definition: DTTracoTrigData.h:189
DTTracoTrigData::psi
int psi() const
Return trigger K parameter converted to angle.
Definition: DTTracoTrigData.h:204
DTTracoTrig::X
int X() const
Return trigger X parameter.
Definition: DTTracoTrig.h:157
DTBtiTrigData
Definition: DTBtiTrigData.h:39
DTTracoTrig::posOut
int posOut() const
Return the position of outer segment.
Definition: DTTracoTrig.h:133
DTTracoTrigData::eqOut
int eqOut() const
Return bti trigger equation of outer segment.
Definition: DTTracoTrigData.h:180
DTTracoTrig::tParent
DTTracoChip * tParent() const
Return parent TRACO pointer.
Definition: DTTracoTrig.h:112
DTTracoTrig::setCodeIn
void setCodeIn(int code)
Set trigger code, inner segment.
Definition: DTTracoTrig.h:67
DTTracoTrigData::setPosIn
void setPosIn(int pos)
Set position of segment, inner layer.
Definition: DTTracoTrigData.h:82
DTTracoTrig::step
int step() const
Return step.
Definition: DTTracoTrig.h:121
DTTracoTrigData::psiR
int psiR() const
Return trigger X parameter converted to angle.
Definition: DTTracoTrigData.h:207
dqmdumpme.k
k
Definition: dqmdumpme.py:60
DTTracoTrig::K
int K() const
Return trigger K parameter.
Definition: DTTracoTrig.h:154
DTTracoTrig::DTTracoTrig
DTTracoTrig()
Constructors.
Definition: DTTracoTrig.cc:38
first
auto first
Definition: CAHitNtupletGeneratorKernelsImpl.h:125
DTTracoTrigData::setX
void setX(int x)
Set trigger X parameter.
Definition: DTTracoTrigData.h:97
DTTracoTrig::posMask
int posMask() const
Return correlator output code (position of segments)
Definition: DTTracoTrig.h:127
DTTracoTrig::pvK
int pvK() const
Return the preview K.
Definition: DTTracoTrig.h:148
DTTracoTrig::resetPV
void resetPV()
Reset preview variables.
Definition: DTTracoTrig.h:97
DTTracoTrig
Definition: DTTracoTrig.h:40
DTTracoChip
Definition: DTTracoChip.h:53
DTTracoTrig::qdec
int qdec() const
Return the trigger code in new format.
Definition: DTTracoTrig.h:169
DTTracoTrigData::K
int K() const
Return trigger K parameter.
Definition: DTTracoTrigData.h:198
DTTracoTrigData::qdec
int qdec() const
Return the trigger code in new format.
Definition: DTTracoTrigData.cc:41
DTTracoTrigData::setPosOut
void setPosOut(int pos)
Set position of segment, outer layer.
Definition: DTTracoTrigData.h:85
DTTracoTrigData::X
int X() const
Return trigger X parameter.
Definition: DTTracoTrigData.h:201
DTTrigData
Definition: DTTrigData.h:35
DTTracoTrig::pvCode
int pvCode() const
Return the preview code.
Definition: DTTracoTrig.h:145
DTTracoTrig::pvCorr
int pvCorr() const
Return the preview correaltion bit.
Definition: DTTracoTrig.h:151
DTTracoTrig::addDTBtiTrig
void addDTBtiTrig(const DTBtiTrigData *btitrig)
Add a BTI trigger to the list.
Definition: DTTracoTrig.h:58
DTTracoTrig::setAngles
void setAngles(int psi, int psir, int dpsir)
Set trigger angles.
Definition: DTTracoTrig.h:91
DTTracoTrig::setEqIn
void setEqIn(int eq)
Set bti trigger equation of segments, inner.
Definition: DTTracoTrig.h:79
DTTracoTrig::isFirst
int isFirst() const
Return non 0 if the track is a first track.
Definition: DTTracoTrig.h:142
DTTracoTrigData::print
void print() const override
print
Definition: DTTracoTrigData.cc:62
DTTracoTrig::setParent
void setParent(DTTracoChip *parent)
Set the parent TRACO.
Definition: DTTracoTrig.h:55
DTTracoTrig::code
int code() const
Return trigger code.
Definition: DTTracoTrig.h:124
DTTracoTrigData::setPV
void setPV(int first, int code, int K, int ioflag)
Set trigger preview parameters.
Definition: DTTracoTrigData.h:59
DTTracoTrig::setEqOut
void setEqOut(int eq)
Set bti trigger equation of segments, outer.
Definition: DTTracoTrig.h:82
DTTracoTrigData::ChamberId
DTChamberId ChamberId() const override
Return chamber identifier.
Definition: DTTracoTrigData.h:150
DTTracoTrigData::code
int code() const
Return trigger code.
Definition: DTTracoTrigData.h:165
psi
std::map< std::string, int, std::less< std::string > > psi
Definition: CountProcessesAction.h:15
DTTracoTrig::setPV
void setPV(int first, int code, int K, int io)
Set trigger preview parameters.
Definition: DTTracoTrig.h:61
DTTracoTrigData::posMask
int posMask() const
Return correlator output code (position of segments)
Definition: DTTracoTrigData.h:168
DTTracoTrigData::setAngles
void setAngles(int psi, int psir, int dpsir)
Set trigger angles.
Definition: DTTracoTrigData.h:100
DTTracoTrigData::posIn
int posIn() const
Return the position of inner segment.
Definition: DTTracoTrigData.h:171
DTTracoTrigData::resetPV
void resetPV()
Reset preview variables.
Definition: DTTracoTrigData.h:135
DTTracoTrigData::setPVCorr
void setPVCorr(int ic)
Set trigger preview correlation bit.
Definition: DTTracoTrigData.h:74
DTTracoTrigData
Definition: DTTracoTrigData.h:37
DTTracoTrig::print
void print() const override
Print.
Definition: DTTracoTrig.h:109
DTTracoTrig::tracoNumber
int tracoNumber() const
Return parent TRACO number.
Definition: DTTracoTrig.h:118
DTTracoTrigData::step
int step() const
Return step.
Definition: DTTracoTrigData.h:162
DTTracoTrigData::setEqOut
void setEqOut(int eq)
Set bti trigger equation of segment, outer layer.
Definition: DTTracoTrigData.h:91
DTTracoTrig::setPosIn
void setPosIn(int pos)
Set position of segments, inner.
Definition: DTTracoTrig.h:73
DTTracoTrigData::clear
void clear()
Clear.
Definition: DTTracoTrigData.h:144
DTTracoTrig::btiTrigList
std::vector< const DTBtiTrigData * > btiTrigList() const
Return the BTI Triggers list.
Definition: DTTracoTrig.h:172
DTTrigData.h
DTChamberId
Definition: DTChamberId.h:14
DTTracoTrigData::DeltaPsiR
int DeltaPsiR() const
Return DeltaPsiR.
Definition: DTTracoTrigData.h:210
DTTracoTrig::psiR
int psiR() const
Return trigger X parameter converted to angle.
Definition: DTTracoTrig.h:163
DTTracoTrig::setPVCorr
void setPVCorr(int ic)
Set trigger preview correlation bit.
Definition: DTTracoTrig.h:64
class-composition.parent
parent
Definition: class-composition.py:98
DTTracoTrigData::setEqIn
void setEqIn(int eq)
Set bti trigger equation of segment, inner layer.
Definition: DTTracoTrigData.h:88
DTTracoTrigData::posOut
int posOut() const
Return the position of outer segment.
Definition: DTTracoTrigData.h:174