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 
31 #include <boost/cstdint.hpp>
32 
33 // ---------------------
34 // -- Class Interface --
35 // ---------------------
36 
37 
39 
40  public:
41 
42  /* //! constants: first and last step to start trigger finding
43  static const unsigned int NSTEPL=24, NSTEPF=9;
44  */
45 
47  DTConfigBti(const edm::ParameterSet& ps);
48 
51 
53  DTConfigBti(int debug, unsigned short int * buffer);
54 
56  ~DTConfigBti();
57 
59  void setDefaults(const edm::ParameterSet& ps);
60 
62  inline int debug() const { return m_debug; }
63 
65  inline float ST() const {
66  return (float)( 0.75 * ST43() + 0.25 * RE43() ); }
67 
69  inline int KCut() const { return m_kcut; }
70 
72  inline int KAccTheta() const { return m_kacctheta; }
73 
75  inline bool XON() const { return m_xon; }
76 
78  inline int LTS() const { return m_lts; }
79 
81  inline int SET() const { return m_set; }
82 
84  inline int AccPattAC1() const { return m_ac1; }
85 
87  inline int AccPattAC2() const { return m_ac2; }
88 
90  inline int AccPattACH() const { return m_ach; }
91 
93  inline int AccPattACL() const { return m_acl; }
94 
96  inline bool RONflag() const { return m_ron; }
97 
99  inline int PTMSflag(int patt) const { return m_pattmask.element(patt); }
100 
102  inline int WENflag(int wire) const { return m_wiremask.element(wire-1); }
103 
105  inline int LL() const { return m_ll; }
106 
108  inline int LH() const { return m_lh; }
109 
111  inline int CL() const { return m_cl; }
112 
114  inline int CH() const { return m_ch; }
115 
117  inline int RL() const { return m_rl; }
118 
120  inline int RH() const { return m_rh; }
121 
123  inline int ST43() const { return m_4st3; }
124  inline int RE43() const { return m_4re3; }
125 
127  inline int DEADpar() const { return m_dead;}
128 
131  inline void setDebug(int debug) { m_debug=debug; }
132 
134  inline void setKCut(int KCut) { m_kcut=KCut; }
135 
137  inline void setKAccTheta(int KAccTh) { m_kacctheta=KAccTh; }
138 
140  inline void setXON(bool XON) { m_xon=XON; }
141 
143  inline void setLTS(int LTS) { m_lts=LTS; }
144 
146  inline void setSET(int SET) { m_set=SET; }
147 
149  inline void setAccPattAC1(int AC1) { m_ac1=AC1; }
150 
152  inline void setAccPattAC2(int AC2) { m_ac2=AC2; }
153 
155  inline void setAccPattACH(int ACH) { m_ach=ACH; }
156 
158  inline void setAccPattACL(int ACL) { m_acl=ACL; }
159 
161  inline void setRONflag(bool RON) { m_ron=RON; }
162 
164  inline void setPTMSflag(int mask, int patt) { m_pattmask.set(patt,mask); }
165 
167  inline void setWENflag(int mask, int wire) { m_wiremask.set(wire-1,mask); }
168 
170  inline void setLL(int LL) { m_ll=LL; }
171 
173  inline void setLH(int LH) { m_lh=LH; }
174 
176  inline void setCL(int CL) { m_cl=CL; }
177 
179  inline void setCH(int CH) { m_ch=CH; }
180 
182  inline void setRL(int RL) { m_rl=RL; }
183 
185  inline void setRH(int RH) { m_rh=RH; }
186 
188  inline void setST43(int ST43) { m_4st3=ST43; }
189  inline void setRE43(int RE43) { m_4re3=RE43; }
190 
192  inline void setDEADpar(int DEAD) { m_dead=DEAD;}
193 
195  void print() const ;
196 
197 /* //! Return pointer to parameter set */
198 /* const edm::ParameterSet* getParameterSet() { return m_ps; } */
199 
200 
201 private:
202  // const edm::ParameterSet* m_ps;
203 
204  int8_t m_debug;
205  int8_t m_kcut;
206  int8_t m_kacctheta;
207  bool m_xon;
208  int8_t m_lts;
209  int8_t m_set;
210  int8_t m_ac1;
211  int8_t m_ac2;
212  int8_t m_ach;
213  int8_t m_acl;
214  bool m_ron;
217  int8_t m_ll;
218  int8_t m_lh;
219  int8_t m_cl;
220  int8_t m_ch;
221  int8_t m_rl;
222  int8_t m_rh;
223  int8_t m_4st3;
224  int8_t m_4re3;
225  int8_t m_dead;
226 };
227 
228 #endif
void setWENflag(int mask, int wire)
Set Wire mask flag.
Definition: DTConfigBti.h:167
int debug() const
Debug flag.
Definition: DTConfigBti.h:62
int RL() const
K left limit for right traco.
Definition: DTConfigBti.h:117
void setLL(int LL)
Set K left limit for left traco.
Definition: DTConfigBti.h:170
int AccPattACL() const
Acceptance pattern ACL.
Definition: DTConfigBti.h:93
void setRONflag(bool RON)
Set Redundant patterns flag RONDTBti/src/DTBtiChipEquations.cc:
Definition: DTConfigBti.h:161
int8_t m_acl
Definition: DTConfigBti.h:213
int8_t m_ac1
Definition: DTConfigBti.h:210
int8_t m_rl
Definition: DTConfigBti.h:221
int DEADpar() const
Wire DEAD time parameter.
Definition: DTConfigBti.h:127
int ST43() const
ST and RE parameters for drift velocity.
Definition: DTConfigBti.h:123
void setCL(int CL)
Set K left limit for center traco.
Definition: DTConfigBti.h:176
void setRL(int RL)
Set K left limit for right traco.
Definition: DTConfigBti.h:182
int8_t m_lh
Definition: DTConfigBti.h:218
int CH() const
K right limit for center traco.
Definition: DTConfigBti.h:114
float ST() const
Max drift time in 12.5 ns steps.
Definition: DTConfigBti.h:65
int AccPattAC1() const
Acceptance pattern AC1.
Definition: DTConfigBti.h:84
int8_t m_lts
Definition: DTConfigBti.h:208
void setKAccTheta(int KAccTh)
Set BTI angular acceptance in theta view.
Definition: DTConfigBti.h:137
void setLH(int LH)
Set K right limit for left traco.
Definition: DTConfigBti.h:173
void setDefaults(const edm::ParameterSet &ps)
Set default parameters.
Definition: DTConfigBti.cc:178
int8_t m_dead
Definition: DTConfigBti.h:225
int8_t m_kacctheta
Definition: DTConfigBti.h:206
int8_t m_ll
Definition: DTConfigBti.h:217
int8_t m_4re3
Definition: DTConfigBti.h:224
void setST43(int ST43)
Set ST and RE parameters for drift velocity.
Definition: DTConfigBti.h:188
int LL() const
K left limit for left traco.
Definition: DTConfigBti.h:105
void setSET(int SET)
Set SET.
Definition: DTConfigBti.h:146
void setAccPattACL(int ACL)
Set Acceptance pattern ACL.
Definition: DTConfigBti.h:158
int8_t m_4st3
Definition: DTConfigBti.h:223
void setRE43(int RE43)
Definition: DTConfigBti.h:189
BitArray< 32 > m_pattmask
Definition: DTConfigBti.h:215
void setLTS(int LTS)
Set LTS.
Definition: DTConfigBti.h:143
void setXON(bool XON)
Set X-patterns flag XON: activates tracks passing on the same side of 3 wires.
Definition: DTConfigBti.h:140
void setDEADpar(int DEAD)
Wire DEAD time parameter.
Definition: DTConfigBti.h:192
int RE43() const
Definition: DTConfigBti.h:124
int8_t m_debug
Definition: DTConfigBti.h:204
int KCut() const
Max K param accepted: max bit number.
Definition: DTConfigBti.h:69
int PTMSflag(int patt) const
Pattern mask flag.
Definition: DTConfigBti.h:99
int8_t m_rh
Definition: DTConfigBti.h:222
int8_t m_cl
Definition: DTConfigBti.h:219
void setPTMSflag(int mask, int patt)
Set Pattern mask flag.
Definition: DTConfigBti.h:164
int KAccTheta() const
BTI angular acceptance in theta view.
Definition: DTConfigBti.h:72
int AccPattAC2() const
Acceptance pattern AC2.
Definition: DTConfigBti.h:87
int SET() const
SET.
Definition: DTConfigBti.h:81
void setKCut(int KCut)
Set Max K param accepted: max bit number.
Definition: DTConfigBti.h:134
void print() const
Print the setup.
Definition: DTConfigBti.cc:241
int AccPattACH() const
Acceptance pattern ACH.
Definition: DTConfigBti.h:90
int8_t m_ac2
Definition: DTConfigBti.h:211
int element(const int pos) const
Definition: BitArray.h:210
int8_t m_ach
Definition: DTConfigBti.h:212
void setCH(int CH)
Set K right limit for center traco.
Definition: DTConfigBti.h:179
int LH() const
K right limit for left traco.
Definition: DTConfigBti.h:108
int RH() const
K right limit for right traco.
Definition: DTConfigBti.h:120
void setRH(int RH)
Set K right limit for right traco.
Definition: DTConfigBti.h:185
int8_t m_ch
Definition: DTConfigBti.h:220
void setDebug(int debug)
Definition: DTConfigBti.h:131
void setAccPattAC2(int AC2)
Set Acceptance pattern AC2.
Definition: DTConfigBti.h:152
bool RONflag() const
Redundant patterns flag RONDTBti/src/DTBtiChipEquations.cc:
Definition: DTConfigBti.h:96
void setAccPattACH(int ACH)
Set Acceptance pattern ACH.
Definition: DTConfigBti.h:155
void setAccPattAC1(int AC1)
Set Acceptance pattern AC1.
Definition: DTConfigBti.h:149
int CL() const
K left limit for center traco.
Definition: DTConfigBti.h:111
DTConfigBti()
Empty Constructor.
Definition: DTConfigBti.h:50
int8_t m_kcut
Definition: DTConfigBti.h:205
~DTConfigBti()
Destructor.
Definition: DTConfigBti.cc:171
int WENflag(int wire) const
Wire mask flag.
Definition: DTConfigBti.h:102
void set(const int i)
Definition: BitArray.h:230
BitArray< 9 > m_wiremask
Definition: DTConfigBti.h:216
bool XON() const
X-patterns flag XON: activates tracks passing on the same side of 3 wires.
Definition: DTConfigBti.h:75
int LTS() const
LTS.
Definition: DTConfigBti.h:78
int8_t m_set
Definition: DTConfigBti.h:209
float patt[4][130000]
Definition: HijingWrapper.h:38