CMS 3D CMS Logo

DTConfigTraco.h
Go to the documentation of this file.
1 //-------------------------------------------------
2 //
12 //
13 //--------------------------------------------------
14 #ifndef DT_CONFIG_TRACO_H
15 #define DT_CONFIG_TRACO_H
16 
17 //---------------
18 // C++ Headers --
19 //---------------
20 
21 //----------------------
22 // Base Class Headers --
23 //----------------------
24 
25 //------------------------------------
26 // Collaborating Class Declarations --
27 //------------------------------------
31 #include <cstdint>
32 
33 // ---------------------
34 // -- Class Interface --
35 // ---------------------
36 
37 class DTConfigTraco : public DTConfig {
38 public:
40  static const int RESOLPSI = 512;
42  static const int RESOLPSIR = 4096;
44  static const int NMAXCAND;
45 
48 
51 
53  DTConfigTraco(int debug, unsigned short int* buffer);
54 
56  ~DTConfigTraco() override;
57 
59  void setDefaults(const edm::ParameterSet& ps);
60 
62  inline int debug() const { return m_debug; }
63 
65  inline int KRAD() const { return m_krad; }
66 
68  inline int BTIC() const { return m_btic; }
69 
71  inline int DD() const { return m_dd; }
72 
74  inline int TcReuse(int i) const {
75  if (i == 0)
76  return m_reusei;
77  else
78  return m_reuseo;
79  }
80 
82  inline int singleHflag(int i) const {
83  if (i == 0)
84  return m_fhtmsk;
85  else
86  return m_shtmsk;
87  }
88 
90  inline int singleLflag(int i) const {
91  if (i == 0)
92  return m_fltmsk;
93  else
94  return m_sltmsk;
95  }
96 
98  inline int prefInner(int i) const {
99  if (i == 0)
100  return m_fslmsk;
101  else
102  return m_sslmsk;
103  }
104 
106  inline int prefHtrig(int i) const {
107  if (i == 0)
108  return m_fhtprf;
109  else
110  return m_shtprf;
111  }
112 
114  inline int sortKascend(int i) const {
115  if (i == 0)
116  return m_fhism;
117  else
118  return m_shism;
119  }
120 
122  inline int TcKToll(int i) const {
123  if (i == 0)
124  return m_fprgcomp;
125  else
126  return m_sprgcomp;
127  }
128 
130  inline int TcBxLts() const { return m_lts; }
131 
133  inline int singleLenab(int i) const { return m_ltf; }
134 
136  inline int usedBti(int bti) const { return m_trgenb.element(bti - 1); }
137 
139  inline int IBTIOFF() const { return m_ibtioff; }
140 
142  inline int BendingAngleCut() const { return m_kprgcom; }
143 
145  inline int LVALIDIFH() const { return m_lvalidifh; }
146 
149  inline void setDebug(int debug) { m_debug = debug; }
150 
152  inline void setKRAD(int KRAD) { m_krad = KRAD; }
153 
155  inline void setBTIC(int BTIC) { m_btic = BTIC; }
156 
158  inline void setDD(int DD) { m_dd = DD; }
159 
161  inline void setTcReuse(int i, int TcReuse) {
162  if (i == 0)
163  m_reusei = TcReuse;
164  else
165  m_reuseo = TcReuse;
166  }
167 
169  inline void setSingleHflag(int i, int singleHflag) {
170  if (i == 0)
172  else
174  }
175 
177  inline void setSingleLflag(int i, int singleLflag) {
178  if (i == 0)
180  else
182  }
183 
185  inline void setPrefInner(int i, int prefInner) {
186  if (i == 0)
188  else
190  }
191 
193  inline void setPrefHtrig(int i, int prefHtrig) {
194  if (i == 0)
196  else
198  }
199 
201  inline void setSortKascend(int i, int sortKascend) {
202  if (i == 0)
204  else
206  }
207 
209  inline void setTcKToll(int i, int TcKToll) {
210  if (i == 0)
212  else
214  }
215 
217  inline void setTcBxLts(int TcBxLts) { m_lts = TcBxLts; }
218 
220  inline void setSingleLenab(int i, int singleLenab) { m_ltf = singleLenab; }
221 
223  inline void setUsedBti(int bti, int mask) { m_trgenb.set(bti - 1, mask); }
224 
226  inline void setIBTIOFF(int IBTIOFF) { m_ibtioff = IBTIOFF; }
227 
230 
232  inline void setLVALIDIFH(int LVALIDIFH) { m_lvalidifh = LVALIDIFH; }
233 
235  void print() const;
236 
237  /* //! Return pointer to parameter set */
238  /* const edm::ParameterSet* getParameterSet() { return m_ps; } */
239 
240 private:
241  // const edm::ParameterSet* m_ps;
242 
243  int8_t m_debug;
244  int8_t m_krad;
245  int8_t m_btic;
246  int8_t m_dd;
247  int8_t m_reusei;
248  int8_t m_reuseo;
249  int8_t m_fhtmsk;
250  int8_t m_shtmsk;
251  int8_t m_fltmsk;
252  int8_t m_sltmsk;
253  int8_t m_fslmsk;
254  int8_t m_sslmsk;
255  int8_t m_fhtprf;
256  int8_t m_shtprf;
257  int8_t m_fhism;
258  int8_t m_shism;
259  int8_t m_fprgcomp;
260  int8_t m_sprgcomp;
261  int8_t m_lts;
262  int8_t m_ltf;
264  int8_t m_ibtioff;
265  int16_t m_kprgcom;
266  int8_t m_lvalidifh;
267 };
268 
269 #endif
DTConfigTraco::usedBti
int usedBti(int bti) const
Connected bti in traco: bti mask.
Definition: DTConfigTraco.h:136
DTConfigTraco::sortKascend
int sortKascend(int i) const
Ascend. order for K sorting first/second tracks: F(S)HISM.
Definition: DTConfigTraco.h:114
DTConfigTraco::m_btic
int8_t m_btic
Definition: DTConfigTraco.h:245
DTConfigTraco::BTIC
int BTIC() const
BTIC traco parameter: must be equal to Btis ST parameter.
Definition: DTConfigTraco.h:68
mps_fire.i
i
Definition: mps_fire.py:355
DTConfigTraco::setTcKToll
void setTcKToll(int i, int TcKToll)
Set K tollerance for correlation in TRACO: F(S)PRGCOMP.
Definition: DTConfigTraco.h:209
DTConfigTraco::m_debug
int8_t m_debug
Definition: DTConfigTraco.h:243
DTConfigTraco::~DTConfigTraco
~DTConfigTraco() override
Destructor.
Definition: DTConfigTraco.cc:144
DTConfigTraco
Definition: DTConfigTraco.h:37
DTConfigTraco::prefHtrig
int prefHtrig(int i) const
Preference to HTRIG on first/second tracks: F(S)HTPRF.
Definition: DTConfigTraco.h:106
DTConfigTraco::m_fprgcomp
int8_t m_fprgcomp
Definition: DTConfigTraco.h:259
DTConfigTraco::DTConfigTraco
DTConfigTraco()
Constructor.
Definition: DTConfigTraco.h:50
DTConfigTraco::setIBTIOFF
void setIBTIOFF(int IBTIOFF)
Set IBTIOFF traco parameter.
Definition: DTConfigTraco.h:226
DTConfigTraco::setPrefHtrig
void setPrefHtrig(int i, int prefHtrig)
Set Preference to HTRIG on first/second tracks: F(S)HTPRF.
Definition: DTConfigTraco.h:193
DTConfigTraco::TcReuse
int TcReuse(int i) const
Recycling of TRACO cand. in inner/outer SL : REUSEI/REUSEO.
Definition: DTConfigTraco.h:74
DTConfigTraco::m_reuseo
int8_t m_reuseo
Definition: DTConfigTraco.h:248
DTConfigTraco::m_fhism
int8_t m_fhism
Definition: DTConfigTraco.h:257
DTConfigTraco::setBendingAngleCut
void setBendingAngleCut(int BendingAngleCut)
Set Bending angle cut for all stations and triggers : KPRGCOM.
Definition: DTConfigTraco.h:229
DTConfigTraco::setSortKascend
void setSortKascend(int i, int sortKascend)
Set Ascend. order for K sorting first/second tracks: F(S)HISM.
Definition: DTConfigTraco.h:201
DTConfigTraco::setDD
void setDD(int DD)
Set DD traco parameter: this is fixed.
Definition: DTConfigTraco.h:158
DTConfigTraco::TcBxLts
int TcBxLts() const
Suppr. of LTRIG in 4 BX before HTRIG: LTS.
Definition: DTConfigTraco.h:130
DTConfigTraco::m_fhtmsk
int8_t m_fhtmsk
Definition: DTConfigTraco.h:249
DTConfigTraco::m_kprgcom
int16_t m_kprgcom
Definition: DTConfigTraco.h:265
DTConfigTraco::m_ltf
int8_t m_ltf
Definition: DTConfigTraco.h:262
DTConfigTraco::setDebug
void setDebug(int debug)
Definition: DTConfigTraco.h:149
DTConfigTraco::setSingleLflag
void setSingleLflag(int i, int singleLflag)
Set Single LTRIG enabling on first/second tracks: F(S)LTMSK.
Definition: DTConfigTraco.h:177
DTConfigTraco::setTcBxLts
void setTcBxLts(int TcBxLts)
Set Suppr. of LTRIG in 4 BX before HTRIG: LTS.
Definition: DTConfigTraco.h:217
DTConfigTraco::setUsedBti
void setUsedBti(int bti, int mask)
Set Connected bti in traco: bti mask.
Definition: DTConfigTraco.h:223
edmScanValgrind.buffer
buffer
Definition: edmScanValgrind.py:171
DTConfigTraco::TcKToll
int TcKToll(int i) const
K tollerance for correlation in TRACO: F(S)PRGCOMP.
Definition: DTConfigTraco.h:122
DTConfigTraco::m_ibtioff
int8_t m_ibtioff
Definition: DTConfigTraco.h:264
DTConfigTraco::KRAD
int KRAD() const
KRAD traco parameter.
Definition: DTConfigTraco.h:65
DTConfigTraco::RESOLPSIR
static const int RESOLPSIR
Costant: resulution for psiR (phi)
Definition: DTConfigTraco.h:42
DTConfigTraco::LVALIDIFH
int LVALIDIFH() const
Flag for Low validation parameter.
Definition: DTConfigTraco.h:145
BitArray::element
int element(const int pos) const
Definition: BitArray.h:206
DTConfigTraco::RESOLPSI
static const int RESOLPSI
Costants: esolution for psi and DeltaPsiR (phi_B)
Definition: DTConfigTraco.h:40
DTConfigTraco::NMAXCAND
static const int NMAXCAND
Costant: maximum number of TRACO output candidates to TS.
Definition: DTConfigTraco.h:44
DTConfigTraco::m_fhtprf
int8_t m_fhtprf
Definition: DTConfigTraco.h:255
DTConfigTraco::m_lts
int8_t m_lts
Definition: DTConfigTraco.h:261
DTConfigTraco::m_shism
int8_t m_shism
Definition: DTConfigTraco.h:258
DTConfigTraco::m_shtmsk
int8_t m_shtmsk
Definition: DTConfigTraco.h:250
DTConfigTraco::m_dd
int8_t m_dd
Definition: DTConfigTraco.h:246
edm::ParameterSet
Definition: ParameterSet.h:36
DTConfigTraco::m_fltmsk
int8_t m_fltmsk
Definition: DTConfigTraco.h:251
DTConfigTraco::print
void print() const
Print the setup.
Definition: DTConfigTraco.cc:219
DTConfigTraco::m_fslmsk
int8_t m_fslmsk
Definition: DTConfigTraco.h:253
DTConfigTraco::setKRAD
void setKRAD(int KRAD)
Set KRAD traco parameter.
Definition: DTConfigTraco.h:152
DTConfigTraco::m_sprgcomp
int8_t m_sprgcomp
Definition: DTConfigTraco.h:260
DTConfigTraco::setPrefInner
void setPrefInner(int i, int prefInner)
Set Preference to inner on first/second tracks: F(S)SLMSK.
Definition: DTConfigTraco.h:185
DTConfigTraco::setDefaults
void setDefaults(const edm::ParameterSet &ps)
Set default parameters.
Definition: DTConfigTraco.cc:150
DTConfigTraco::setSingleLenab
void setSingleLenab(int i, int singleLenab)
Set Single LTRIG accept enabling on first/second tracks LTF.
Definition: DTConfigTraco.h:220
DTConfigTraco::setBTIC
void setBTIC(int BTIC)
Set BTIC traco parameter: must be equal to Btis ST parameter.
Definition: DTConfigTraco.h:155
DTConfigTraco::m_sslmsk
int8_t m_sslmsk
Definition: DTConfigTraco.h:254
DTConfigTraco::DD
int DD() const
DD traco parameter: this is fixed.
Definition: DTConfigTraco.h:71
DTConfig.h
DTConfigTraco::m_trgenb
BitArray< 16 > m_trgenb
Definition: DTConfigTraco.h:263
DTConfigTraco::m_reusei
int8_t m_reusei
Definition: DTConfigTraco.h:247
DTConfigTraco::singleLenab
int singleLenab(int i) const
Single LTRIG accept enabling on first/second tracks LTF.
Definition: DTConfigTraco.h:133
DTConfigTraco::prefInner
int prefInner(int i) const
Preference to inner on first/second tracks: F(S)SLMSK.
Definition: DTConfigTraco.h:98
DTConfigTraco::setTcReuse
void setTcReuse(int i, int TcReuse)
Set Recycling of TRACO cand. in inner/outer SL : REUSEI/REUSEO.
Definition: DTConfigTraco.h:161
DTConfigTraco::setSingleHflag
void setSingleHflag(int i, int singleHflag)
Set Single HTRIG enabling on first/second tracks F(S)HTMSK.
Definition: DTConfigTraco.h:169
DTConfigTraco::singleLflag
int singleLflag(int i) const
Single LTRIG enabling on first/second tracks: F(S)LTMSK.
Definition: DTConfigTraco.h:90
DTConfigTraco::BendingAngleCut
int BendingAngleCut() const
Bending angle cut for all stations and triggers : KPRGCOM.
Definition: DTConfigTraco.h:142
DTConfig
Definition: DTConfig.h:32
BitArray::set
void set(const int i)
Definition: BitArray.h:224
ParameterSet.h
DTConfigTraco::m_lvalidifh
int8_t m_lvalidifh
Definition: DTConfigTraco.h:266
BitArray.h
DTConfigTraco::IBTIOFF
int IBTIOFF() const
IBTIOFF traco parameter.
Definition: DTConfigTraco.h:139
DTConfigTraco::m_shtprf
int8_t m_shtprf
Definition: DTConfigTraco.h:256
DTConfigTraco::m_krad
int8_t m_krad
Definition: DTConfigTraco.h:244
BitArray< 16 >
DTConfigTraco::m_sltmsk
int8_t m_sltmsk
Definition: DTConfigTraco.h:252
DTConfigTraco::singleHflag
int singleHflag(int i) const
Single HTRIG enabling on first/second tracks F(S)HTMSK.
Definition: DTConfigTraco.h:82
DTConfigTraco::setLVALIDIFH
void setLVALIDIFH(int LVALIDIFH)
Set Flag for Low validation parameter.
Definition: DTConfigTraco.h:232
DTConfigTraco::debug
int debug() const
Debug flag.
Definition: DTConfigTraco.h:62