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 //
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 
42  public:
43 
45  DTTracoTrig();
46 
48  DTTracoTrig(DTTracoChip*, int);
49 
52 
54  ~DTTracoTrig();
55 
57  inline void setParent(DTTracoChip* parent) {
58  _tparent = parent;
59  }
60 
62  inline void addDTBtiTrig(const DTBtiTrigData* btitrig) {
63  _btitrig.push_back(btitrig);
64  }
65 
67  inline void setPV(int first, int code, int K, int io) {
68  _data.setPV(first,code,K,io);
69  }
70 
72  inline void setPVCorr(int ic) {
73  _data.setPVCorr(ic);
74  }
75 
77  inline void setCodeIn(int code) {
78  _data.setCodeIn(code);
79  }
80 
82  inline void setCodeOut(int code) {
83  _data.setCodeOut(code);
84  }
85 
87  inline void setPosIn(int pos) {
88  _data.setPosIn(pos);
89  }
90 
92  inline void setPosOut(int pos) {
93  _data.setPosOut(pos);
94  }
95 
97  inline void setEqIn(int eq) {
98  _data.setEqIn(eq);
99  }
100 
102  inline void setEqOut(int eq) {
103  _data.setEqOut(eq);
104  }
105 
107  inline void setK(int k) {
108  _data.setK(k);
109  }
110 
112  inline void setX(int x) {
113  _data.setX(x);
114  }
115 
117  inline void setAngles(int psi, int psir, int dpsir) {
118  _data.setAngles(psi,psir,dpsir);
119  }
120 
122  inline void resetVar() {
123  _data.resetVar();
124  }
125 
127  inline void resetPV() {
128  _data.resetPV();
129  }
130 
132  inline void clear() {
133  _data.clear();
134  _btitrig.clear();
135  }
136 
138  inline DTChamberId ChamberId() const {
139  return _data.ChamberId();
140  }
141 
143  inline void print() const {
144  _data.print();
145  }
146 
148  inline DTTracoChip* tParent() const {
149  return _tparent;
150  }
151 
153  inline DTTracoTrigData data() const {
154  return _data;
155  }
156 
158  inline int tracoNumber() const {
159  return _data.tracoNumber();
160  }
161 
163  inline int step() const {
164  return _data.step();
165  }
166 
168  inline int code() const {
169  return _data.code();
170  }
171 
173  inline int posMask() const {
174  return _data.posMask();
175  }
176 
178  inline int posIn() const {
179  return _data.posIn();
180  }
181 
183  inline int posOut() const {
184  return _data.posOut();
185  }
186 
188  inline int eqIn() {
189  return _data.eqIn();
190  }
191 
193  inline int eqOut() {
194  return _data.eqOut();
195  }
196 
198  inline int isFirst() const {
199  return _data.isFirst();
200  }
201 
203  inline int pvCode() const {
204  return _data.pvCode();
205  }
206 
208  inline int pvK() const {
209  return _data.pvK();
210  }
211 
213  inline int pvCorr() const {
214  return _data.pvCorr();
215  }
216 
218  inline int K() const {
219  return _data.K();
220  }
221 
223  inline int X() const {
224  return _data.X();
225  }
226 
228  inline int psi() const {
229  return _data.psi();
230  }
231 
233  inline int psiR() const {
234  return _data.psiR();
235  }
236 
238  inline int DeltaPsiR() const {
239  return _data.DeltaPsiR();
240  }
241 
243  inline int qdec() const {
244  return _data.qdec();
245  }
246 
248  std::vector<const DTBtiTrigData*> btiTrigList() const {
249  return _btitrig;
250  }
251 
253  bool operator == (const DTTracoTrig &) const;
254 
255 
256  private:
257 
258  // parent TRACO
260 
261  // Trigger data component
263 
264  // vector of BTI triggers which produce the DTTracoChip trigger (1 or 2)
265  std::vector<const DTBtiTrigData*> _btitrig;
266 
267 };
268 
269 #endif
void resetVar()
Reset all variables but preview.
void setPosIn(int pos)
Set position of segments, inner.
Definition: DTTracoTrig.h:87
DTChamberId ChamberId() const
Return chamber identifier.
Definition: DTTracoTrig.h:138
DTTracoTrigData data() const
Return the data part.
Definition: DTTracoTrig.h:153
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:112
void setK(int k)
Set trigger K parameter.
Definition: DTTracoTrig.h:107
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:183
int psiR() const
Return trigger X parameter converted to angle.
void resetVar()
Reset all variables but preview.
Definition: DTTracoTrig.h:122
void clear()
Clear.
Definition: DTTracoTrig.h:132
std::vector< const DTBtiTrigData * > btiTrigList() const
Return the BTI Triggers list.
Definition: DTTracoTrig.h:248
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:77
int eqIn()
Return bti trigger equation of segments, inner.
Definition: DTTracoTrig.h:188
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:92
DTTracoTrigData _data
Definition: DTTracoTrig.h:262
void resetPV()
Reset preview variables.
Definition: DTTracoTrig.h:127
int posMask() const
Return correlator output code (position of segments)
Definition: DTTracoTrig.h:173
void clear()
Clear.
DTChamberId ChamberId() const
Return chamber identifier.
int step() const
Return step.
Definition: DTTracoTrig.h:163
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:82
DTTracoChip * _tparent
Definition: DTTracoTrig.h:259
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:102
int pvCode() const
Return the preview code.
Definition: DTTracoTrig.h:203
DTTracoChip * tParent() const
Return parent TRACO pointer.
Definition: DTTracoTrig.h:148
void addDTBtiTrig(const DTBtiTrigData *btitrig)
Add a BTI trigger to the list.
Definition: DTTracoTrig.h:62
void setAngles(int psi, int psir, int dpsir)
Set trigger angles.
Definition: DTTracoTrig.h:117
int psi() const
Return trigger K parameter converted to angle.
Definition: DTTracoTrig.h:228
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:57
int pvCorr() const
Return the preview correaltion bit.
Definition: DTTracoTrig.h:213
void setCodeIn(int code)
Set trigger code inner layer.
int qdec() const
Return the trigger code in new format.
Definition: DTTracoTrig.h:243
int psiR() const
Return trigger X parameter converted to angle.
Definition: DTTracoTrig.h:233
int posIn() const
Return the position of inner segment.
Definition: DTTracoTrig.h:178
int isFirst() const
Return non 0 if the track is a first track.
Definition: DTTracoTrig.h:198
int pvK() const
Return the preview K.
Definition: DTTracoTrig.h:208
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:72
int qdec() const
Return the trigger code in new format.
void print() const
Print.
Definition: DTTracoTrig.h:143
std::vector< const DTBtiTrigData * > _btitrig
Definition: DTTracoTrig.h:265
int code() const
Return trigger code.
int X() const
Return trigger X parameter.
Definition: DTTracoTrig.h:223
void setEqIn(int eq)
Set bti trigger equation of segments, inner.
Definition: DTTracoTrig.h:97
int K() const
Return trigger K parameter.
int tracoNumber() const
Return parent TRACO number.
Definition: DTTracoTrig.h:158
bool operator==(const DTTracoTrig &) const
comparison operator
Definition: DTTracoTrig.cc:76
void setEqIn(int eq)
Set bti trigger equation of segment, inner layer.
void setPV(int first, int code, int K, int io)
Set trigger preview parameters.
Definition: DTTracoTrig.h:67
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:168
int K() const
Return trigger K parameter.
Definition: DTTracoTrig.h:218
int DeltaPsiR() const
Return DeltaPsiR.
Definition: DTTracoTrig.h:238
int eqOut()
Return bti trigger equation of segments, outer.
Definition: DTTracoTrig.h:193