CMS 3D CMS Logo

DTConfigBti.h
Go to the documentation of this file.
1 //-------------------------------------------------
2 //
11 //
12 //--------------------------------------------------
13 #ifndef DT_CONFIG_BTI_H
14 #define DT_CONFIG_BTI_H
15 
16 //---------------
17 // C++ Headers --
18 //---------------
19 
20 //----------------------
21 // Base Class Headers --
22 //----------------------
23 
24 //------------------------------------
25 // Collaborating Class Declarations --
26 //------------------------------------
30 #include <cstdint>
31 
32 // ---------------------
33 // -- Class Interface --
34 // ---------------------
35 
37 public:
38  /* //! constants: first and last step to start trigger finding
39  static const unsigned int NSTEPL=24, NSTEPF=9;
40  */
41 
43  DTConfigBti(const edm::ParameterSet& ps);
44 
46  DTConfigBti() { ; }
47 
49  DTConfigBti(int debug, unsigned short int* buffer);
50 
52  ~DTConfigBti() override;
53 
55  void setDefaults(const edm::ParameterSet& ps);
56 
58  inline int debug() const { return m_debug; }
59 
61  inline float ST() const { return (float)(0.75 * ST43() + 0.25 * RE43()); }
62 
64  inline int KCut() const { return m_kcut; }
65 
67  inline int KAccTheta() const { return m_kacctheta; }
68 
70  inline bool XON() const { return m_xon; }
71 
73  inline int LTS() const { return m_lts; }
74 
76  inline int SET() const { return m_set; }
77 
79  inline int AccPattAC1() const { return m_ac1; }
80 
82  inline int AccPattAC2() const { return m_ac2; }
83 
85  inline int AccPattACH() const { return m_ach; }
86 
88  inline int AccPattACL() const { return m_acl; }
89 
91  inline bool RONflag() const { return m_ron; }
92 
94  inline int PTMSflag(int patt) const { return m_pattmask.element(patt); }
95 
97  inline int WENflag(int wire) const { return m_wiremask.element(wire - 1); }
98 
100  inline int LL() const { return m_ll; }
101 
103  inline int LH() const { return m_lh; }
104 
106  inline int CL() const { return m_cl; }
107 
109  inline int CH() const { return m_ch; }
110 
112  inline int RL() const { return m_rl; }
113 
115  inline int RH() const { return m_rh; }
116 
118  inline int ST43() const { return m_4st3; }
119  inline int RE43() const { return m_4re3; }
120 
122  inline int DEADpar() const { return m_dead; }
123 
126  inline void setDebug(int debug) { m_debug = debug; }
127 
129  inline void setKCut(int KCut) { m_kcut = KCut; }
130 
132  inline void setKAccTheta(int KAccTh) { m_kacctheta = KAccTh; }
133 
135  inline void setXON(bool XON) { m_xon = XON; }
136 
138  inline void setLTS(int LTS) { m_lts = LTS; }
139 
141  inline void setSET(int SET) { m_set = SET; }
142 
144  inline void setAccPattAC1(int AC1) { m_ac1 = AC1; }
145 
147  inline void setAccPattAC2(int AC2) { m_ac2 = AC2; }
148 
150  inline void setAccPattACH(int ACH) { m_ach = ACH; }
151 
153  inline void setAccPattACL(int ACL) { m_acl = ACL; }
154 
156  inline void setRONflag(bool RON) { m_ron = RON; }
157 
159  inline void setPTMSflag(int mask, int patt) { m_pattmask.set(patt, mask); }
160 
162  inline void setWENflag(int mask, int wire) { m_wiremask.set(wire - 1, mask); }
163 
165  inline void setLL(int LL) { m_ll = LL; }
166 
168  inline void setLH(int LH) { m_lh = LH; }
169 
171  inline void setCL(int CL) { m_cl = CL; }
172 
174  inline void setCH(int CH) { m_ch = CH; }
175 
177  inline void setRL(int RL) { m_rl = RL; }
178 
180  inline void setRH(int RH) { m_rh = RH; }
181 
183  inline void setST43(int ST43) { m_4st3 = ST43; }
184  inline void setRE43(int RE43) { m_4re3 = RE43; }
185 
187  inline void setDEADpar(int DEAD) { m_dead = DEAD; }
188 
190  void print() const;
191 
192 private:
193  int8_t m_debug;
194  int8_t m_kcut;
195  int8_t m_kacctheta;
196  bool m_xon;
197  int8_t m_lts;
198  int8_t m_set;
199  int8_t m_ac1;
200  int8_t m_ac2;
201  int8_t m_ach;
202  int8_t m_acl;
203  bool m_ron;
206  int8_t m_ll;
207  int8_t m_lh;
208  int8_t m_cl;
209  int8_t m_ch;
210  int8_t m_rl;
211  int8_t m_rh;
212  int8_t m_4st3;
213  int8_t m_4re3;
214  int8_t m_dead;
215 };
216 
217 #endif
void setWENflag(int mask, int wire)
Set Wire mask flag.
Definition: DTConfigBti.h:162
int SET() const
SET.
Definition: DTConfigBti.h:76
int WENflag(int wire) const
Wire mask flag.
Definition: DTConfigBti.h:97
void setLL(int LL)
Set K left limit for left traco.
Definition: DTConfigBti.h:165
void setRONflag(bool RON)
Set Redundant patterns flag RONDTBti/src/DTBtiChipEquations.cc:
Definition: DTConfigBti.h:156
int8_t m_acl
Definition: DTConfigBti.h:202
int8_t m_ac1
Definition: DTConfigBti.h:199
int8_t m_rl
Definition: DTConfigBti.h:210
int LTS() const
LTS.
Definition: DTConfigBti.h:73
void setCL(int CL)
Set K left limit for center traco.
Definition: DTConfigBti.h:171
void setRL(int RL)
Set K left limit for right traco.
Definition: DTConfigBti.h:177
ACL
dead bti parameter
int8_t m_lh
Definition: DTConfigBti.h:207
int RH() const
K right limit for right traco.
Definition: DTConfigBti.h:115
int LH() const
K right limit for left traco.
Definition: DTConfigBti.h:103
bool RONflag() const
Redundant patterns flag RONDTBti/src/DTBtiChipEquations.cc:
Definition: DTConfigBti.h:91
~DTConfigBti() override
Destructor.
Definition: DTConfigBti.cc:147
AC2
drift velocity parameter 4ST3
int8_t m_lts
Definition: DTConfigBti.h:197
void setKAccTheta(int KAccTh)
Set BTI angular acceptance in theta view.
Definition: DTConfigBti.h:132
void setLH(int LH)
Set K right limit for left traco.
Definition: DTConfigBti.h:168
void setDefaults(const edm::ParameterSet &ps)
Set default parameters.
Definition: DTConfigBti.cc:153
int PTMSflag(int patt) const
Pattern mask flag.
Definition: DTConfigBti.h:94
int8_t m_dead
Definition: DTConfigBti.h:214
int KCut() const
Max K param accepted: max bit number.
Definition: DTConfigBti.h:64
constexpr uint32_t mask
Definition: gpuClustering.h:26
int8_t m_kacctheta
Definition: DTConfigBti.h:195
int8_t m_ll
Definition: DTConfigBti.h:206
int RE43() const
Definition: DTConfigBti.h:119
int8_t m_4re3
Definition: DTConfigBti.h:213
int CH() const
K right limit for center traco.
Definition: DTConfigBti.h:109
void setST43(int ST43)
Set ST and RE parameters for drift velocity.
Definition: DTConfigBti.h:183
void setSET(int SET)
Set SET.
Definition: DTConfigBti.h:141
void setAccPattACL(int ACL)
Set Acceptance pattern ACL.
Definition: DTConfigBti.h:153
int8_t m_4st3
Definition: DTConfigBti.h:212
void setRE43(int RE43)
Definition: DTConfigBti.h:184
BitArray< 32 > m_pattmask
Definition: DTConfigBti.h:204
void setLTS(int LTS)
Set LTS.
Definition: DTConfigBti.h:138
void setXON(bool XON)
Set X-patterns flag XON: activates tracks passing on the same side of 3 wires.
Definition: DTConfigBti.h:135
void setDEADpar(int DEAD)
Wire DEAD time parameter.
Definition: DTConfigBti.h:187
int8_t m_debug
Definition: DTConfigBti.h:193
int8_t m_rh
Definition: DTConfigBti.h:211
int AccPattACL() const
Acceptance pattern ACL.
Definition: DTConfigBti.h:88
int8_t m_cl
Definition: DTConfigBti.h:208
bool XON() const
X-patterns flag XON: activates tracks passing on the same side of 3 wires.
Definition: DTConfigBti.h:70
void setPTMSflag(int mask, int patt)
Set Pattern mask flag.
Definition: DTConfigBti.h:159
void print() const
Print the setup.
Definition: DTConfigBti.cc:212
void setKCut(int KCut)
Set Max K param accepted: max bit number.
Definition: DTConfigBti.h:129
int CL() const
K left limit for center traco.
Definition: DTConfigBti.h:106
int8_t m_ac2
Definition: DTConfigBti.h:200
int8_t m_ach
Definition: DTConfigBti.h:201
int RL() const
K left limit for right traco.
Definition: DTConfigBti.h:112
int AccPattACH() const
Acceptance pattern ACH.
Definition: DTConfigBti.h:85
int debug() const
Debug flag.
Definition: DTConfigBti.h:58
void setCH(int CH)
Set K right limit for center traco.
Definition: DTConfigBti.h:174
int AccPattAC2() const
Acceptance pattern AC2.
Definition: DTConfigBti.h:82
int LL() const
K left limit for left traco.
Definition: DTConfigBti.h:100
int DEADpar() const
Wire DEAD time parameter.
Definition: DTConfigBti.h:122
void setRH(int RH)
Set K right limit for right traco.
Definition: DTConfigBti.h:180
int8_t m_ch
Definition: DTConfigBti.h:209
float ST() const
Max drift time in 12.5 ns steps.
Definition: DTConfigBti.h:61
void setDebug(int debug)
Definition: DTConfigBti.h:126
void setAccPattAC2(int AC2)
Set Acceptance pattern AC2.
Definition: DTConfigBti.h:147
void setAccPattACH(int ACH)
Set Acceptance pattern ACH.
Definition: DTConfigBti.h:150
void setAccPattAC1(int AC1)
Set Acceptance pattern AC1.
Definition: DTConfigBti.h:144
DTConfigBti()
Empty Constructor.
Definition: DTConfigBti.h:46
int8_t m_kcut
Definition: DTConfigBti.h:194
int AccPattAC1() const
Acceptance pattern AC1.
Definition: DTConfigBti.h:79
void set(const int i)
Definition: BitArray.h:224
int ST43() const
ST and RE parameters for drift velocity.
Definition: DTConfigBti.h:118
BitArray< 9 > m_wiremask
Definition: DTConfigBti.h:205
int KAccTheta() const
BTI angular acceptance in theta view.
Definition: DTConfigBti.h:67
int element(const int pos) const
Definition: BitArray.h:206
int8_t m_set
Definition: DTConfigBti.h:198
float patt[4][130000]
Definition: HijingWrapper.h:48