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  /* //! Return pointer to parameter set */
193  /* const edm::ParameterSet* getParameterSet() { return m_ps; } */
194 
195 private:
196  // const edm::ParameterSet* m_ps;
197 
198  int8_t m_debug;
199  int8_t m_kcut;
200  int8_t m_kacctheta;
201  bool m_xon;
202  int8_t m_lts;
203  int8_t m_set;
204  int8_t m_ac1;
205  int8_t m_ac2;
206  int8_t m_ach;
207  int8_t m_acl;
208  bool m_ron;
211  int8_t m_ll;
212  int8_t m_lh;
213  int8_t m_cl;
214  int8_t m_ch;
215  int8_t m_rl;
216  int8_t m_rh;
217  int8_t m_4st3;
218  int8_t m_4re3;
219  int8_t m_dead;
220 };
221 
222 #endif
void setWENflag(int mask, int wire)
Set Wire mask flag.
Definition: DTConfigBti.h:162
int debug() const
Debug flag.
Definition: DTConfigBti.h:58
int RL() const
K left limit for right traco.
Definition: DTConfigBti.h:112
void setLL(int LL)
Set K left limit for left traco.
Definition: DTConfigBti.h:165
int AccPattACL() const
Acceptance pattern ACL.
Definition: DTConfigBti.h:88
void setRONflag(bool RON)
Set Redundant patterns flag RONDTBti/src/DTBtiChipEquations.cc:
Definition: DTConfigBti.h:156
int8_t m_acl
Definition: DTConfigBti.h:207
int8_t m_ac1
Definition: DTConfigBti.h:204
int8_t m_rl
Definition: DTConfigBti.h:215
int DEADpar() const
Wire DEAD time parameter.
Definition: DTConfigBti.h:122
int ST43() const
ST and RE parameters for drift velocity.
Definition: DTConfigBti.h:118
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:212
int CH() const
K right limit for center traco.
Definition: DTConfigBti.h:109
float ST() const
Max drift time in 12.5 ns steps.
Definition: DTConfigBti.h:61
~DTConfigBti() override
Destructor.
Definition: DTConfigBti.cc:147
int AccPattAC1() const
Acceptance pattern AC1.
Definition: DTConfigBti.h:79
AC2
drift velocity parameter 4ST3
int8_t m_lts
Definition: DTConfigBti.h:202
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
int8_t m_dead
Definition: DTConfigBti.h:219
int8_t m_kacctheta
Definition: DTConfigBti.h:200
int8_t m_ll
Definition: DTConfigBti.h:211
int8_t m_4re3
Definition: DTConfigBti.h:218
void setST43(int ST43)
Set ST and RE parameters for drift velocity.
Definition: DTConfigBti.h:183
int LL() const
K left limit for left traco.
Definition: DTConfigBti.h:100
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:217
void setRE43(int RE43)
Definition: DTConfigBti.h:184
BitArray< 32 > m_pattmask
Definition: DTConfigBti.h:209
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
int RE43() const
Definition: DTConfigBti.h:119
int8_t m_debug
Definition: DTConfigBti.h:198
int KCut() const
Max K param accepted: max bit number.
Definition: DTConfigBti.h:64
int PTMSflag(int patt) const
Pattern mask flag.
Definition: DTConfigBti.h:94
int8_t m_rh
Definition: DTConfigBti.h:216
int8_t m_cl
Definition: DTConfigBti.h:213
void setPTMSflag(int mask, int patt)
Set Pattern mask flag.
Definition: DTConfigBti.h:159
int KAccTheta() const
BTI angular acceptance in theta view.
Definition: DTConfigBti.h:67
int AccPattAC2() const
Acceptance pattern AC2.
Definition: DTConfigBti.h:82
int SET() const
SET.
Definition: DTConfigBti.h:76
void setKCut(int KCut)
Set Max K param accepted: max bit number.
Definition: DTConfigBti.h:129
void print() const
Print the setup.
Definition: DTConfigBti.cc:212
int AccPattACH() const
Acceptance pattern ACH.
Definition: DTConfigBti.h:85
int8_t m_ac2
Definition: DTConfigBti.h:205
int element(const int pos) const
Definition: BitArray.h:206
int8_t m_ach
Definition: DTConfigBti.h:206
void setCH(int CH)
Set K right limit for center traco.
Definition: DTConfigBti.h:174
int LH() const
K right limit for left traco.
Definition: DTConfigBti.h:103
int RH() const
K right limit for right traco.
Definition: DTConfigBti.h:115
void setRH(int RH)
Set K right limit for right traco.
Definition: DTConfigBti.h:180
int8_t m_ch
Definition: DTConfigBti.h:214
void setDebug(int debug)
Definition: DTConfigBti.h:126
void setAccPattAC2(int AC2)
Set Acceptance pattern AC2.
Definition: DTConfigBti.h:147
bool RONflag() const
Redundant patterns flag RONDTBti/src/DTBtiChipEquations.cc:
Definition: DTConfigBti.h:91
void setAccPattACH(int ACH)
Set Acceptance pattern ACH.
Definition: DTConfigBti.h:150
void setAccPattAC1(int AC1)
Set Acceptance pattern AC1.
Definition: DTConfigBti.h:144
int CL() const
K left limit for center traco.
Definition: DTConfigBti.h:106
DTConfigBti()
Empty Constructor.
Definition: DTConfigBti.h:46
int8_t m_kcut
Definition: DTConfigBti.h:199
int WENflag(int wire) const
Wire mask flag.
Definition: DTConfigBti.h:97
void set(const int i)
Definition: BitArray.h:224
BitArray< 9 > m_wiremask
Definition: DTConfigBti.h:210
bool XON() const
X-patterns flag XON: activates tracks passing on the same side of 3 wires.
Definition: DTConfigBti.h:70
int LTS() const
LTS.
Definition: DTConfigBti.h:73
int8_t m_set
Definition: DTConfigBti.h:203
float patt[4][130000]
Definition: HijingWrapper.h:48