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
DTConfigBti::setLL
void setLL(int LL)
Set K left limit for left traco.
Definition: DTConfigBti.h:165
DTConfigBti::setAccPattACH
void setAccPattACH(int ACH)
Set Acceptance pattern ACH.
Definition: DTConfigBti.h:150
DTConfigBti::m_set
int8_t m_set
Definition: DTConfigBti.h:203
patt
float patt[4][130000]
Definition: HijingWrapper.h:48
L1DTConfigFromDB_cfi.AC1
AC1
Definition: L1DTConfigFromDB_cfi.py:278
DTConfigBti::LH
int LH() const
K right limit for left traco.
Definition: DTConfigBti.h:103
DTConfigBti::RONflag
bool RONflag() const
Redundant patterns flag RONDTBti/src/DTBtiChipEquations.cc:
Definition: DTConfigBti.h:91
DTConfigBti::~DTConfigBti
~DTConfigBti() override
Destructor.
Definition: DTConfigBti.cc:147
DTConfigBti::SET
int SET() const
SET.
Definition: DTConfigBti.h:76
L1DTConfigFromDB_cfi.ACL
ACL
Definition: L1DTConfigFromDB_cfi.py:281
DTConfigBti::setKAccTheta
void setKAccTheta(int KAccTh)
Set BTI angular acceptance in theta view.
Definition: DTConfigBti.h:132
DTConfigBti::setRL
void setRL(int RL)
Set K left limit for right traco.
Definition: DTConfigBti.h:177
DTConfigBti::m_acl
int8_t m_acl
Definition: DTConfigBti.h:207
DTConfigBti::setRONflag
void setRONflag(bool RON)
Set Redundant patterns flag RONDTBti/src/DTBtiChipEquations.cc:
Definition: DTConfigBti.h:156
DTConfigBti::RH
int RH() const
K right limit for right traco.
Definition: DTConfigBti.h:115
DTConfigBti::m_rl
int8_t m_rl
Definition: DTConfigBti.h:215
DTConfigBti
Definition: DTConfigBti.h:36
DTConfigBti::setLH
void setLH(int LH)
Set K right limit for left traco.
Definition: DTConfigBti.h:168
DTConfigBti::setCL
void setCL(int CL)
Set K left limit for center traco.
Definition: DTConfigBti.h:171
L1DTConfigFromDB_cfi.DEAD
DEAD
Definition: L1DTConfigFromDB_cfi.py:284
DTConfigBti::CH
int CH() const
K right limit for center traco.
Definition: DTConfigBti.h:109
DTConfigBti::setST43
void setST43(int ST43)
Set ST and RE parameters for drift velocity.
Definition: DTConfigBti.h:183
DTConfigBti::setSET
void setSET(int SET)
Set SET.
Definition: DTConfigBti.h:141
DTConfigBti::m_kacctheta
int8_t m_kacctheta
Definition: DTConfigBti.h:200
DTConfigBti::LTS
int LTS() const
LTS.
Definition: DTConfigBti.h:73
DTConfigBti::setLTS
void setLTS(int LTS)
Set LTS.
Definition: DTConfigBti.h:138
DTConfigBti::m_pattmask
BitArray< 32 > m_pattmask
Definition: DTConfigBti.h:209
edmScanValgrind.buffer
buffer
Definition: edmScanValgrind.py:171
DTConfigBti::setDefaults
void setDefaults(const edm::ParameterSet &ps)
Set default parameters.
Definition: DTConfigBti.cc:153
DTConfigBti::PTMSflag
int PTMSflag(int patt) const
Pattern mask flag.
Definition: DTConfigBti.h:94
DTConfigBti::m_lh
int8_t m_lh
Definition: DTConfigBti.h:212
DTConfigBti::m_debug
int8_t m_debug
Definition: DTConfigBti.h:198
DTConfigBti::KCut
int KCut() const
Max K param accepted: max bit number.
Definition: DTConfigBti.h:64
DTConfigBti::m_cl
int8_t m_cl
Definition: DTConfigBti.h:213
L1DTConfigFromDB_cfi.AC2
AC2
Definition: L1DTConfigFromDB_cfi.py:279
DTConfigBti::m_lts
int8_t m_lts
Definition: DTConfigBti.h:202
BitArray::element
int element(const int pos) const
Definition: BitArray.h:206
DTConfigBti::XON
bool XON() const
X-patterns flag XON: activates tracks passing on the same side of 3 wires.
Definition: DTConfigBti.h:70
DTConfigBti::setRE43
void setRE43(int RE43)
Definition: DTConfigBti.h:184
DTConfigBti::setDEADpar
void setDEADpar(int DEAD)
Wire DEAD time parameter.
Definition: DTConfigBti.h:187
DTConfigBti::RE43
int RE43() const
Definition: DTConfigBti.h:119
DTConfigBti::setPTMSflag
void setPTMSflag(int mask, int patt)
Set Pattern mask flag.
Definition: DTConfigBti.h:159
DTConfigBti::m_4re3
int8_t m_4re3
Definition: DTConfigBti.h:218
DTConfigBti::print
void print() const
Print the setup.
Definition: DTConfigBti.cc:212
DTConfigBti::m_dead
int8_t m_dead
Definition: DTConfigBti.h:219
DTConfigBti::setAccPattACL
void setAccPattACL(int ACL)
Set Acceptance pattern ACL.
Definition: DTConfigBti.h:153
DTConfigBti::m_ll
int8_t m_ll
Definition: DTConfigBti.h:211
DTConfigBti::setKCut
void setKCut(int KCut)
Set Max K param accepted: max bit number.
Definition: DTConfigBti.h:129
DTConfigBti::CL
int CL() const
K left limit for center traco.
Definition: DTConfigBti.h:106
edm::ParameterSet
Definition: ParameterSet.h:36
DTConfigBti::AccPattACL
int AccPattACL() const
Acceptance pattern ACL.
Definition: DTConfigBti.h:88
DTConfigBti::m_4st3
int8_t m_4st3
Definition: DTConfigBti.h:217
DTConfigBti::setCH
void setCH(int CH)
Set K right limit for center traco.
Definition: DTConfigBti.h:174
DTConfigBti::AccPattAC2
int AccPattAC2() const
Acceptance pattern AC2.
Definition: DTConfigBti.h:82
DTConfigBti::setXON
void setXON(bool XON)
Set X-patterns flag XON: activates tracks passing on the same side of 3 wires.
Definition: DTConfigBti.h:135
DTConfig.h
DTConfigBti::m_ach
int8_t m_ach
Definition: DTConfigBti.h:206
DTConfigBti::RL
int RL() const
K left limit for right traco.
Definition: DTConfigBti.h:112
L1DTConfigFromDB_cfi.ACH
ACH
Definition: L1DTConfigFromDB_cfi.py:280
DTConfigBti::m_rh
int8_t m_rh
Definition: DTConfigBti.h:216
DTConfigBti::setAccPattAC2
void setAccPattAC2(int AC2)
Set Acceptance pattern AC2.
Definition: DTConfigBti.h:147
DTConfigBti::debug
int debug() const
Debug flag.
Definition: DTConfigBti.h:58
DTConfigBti::m_ac2
int8_t m_ac2
Definition: DTConfigBti.h:205
DTConfigBti::DTConfigBti
DTConfigBti()
Empty Constructor.
Definition: DTConfigBti.h:46
DTConfigBti::m_wiremask
BitArray< 9 > m_wiremask
Definition: DTConfigBti.h:210
DTConfigBti::setDebug
void setDebug(int debug)
Definition: DTConfigBti.h:126
DTConfigBti::ST
float ST() const
Max drift time in 12.5 ns steps.
Definition: DTConfigBti.h:61
DTConfigBti::KAccTheta
int KAccTheta() const
BTI angular acceptance in theta view.
Definition: DTConfigBti.h:67
DTConfig
Definition: DTConfig.h:32
DTConfigBti::setAccPattAC1
void setAccPattAC1(int AC1)
Set Acceptance pattern AC1.
Definition: DTConfigBti.h:144
DTConfigBti::m_xon
bool m_xon
Definition: DTConfigBti.h:201
DTConfigBti::LL
int LL() const
K left limit for left traco.
Definition: DTConfigBti.h:100
DTConfigBti::DEADpar
int DEADpar() const
Wire DEAD time parameter.
Definition: DTConfigBti.h:122
BitArray::set
void set(const int i)
Definition: BitArray.h:224
DTConfigBti::m_ch
int8_t m_ch
Definition: DTConfigBti.h:214
DTConfigBti::AccPattACH
int AccPattACH() const
Acceptance pattern ACH.
Definition: DTConfigBti.h:85
DTConfigBti::setWENflag
void setWENflag(int mask, int wire)
Set Wire mask flag.
Definition: DTConfigBti.h:162
ParameterSet.h
L1DTConfigFromDB_cfi.RON
RON
Definition: L1DTConfigFromDB_cfi.py:326
DTConfigBti::WENflag
int WENflag(int wire) const
Wire mask flag.
Definition: DTConfigBti.h:97
BitArray.h
DTConfigBti::m_ac1
int8_t m_ac1
Definition: DTConfigBti.h:204
BitArray< 32 >
DTConfigBti::m_kcut
int8_t m_kcut
Definition: DTConfigBti.h:199
DTConfigBti::AccPattAC1
int AccPattAC1() const
Acceptance pattern AC1.
Definition: DTConfigBti.h:79
DTConfigBti::setRH
void setRH(int RH)
Set K right limit for right traco.
Definition: DTConfigBti.h:180
DTConfigBti::m_ron
bool m_ron
Definition: DTConfigBti.h:208
DTConfigBti::ST43
int ST43() const
ST and RE parameters for drift velocity.
Definition: DTConfigBti.h:118