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 
42 public:
44  DTTracoTrig();
45 
47  DTTracoTrig(DTTracoChip *, int);
48 
51 
53  ~DTTracoTrig() override;
54 
57 
59  inline void addDTBtiTrig(const DTBtiTrigData *btitrig) {
60  _btitrig.push_back(btitrig);
61  }
62 
64  inline void setPV(int first, int code, int K, int io) {
65  _data.setPV(first, code, K, io);
66  }
67 
69  inline void setPVCorr(int ic) { _data.setPVCorr(ic); }
70 
72  inline void setCodeIn(int code) { _data.setCodeIn(code); }
73 
75  inline void setCodeOut(int code) { _data.setCodeOut(code); }
76 
78  inline void setPosIn(int pos) { _data.setPosIn(pos); }
79 
81  inline void setPosOut(int pos) { _data.setPosOut(pos); }
82 
84  inline void setEqIn(int eq) { _data.setEqIn(eq); }
85 
87  inline void setEqOut(int eq) { _data.setEqOut(eq); }
88 
90  inline void setK(int k) { _data.setK(k); }
91 
93  inline void setX(int x) { _data.setX(x); }
94 
96  inline void setAngles(int psi, int psir, int dpsir) {
97  _data.setAngles(psi, psir, dpsir);
98  }
99 
101  inline void resetVar() { _data.resetVar(); }
102 
104  inline void resetPV() { _data.resetPV(); }
105 
107  inline void clear() {
108  _data.clear();
109  _btitrig.clear();
110  }
111 
113  inline DTChamberId ChamberId() const override { return _data.ChamberId(); }
114 
116  inline void print() const override { _data.print(); }
117 
119  inline DTTracoChip *tParent() const { return _tparent; }
120 
122  inline DTTracoTrigData data() const { return _data; }
123 
125  inline int tracoNumber() const { return _data.tracoNumber(); }
126 
128  inline int step() const { return _data.step(); }
129 
131  inline int code() const { return _data.code(); }
132 
134  inline int posMask() const { return _data.posMask(); }
135 
137  inline int posIn() const { return _data.posIn(); }
138 
140  inline int posOut() const { return _data.posOut(); }
141 
143  inline int eqIn() { return _data.eqIn(); }
144 
146  inline int eqOut() { return _data.eqOut(); }
147 
149  inline int isFirst() const { return _data.isFirst(); }
150 
152  inline int pvCode() const { return _data.pvCode(); }
153 
155  inline int pvK() const { return _data.pvK(); }
156 
158  inline int pvCorr() const { return _data.pvCorr(); }
159 
161  inline int K() const { return _data.K(); }
162 
164  inline int X() const { return _data.X(); }
165 
167  inline int psi() const { return _data.psi(); }
168 
170  inline int psiR() const { return _data.psiR(); }
171 
173  inline int DeltaPsiR() const { return _data.DeltaPsiR(); }
174 
176  inline int qdec() const { return _data.qdec(); }
177 
179  std::vector<const DTBtiTrigData *> btiTrigList() const { return _btitrig; }
180 
182  bool operator==(const DTTracoTrig &) const;
183 
184 private:
185  // parent TRACO
187 
188  // Trigger data component
190 
191  // vector of BTI triggers which produce the DTTracoChip trigger (1 or 2)
192  std::vector<const DTBtiTrigData *> _btitrig;
193 };
194 
195 #endif
void resetVar()
Reset all variables but preview.
void setPosIn(int pos)
Set position of segments, inner.
Definition: DTTracoTrig.h:78
void print() const override
Print.
Definition: DTTracoTrig.h:116
DTChamberId ChamberId() const override
Return chamber identifier.
DTTracoTrigData data() const
Return the data part.
Definition: DTTracoTrig.h:122
void setAngles(int psi, int psir, int dpsir)
Set trigger angles.
void setX(int x)
Set trigger X parameter.
Definition: DTTracoTrig.h:93
void setK(int k)
Set trigger K parameter.
Definition: DTTracoTrig.h:90
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:140
int psiR() const
Return trigger X parameter converted to angle.
void resetVar()
Reset all variables but preview.
Definition: DTTracoTrig.h:101
void clear()
Clear.
Definition: DTTracoTrig.h:107
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:72
std::vector< const DTBtiTrigData * > btiTrigList() const
Return the BTI Triggers list.
Definition: DTTracoTrig.h:179
std::vector< const DTBtiTrigData * > _btitrig
Definition: DTTracoTrig.h:192
int eqIn()
Return bti trigger equation of segments, inner.
Definition: DTTracoTrig.h:143
std::map< std::string, int, std::less< std::string > > psi
void setK(int k)
Set trigger K parameter.
void setPosOut(int pos)
Set position of segments, outer.
Definition: DTTracoTrig.h:81
DTTracoTrigData _data
Definition: DTTracoTrig.h:189
void resetPV()
Reset preview variables.
Definition: DTTracoTrig.h:104
int posMask() const
Return correlator output code (position of segments)
Definition: DTTracoTrig.h:134
void clear()
Clear.
int step() const
Return step.
Definition: DTTracoTrig.h:128
void print() const override
print
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:75
DTTracoChip * _tparent
Definition: DTTracoTrig.h:186
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:87
int pvCode() const
Return the preview code.
Definition: DTTracoTrig.h:152
DTTracoChip * tParent() const
Return parent TRACO pointer.
Definition: DTTracoTrig.h:119
void addDTBtiTrig(const DTBtiTrigData *btitrig)
Add a BTI trigger to the list.
Definition: DTTracoTrig.h:59
void setAngles(int psi, int psir, int dpsir)
Set trigger angles.
Definition: DTTracoTrig.h:96
int psi() const
Return trigger K parameter converted to angle.
Definition: DTTracoTrig.h:167
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:56
int pvCorr() const
Return the preview correaltion bit.
Definition: DTTracoTrig.h:158
void setCodeIn(int code)
Set trigger code inner layer.
int qdec() const
Return the trigger code in new format.
Definition: DTTracoTrig.h:176
int psiR() const
Return trigger X parameter converted to angle.
Definition: DTTracoTrig.h:170
int posIn() const
Return the position of inner segment.
Definition: DTTracoTrig.h:137
int isFirst() const
Return non 0 if the track is a first track.
Definition: DTTracoTrig.h:149
int pvK() const
Return the preview K.
Definition: DTTracoTrig.h:155
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:69
int qdec() const
Return the trigger code in new format.
int code() const
Return trigger code.
int X() const
Return trigger X parameter.
Definition: DTTracoTrig.h:164
void setEqIn(int eq)
Set bti trigger equation of segments, inner.
Definition: DTTracoTrig.h:84
int K() const
Return trigger K parameter.
int tracoNumber() const
Return parent TRACO number.
Definition: DTTracoTrig.h:125
bool operator==(const DTTracoTrig &) const
comparison operator
Definition: DTTracoTrig.cc:68
void setEqIn(int eq)
Set bti trigger equation of segment, inner layer.
~DTTracoTrig() override
Destructor.
Definition: DTTracoTrig.cc:66
void setPV(int first, int code, int K, int io)
Set trigger preview parameters.
Definition: DTTracoTrig.h:64
int eqIn() const
Return bti trigger equation of inner segment.
void resetPV()
Reset preview variables.
int code() const
Return trigger code.
Definition: DTTracoTrig.h:131
int K() const
Return trigger K parameter.
Definition: DTTracoTrig.h:161
DTChamberId ChamberId() const override
Return chamber identifier.
Definition: DTTracoTrig.h:113
int DeltaPsiR() const
Return DeltaPsiR.
Definition: DTTracoTrig.h:173
int eqOut()
Return bti trigger equation of segments, outer.
Definition: DTTracoTrig.h:146