CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups 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 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
void resetVar()
Reset all variables but preview.
void setPosIn(int pos)
Set position of segments, inner.
Definition: DTTracoTrig.h:73
DTTracoTrigData data() const
Return the data part.
Definition: DTTracoTrig.h:115
void setAngles(int psi, int psir, int dpsir)
Set trigger angles.
void setX(int x)
Set trigger X parameter.
Definition: DTTracoTrig.h:88
void setK(int k)
Set trigger K parameter.
Definition: DTTracoTrig.h:85
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:133
int psiR() const
Return trigger X parameter converted to angle.
void resetVar()
Reset all variables but preview.
Definition: DTTracoTrig.h:94
void clear()
Clear.
Definition: DTTracoTrig.h:100
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:67
std::vector< const DTBtiTrigData * > btiTrigList() const
Return the BTI Triggers list.
Definition: DTTracoTrig.h:172
std::vector< const DTBtiTrigData * > _btitrig
Definition: DTTracoTrig.h:185
int eqIn()
Return bti trigger equation of segments, inner.
Definition: DTTracoTrig.h:136
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:76
DTTracoTrigData _data
Definition: DTTracoTrig.h:182
void resetPV()
Reset preview variables.
Definition: DTTracoTrig.h:97
int posMask() const
Return correlator output code (position of segments)
Definition: DTTracoTrig.h:127
void clear()
Clear.
DTChamberId ChamberId() const override
Return chamber identifier.
int step() const
Return step.
Definition: DTTracoTrig.h:121
DTChamberId ChamberId() const override
Return chamber identifier.
Definition: DTTracoTrig.h:106
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:70
DTTracoChip * _tparent
Definition: DTTracoTrig.h:179
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:82
int pvCode() const
Return the preview code.
Definition: DTTracoTrig.h:145
DTTracoChip * tParent() const
Return parent TRACO pointer.
Definition: DTTracoTrig.h:112
void addDTBtiTrig(const DTBtiTrigData *btitrig)
Add a BTI trigger to the list.
Definition: DTTracoTrig.h:58
void setAngles(int psi, int psir, int dpsir)
Set trigger angles.
Definition: DTTracoTrig.h:91
int psi() const
Return trigger K parameter converted to angle.
Definition: DTTracoTrig.h:160
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:55
void print() const override
Print.
Definition: DTTracoTrig.h:109
int pvCorr() const
Return the preview correaltion bit.
Definition: DTTracoTrig.h:151
void setCodeIn(int code)
Set trigger code inner layer.
int qdec() const
Return the trigger code in new format.
Definition: DTTracoTrig.h:169
int psiR() const
Return trigger X parameter converted to angle.
Definition: DTTracoTrig.h:163
int posIn() const
Return the position of inner segment.
Definition: DTTracoTrig.h:130
int isFirst() const
Return non 0 if the track is a first track.
Definition: DTTracoTrig.h:142
void print() const override
print
int pvK() const
Return the preview K.
Definition: DTTracoTrig.h:148
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:64
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:157
void setEqIn(int eq)
Set bti trigger equation of segments, inner.
Definition: DTTracoTrig.h:79
int K() const
Return trigger K parameter.
int tracoNumber() const
Return parent TRACO number.
Definition: DTTracoTrig.h:118
bool operator==(const DTTracoTrig &) const
comparison operator
Definition: DTTracoTrig.cc:64
void setEqIn(int eq)
Set bti trigger equation of segment, inner layer.
~DTTracoTrig() override
Destructor.
Definition: DTTracoTrig.cc:62
void setPV(int first, int code, int K, int io)
Set trigger preview parameters.
Definition: DTTracoTrig.h:61
int eqIn() const
Return bti trigger equation of inner segment.
void resetPV()
Reset preview variables.
int code() const
Return trigger code.
Definition: DTTracoTrig.h:124
int K() const
Return trigger K parameter.
Definition: DTTracoTrig.h:154
int DeltaPsiR() const
Return DeltaPsiR.
Definition: DTTracoTrig.h:166
int eqOut()
Return bti trigger equation of segments, outer.
Definition: DTTracoTrig.h:139