CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
DTTracoTrig.h
Go to the documentation of this file.
1 //-------------------------------------------------
2 //
15 //
16 //--------------------------------------------------
17 #ifndef DT_TRACO_TRIG_H
18 #define DT_TRACO_TRIG_H
19 
20 //------------------------------------
21 // Collaborating Class Declarations --
22 //------------------------------------
23 class DTBtiTrigData;
24 class DTTracoChip;
25 
26 //----------------------
27 // Base Class Headers --
28 //----------------------
32 
33 //---------------
34 // C++ Headers --
35 //---------------
36 #include <vector>
37 
38 // ---------------------
39 // -- Class Interface --
40 // ---------------------
41 
42 class DTTracoTrig : public DTTrigData {
43 
44  public:
45 
47  DTTracoTrig();
48 
50  DTTracoTrig(DTTracoChip*, int);
51 
54 
56  ~DTTracoTrig();
57 
59  inline void setParent(DTTracoChip* parent) {
60  _tparent = parent;
61  }
62 
64  inline void addDTBtiTrig(const DTBtiTrigData* btitrig) {
65  _btitrig.push_back(btitrig);
66  }
67 
69  inline void setPV(int first, int code, int K, int io) {
70  _data.setPV(first,code,K,io);
71  }
72 
74  inline void setPVCorr(int ic) {
75  _data.setPVCorr(ic);
76  }
77 
79  inline void setCodeIn(int code) {
80  _data.setCodeIn(code);
81  }
82 
84  inline void setCodeOut(int code) {
85  _data.setCodeOut(code);
86  }
87 
89  inline void setPosIn(int pos) {
90  _data.setPosIn(pos);
91  }
92 
94  inline void setPosOut(int pos) {
95  _data.setPosOut(pos);
96  }
97 
99  inline void setEqIn(int eq) {
100  _data.setEqIn(eq);
101  }
102 
104  inline void setEqOut(int eq) {
105  _data.setEqOut(eq);
106  }
107 
109  inline void setK(int k) {
110  _data.setK(k);
111  }
112 
114  inline void setX(int x) {
115  _data.setX(x);
116  }
117 
119  inline void setAngles(int psi, int psir, int dpsir) {
120  _data.setAngles(psi,psir,dpsir);
121  }
122 
124  inline void resetVar() {
125  _data.resetVar();
126  }
127 
129  inline void resetPV() {
130  _data.resetPV();
131  }
132 
134  inline void clear() {
135  _data.clear();
136  _btitrig.clear();
137  }
138 
140  inline DTChamberId ChamberId() const {
141  return _data.ChamberId();
142  }
143 
145  inline void print() const {
146  _data.print();
147  }
148 
150  inline DTTracoChip* tParent() const {
151  return _tparent;
152  }
153 
155  inline DTTracoTrigData data() const {
156  return _data;
157  }
158 
160  inline int tracoNumber() const {
161  return _data.tracoNumber();
162  }
163 
165  inline int step() const {
166  return _data.step();
167  }
168 
170  inline int code() const {
171  return _data.code();
172  }
173 
175  inline int posMask() const {
176  return _data.posMask();
177  }
178 
180  inline int posIn() const {
181  return _data.posIn();
182  }
183 
185  inline int posOut() const {
186  return _data.posOut();
187  }
188 
190  inline int eqIn() {
191  return _data.eqIn();
192  }
193 
195  inline int eqOut() {
196  return _data.eqOut();
197  }
198 
200  inline int isFirst() const {
201  return _data.isFirst();
202  }
203 
205  inline int pvCode() const {
206  return _data.pvCode();
207  }
208 
210  inline int pvK() const {
211  return _data.pvK();
212  }
213 
215  inline int pvCorr() const {
216  return _data.pvCorr();
217  }
218 
220  inline int K() const {
221  return _data.K();
222  }
223 
225  inline int X() const {
226  return _data.X();
227  }
228 
230  inline int psi() const {
231  return _data.psi();
232  }
233 
235  inline int psiR() const {
236  return _data.psiR();
237  }
238 
240  inline int DeltaPsiR() const {
241  return _data.DeltaPsiR();
242  }
243 
245  inline int qdec() const {
246  return _data.qdec();
247  }
248 
250  std::vector<const DTBtiTrigData*> btiTrigList() const {
251  return _btitrig;
252  }
253 
255  bool operator == (const DTTracoTrig &) const;
256 
257 
258  private:
259 
260  // parent TRACO
262 
263  // Trigger data component
265 
266  // vector of BTI triggers which produce the DTTracoChip trigger (1 or 2)
267  std::vector<const DTBtiTrigData*> _btitrig;
268 
269 };
270 
271 #endif
void resetVar()
Reset all variables but preview.
void setPosIn(int pos)
Set position of segments, inner.
Definition: DTTracoTrig.h:89
DTChamberId ChamberId() const
Return chamber identifier.
Definition: DTTracoTrig.h:140
DTTracoTrigData data() const
Return the data part.
Definition: DTTracoTrig.h:155
void setAngles(int psi, int psir, int dpsir)
Set trigger angles.
void print() const
print
list parent
Definition: dbtoconf.py:74
void setX(int x)
Set trigger X parameter.
Definition: DTTracoTrig.h:114
void setK(int k)
Set trigger K parameter.
Definition: DTTracoTrig.h:109
int posIn() const
Return the position of inner segment.
int posOut() const
Return the position of outer segment.
void setEqOut(int eq)
Set bti trigger equation of segment, outer layer.
int posOut() const
Return the position of outer segment.
Definition: DTTracoTrig.h:185
int psiR() const
Return trigger X parameter converted to angle.
void resetVar()
Reset all variables but preview.
Definition: DTTracoTrig.h:124
void clear()
Clear.
Definition: DTTracoTrig.h:134
std::vector< const DTBtiTrigData * > btiTrigList() const
Return the BTI Triggers list.
Definition: DTTracoTrig.h:250
int step() const
Return step.
void setPosOut(int pos)
Set position of segment, outer layer.
int posMask() const
Return correlator output code (position of segments)
int tracoNumber() const
Return parent TRACO number.
void setX(int x)
Set trigger X parameter.
int pvCorr() const
Return the preview correaltion bit.
int X() const
Return trigger X parameter.
void setPosIn(int pos)
Set position of segment, inner layer.
void setCodeIn(int code)
Set trigger code, inner segment.
Definition: DTTracoTrig.h:79
int eqIn()
Return bti trigger equation of segments, inner.
Definition: DTTracoTrig.h:190
void setK(int k)
Set trigger K parameter.
std::map< std::string, int, std::less< std::string > > psi
void setPosOut(int pos)
Set position of segments, outer.
Definition: DTTracoTrig.h:94
DTTracoTrigData _data
Definition: DTTracoTrig.h:264
void resetPV()
Reset preview variables.
Definition: DTTracoTrig.h:129
int posMask() const
Return correlator output code (position of segments)
Definition: DTTracoTrig.h:175
void clear()
Clear.
DTChamberId ChamberId() const
Return chamber identifier.
int step() const
Return step.
Definition: DTTracoTrig.h:165
void setCodeOut(int code)
Set trigger code outer layer.
DTTracoTrig()
Constructors.
Definition: DTTracoTrig.cc:38
int psi() const
Return trigger K parameter converted to angle.
int isFirst() const
Return non 0 if the track is a first track.
void setCodeOut(int code)
Set trigger code, outer segment.
Definition: DTTracoTrig.h:84
DTTracoChip * _tparent
Definition: DTTracoTrig.h:261
int pvK() const
Return the preview K.
void setPVCorr(int ic)
Set trigger preview correlation bit.
int DeltaPsiR() const
Return DeltaPsiR.
void setEqOut(int eq)
Set bti trigger equation of segments, outer.
Definition: DTTracoTrig.h:104
bool first
Definition: L1TdeRCT.cc:94
int pvCode() const
Return the preview code.
Definition: DTTracoTrig.h:205
DTTracoChip * tParent() const
Return parent TRACO pointer.
Definition: DTTracoTrig.h:150
void addDTBtiTrig(const DTBtiTrigData *btitrig)
Add a BTI trigger to the list.
Definition: DTTracoTrig.h:64
void setAngles(int psi, int psir, int dpsir)
Set trigger angles.
Definition: DTTracoTrig.h:119
int psi() const
Return trigger K parameter converted to angle.
Definition: DTTracoTrig.h:230
int k[5][pyjets_maxn]
int eqOut() const
Return bti trigger equation of outer segment.
int pvCode() const
Return the preview code.
void setParent(DTTracoChip *parent)
Set the parent TRACO.
Definition: DTTracoTrig.h:59
int pvCorr() const
Return the preview correaltion bit.
Definition: DTTracoTrig.h:215
void setCodeIn(int code)
Set trigger code inner layer.
int qdec() const
Return the trigger code in new format.
Definition: DTTracoTrig.h:245
int psiR() const
Return trigger X parameter converted to angle.
Definition: DTTracoTrig.h:235
int posIn() const
Return the position of inner segment.
Definition: DTTracoTrig.h:180
int isFirst() const
Return non 0 if the track is a first track.
Definition: DTTracoTrig.h:200
int pvK() const
Return the preview K.
Definition: DTTracoTrig.h:210
void setPV(int first, int code, int K, int ioflag)
Set trigger preview parameters.
void setPVCorr(int ic)
Set trigger preview correlation bit.
Definition: DTTracoTrig.h:74
int qdec() const
Return the trigger code in new format.
void print() const
Print.
Definition: DTTracoTrig.h:145
std::vector< const DTBtiTrigData * > _btitrig
Definition: DTTracoTrig.h:267
int code() const
Return trigger code.
int X() const
Return trigger X parameter.
Definition: DTTracoTrig.h:225
void setEqIn(int eq)
Set bti trigger equation of segments, inner.
Definition: DTTracoTrig.h:99
int K() const
Return trigger K parameter.
int tracoNumber() const
Return parent TRACO number.
Definition: DTTracoTrig.h:160
bool operator==(const DTTracoTrig &) const
comparison operator
Definition: DTTracoTrig.cc:76
void setEqIn(int eq)
Set bti trigger equation of segment, inner layer.
Definition: DDAxes.h:10
void setPV(int first, int code, int K, int io)
Set trigger preview parameters.
Definition: DTTracoTrig.h:69
int eqIn() const
Return bti trigger equation of inner segment.
void resetPV()
Reset preview variables.
~DTTracoTrig()
Destructor.
Definition: DTTracoTrig.cc:71
int code() const
Return trigger code.
Definition: DTTracoTrig.h:170
int K() const
Return trigger K parameter.
Definition: DTTracoTrig.h:220
int DeltaPsiR() const
Return DeltaPsiR.
Definition: DTTracoTrig.h:240
int eqOut()
Return bti trigger equation of segments, outer.
Definition: DTTracoTrig.h:195