CMS 3D CMS Logo

List of all members | Public Member Functions | Private Attributes
DTConfigBti Class Reference

#include <DTConfigBti.h>

Inheritance diagram for DTConfigBti:
DTConfig

Public Member Functions

int AccPattAC1 () const
 Acceptance pattern AC1. More...
 
int AccPattAC2 () const
 Acceptance pattern AC2. More...
 
int AccPattACH () const
 Acceptance pattern ACH. More...
 
int AccPattACL () const
 Acceptance pattern ACL. More...
 
int CH () const
 K right limit for center traco. More...
 
int CL () const
 K left limit for center traco. More...
 
int DEADpar () const
 Wire DEAD time parameter. More...
 
int debug () const
 Debug flag. More...
 
 DTConfigBti (const edm::ParameterSet &ps)
 Constructor. More...
 
 DTConfigBti ()
 Empty Constructor. More...
 
 DTConfigBti (int debug, unsigned short int *buffer)
 Constructor from string. More...
 
int KAccTheta () const
 BTI angular acceptance in theta view. More...
 
int KCut () const
 Max K param accepted: max bit number. More...
 
int LH () const
 K right limit for left traco. More...
 
int LL () const
 K left limit for left traco. More...
 
int LTS () const
 LTS. More...
 
void print () const
 Print the setup. More...
 
int PTMSflag (int patt) const
 Pattern mask flag. More...
 
int RE43 () const
 
int RH () const
 K right limit for right traco. More...
 
int RL () const
 K left limit for right traco. More...
 
bool RONflag () const
 Redundant patterns flag RONDTBti/src/DTBtiChipEquations.cc: More...
 
int SET () const
 SET. More...
 
void setAccPattAC1 (int AC1)
 Set Acceptance pattern AC1. More...
 
void setAccPattAC2 (int AC2)
 Set Acceptance pattern AC2. More...
 
void setAccPattACH (int ACH)
 Set Acceptance pattern ACH. More...
 
void setAccPattACL (int ACL)
 Set Acceptance pattern ACL. More...
 
void setCH (int CH)
 Set K right limit for center traco. More...
 
void setCL (int CL)
 Set K left limit for center traco. More...
 
void setDEADpar (int DEAD)
 Wire DEAD time parameter. More...
 
void setDebug (int debug)
 
void setDefaults (const edm::ParameterSet &ps)
 Set default parameters. More...
 
void setKAccTheta (int KAccTh)
 Set BTI angular acceptance in theta view. More...
 
void setKCut (int KCut)
 Set Max K param accepted: max bit number. More...
 
void setLH (int LH)
 Set K right limit for left traco. More...
 
void setLL (int LL)
 Set K left limit for left traco. More...
 
void setLTS (int LTS)
 Set LTS. More...
 
void setPTMSflag (int mask, int patt)
 Set Pattern mask flag. More...
 
void setRE43 (int RE43)
 
void setRH (int RH)
 Set K right limit for right traco. More...
 
void setRL (int RL)
 Set K left limit for right traco. More...
 
void setRONflag (bool RON)
 Set Redundant patterns flag RONDTBti/src/DTBtiChipEquations.cc: More...
 
void setSET (int SET)
 Set SET. More...
 
void setST43 (int ST43)
 Set ST and RE parameters for drift velocity. More...
 
void setWENflag (int mask, int wire)
 Set Wire mask flag. More...
 
void setXON (bool XON)
 Set X-patterns flag XON: activates tracks passing on the same side of 3 wires. More...
 
float ST () const
 Max drift time in 12.5 ns steps. More...
 
int ST43 () const
 ST and RE parameters for drift velocity. More...
 
int WENflag (int wire) const
 Wire mask flag. More...
 
bool XON () const
 X-patterns flag XON: activates tracks passing on the same side of 3 wires. More...
 
 ~DTConfigBti () override
 Destructor. More...
 

Private Attributes

int8_t m_4re3
 
int8_t m_4st3
 
int8_t m_ac1
 
int8_t m_ac2
 
int8_t m_ach
 
int8_t m_acl
 
int8_t m_ch
 
int8_t m_cl
 
int8_t m_dead
 
int8_t m_debug
 
int8_t m_kacctheta
 
int8_t m_kcut
 
int8_t m_lh
 
int8_t m_ll
 
int8_t m_lts
 
BitArray< 32 > m_pattmask
 
int8_t m_rh
 
int8_t m_rl
 
bool m_ron
 
int8_t m_set
 
BitArray< 9 > m_wiremask
 
bool m_xon
 

Additional Inherited Members

- Private Member Functions inherited from DTConfig
 DTConfig ()
 Constructor. More...
 
virtual ~DTConfig ()
 Destructor. More...
 
- Static Private Attributes inherited from DTConfig
static const int NBTITC =4
 
static const int NSTEPF =9
 
static const int NSTEPL =24
 Constants: first and last step to start trigger finding. More...
 
static const int NTCTSS = 4
 Constant: number of TRACOs in input to a TSS. More...
 

Detailed Description

Configurable parameters and constants for Level-1 Muon DT Trigger - Bti chip

Author
S. Vanini

Configurable parameters and constants for Level-1 Muon DT Trigger - Time Pedestals

Authors
: C.Battilana, M.Meneghelli

Definition at line 38 of file DTConfigBti.h.

Constructor & Destructor Documentation

DTConfigBti::DTConfigBti ( const edm::ParameterSet ps)

Constructor.

Definition at line 40 of file DTConfigBti.cc.

References setDefaults().

40  {
41 
42  setDefaults(ps);
43 
44 }
void setDefaults(const edm::ParameterSet &ps)
Set default parameters.
Definition: DTConfigBti.cc:178
DTConfigBti::DTConfigBti ( )
inline

Empty Constructor.

Definition at line 50 of file DTConfigBti.h.

References edmScanValgrind::buffer, debug(), setDefaults(), and ~DTConfigBti().

50 {;}
DTConfigBti::DTConfigBti ( int  debug,
unsigned short int *  buffer 
)

Constructor from string.

Definition at line 46 of file DTConfigBti.cc.

References CH(), CL(), gather_cfg::cout, debug(), TauDecayModes::dec, Exception, mps_fire::i, LH(), LL(), m_debug, RH(), RL(), setAccPattAC1(), setAccPattAC2(), setAccPattACH(), setAccPattACL(), setCH(), setCL(), setDEADpar(), setKAccTheta(), setKCut(), setLH(), setLL(), setLTS(), setPTMSflag(), setRE43(), setRH(), setRL(), setRONflag(), setSET(), setST43(), setWENflag(), and setXON().

46  {
47 
48  m_debug = debugBTI;
49 
50  // check if this is a BTI configuration string
51  if (buffer[2]!=0x54){
52  throw cms::Exception("DTTPG") << "===> ConfigBti constructor : not a BTI string!" << std::endl;
53  }
54 
55  // decode
56  unsigned short int memory_bti[31];
57  for(int i=0;i<31;i++){
58  memory_bti[i] = buffer[i+5];
59  //std::cout << hex << memory_bti[i] << " ";
60  }
61  int wmask[9];
62  int st43 = memory_bti[0] & 0x3f;
63  wmask[6] = memory_bti[1] & 0x01;
64  wmask[7] = (memory_bti[1] >> 1 )& 0x01;
65  wmask[8] = (memory_bti[1] >> 2 )& 0x01;
66  int re43 = (memory_bti[1] >> 4 )& 0x03;
67  wmask[0] = memory_bti[2] & 0x01;
68  wmask[1] = (memory_bti[2] >> 1) & 0x01;
69  wmask[2] = (memory_bti[2] >> 2 )& 0x01;
70  wmask[3] = (memory_bti[2] >> 3 )& 0x01;
71  wmask[4] = (memory_bti[2] >> 4 )& 0x01;
72  wmask[5] = (memory_bti[2] >> 5 )& 0x01;
73  int dead = memory_bti[3] & 0x3F;
74  int LH = memory_bti[4] & 0x3F;
75  int LL = memory_bti[5] & 0x3F;
76  int CH = memory_bti[6] & 0x3F;
77  int CL = memory_bti[7] & 0x3F;
78  int RH = memory_bti[8] & 0x3F;
79  int RL = memory_bti[9] & 0x3F;
80  int tston = ( memory_bti[10] & 0x20 ) != 0 ;
81  int test = ( memory_bti[10] & 0x10 ) != 0 ;
82  int ten = ( memory_bti[10] & 0x8 ) != 0 ;
83  int xon = ( memory_bti[10] & 0x2 ) != 0 ;
84  int ron = ( memory_bti[10] & 0x1 ) != 0 ;
85  int set = ( memory_bti[11] & 0x38 ) >> 3 ;
86  int lts = ( memory_bti[11] & 0x6 ) >> 1 ;
87  int ac1 = ( memory_bti[12] & 0x30 ) >> 4 ;
88  int ac2 = ( memory_bti[12] & 0xc ) >> 2 ;
89  int acl = ( memory_bti[12] & 0x3 ) ;
90  int ach = ( memory_bti[13] & 0x30 ) >> 4 ;
91 
92  int pmask[32];
93  for(int ir=0; ir<6; ir++)
94  {
95  pmask[0+6*ir] = memory_bti[19-ir] & 0x01;
96  pmask[1+6*ir] = (memory_bti[19-ir] >> 1 )& 0x01;
97  if(ir!=5)
98  {
99  pmask[2+6*ir] = (memory_bti[19-ir] >> 2 )& 0x01;
100  pmask[3+6*ir] = (memory_bti[19-ir] >> 3 )& 0x01;
101  pmask[4+6*ir] = (memory_bti[19-ir] >> 4 )& 0x01;
102  pmask[5+6*ir] = (memory_bti[19-ir] >> 5 )& 0x01;
103  }
104  }
105 
106  // dump
107  if(debug()==1){
108  std::cout << std::dec << "st43=" << st43
109  << " re43=" << re43
110  << " dead=" << dead
111  << " LH=" << LH
112  << " LL=" << LL
113  << " CH=" << CH
114  << " CL=" << CL
115  << " RH=" << RH
116  << " RL=" << RL
117  << " tston=" << tston
118  << " test=" << test
119  << " ten=" << ten
120  << " xon=" << xon
121  << " ron=" << ron
122  << " set=" << set
123  << " lts=" << lts
124  << " ac1=" << ac1
125  << " ac2=" << ac2
126  << " acl=" << acl
127  << " ach=" << ach
128  << std::endl;
129  std::cout << std::dec << " wire masks= ";
130  for(int iw=0; iw<9; iw++)
131  std::cout << wmask[iw] << " ";
132  std::cout << std::dec << "\n pattern masks= ";
133  for(int ip=0; ip<32; ip++)
134  std::cout << pmask[ip] << " ";
135  std::cout << std::endl;
136  }
137 
138  // set parameters
139  // default for KCut and KAccTheta
140  setKCut(64);
141  setKAccTheta(1);
142 
143  for(int ip=0; ip<32; ip++)
144  setPTMSflag(pmask[ip],ip);
145 
146  for(int iw=0; iw<9; iw++)
147  setWENflag(wmask[iw],iw+1);
148 
149  setST43(st43);
150  setRE43(re43);
151  setDEADpar(dead);
152  setLL(LL);
153  setLH(LH);
154  setCL(CL);
155  setCH(CH);
156  setRL(RL);
157  setRH(RH);
158  setXON(xon);
159  setRONflag(ron);
160  setSET(set);
161  setLTS(lts);
162  setAccPattAC1(ac1);
163  setAccPattAC2(ac2);
164  setAccPattACH(ach);
165  setAccPattACL(acl);
166 }
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
void setRONflag(bool RON)
Set Redundant patterns flag RONDTBti/src/DTBtiChipEquations.cc:
Definition: DTConfigBti.h:161
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
int CH() const
K right limit for center traco.
Definition: DTConfigBti.h:114
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 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
void setRE43(int RE43)
Definition: DTConfigBti.h:189
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
int8_t m_debug
Definition: DTConfigBti.h:204
void setPTMSflag(int mask, int patt)
Set Pattern mask flag.
Definition: DTConfigBti.h:164
void setKCut(int KCut)
Set Max K param accepted: max bit number.
Definition: DTConfigBti.h:134
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
void setAccPattAC2(int AC2)
Set Acceptance pattern AC2.
Definition: DTConfigBti.h:152
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::~DTConfigBti ( )
override

Destructor.

Definition at line 171 of file DTConfigBti.cc.

Referenced by DTConfigBti().

171 {}

Member Function Documentation

int DTConfigBti::AccPattAC1 ( ) const
inline

Acceptance pattern AC1.

Definition at line 84 of file DTConfigBti.h.

References m_ac1.

Referenced by print().

84 { return m_ac1; }
int8_t m_ac1
Definition: DTConfigBti.h:210
int DTConfigBti::AccPattAC2 ( ) const
inline

Acceptance pattern AC2.

Definition at line 87 of file DTConfigBti.h.

References m_ac2.

Referenced by print().

87 { return m_ac2; }
int8_t m_ac2
Definition: DTConfigBti.h:211
int DTConfigBti::AccPattACH ( ) const
inline

Acceptance pattern ACH.

Definition at line 90 of file DTConfigBti.h.

References m_ach.

Referenced by print().

90 { return m_ach; }
int8_t m_ach
Definition: DTConfigBti.h:212
int DTConfigBti::AccPattACL ( ) const
inline

Acceptance pattern ACL.

Definition at line 93 of file DTConfigBti.h.

References m_acl.

Referenced by print().

93 { return m_acl; }
int8_t m_acl
Definition: DTConfigBti.h:213
int DTConfigBti::CH ( ) const
inline

K right limit for center traco.

Definition at line 114 of file DTConfigBti.h.

References m_ch.

Referenced by DTBtiChip::DTBtiChip(), DTConfigBti(), DTTracoCard::loadTRACO(), print(), and setCH().

114 { return m_ch; }
int8_t m_ch
Definition: DTConfigBti.h:220
int DTConfigBti::CL ( ) const
inline

K left limit for center traco.

Definition at line 111 of file DTConfigBti.h.

References m_cl.

Referenced by DTBtiChip::DTBtiChip(), DTConfigBti(), DTTracoCard::loadTRACO(), print(), and setCL().

111 { return m_cl; }
int8_t m_cl
Definition: DTConfigBti.h:219
int DTConfigBti::DEADpar ( ) const
inline

Wire DEAD time parameter.

Definition at line 127 of file DTConfigBti.h.

References m_dead.

Referenced by DTBtiChip::add_digi(), DTBtiChip::add_digi_clock(), DTBtiChip::DTBtiChip(), and print().

127 { return m_dead;}
int8_t m_dead
Definition: DTConfigBti.h:225
int DTConfigBti::debug ( ) const
inline

Debug flag.

Definition at line 62 of file DTConfigBti.h.

References m_debug.

Referenced by DTBtiCard::activeGetBTI(), DTBtiChip::doLTS(), DTConfigBti(), print(), DTBtiChip::run(), setDebug(), and DTBtiChip::tick().

62 { return m_debug; }
int8_t m_debug
Definition: DTConfigBti.h:204
int DTConfigBti::KAccTheta ( ) const
inline

BTI angular acceptance in theta view.

Definition at line 72 of file DTConfigBti.h.

References m_kacctheta.

Referenced by DTBtiChip::DTBtiChip(), and print().

72 { return m_kacctheta; }
int8_t m_kacctheta
Definition: DTConfigBti.h:206
int DTConfigBti::KCut ( ) const
inline

Max K param accepted: max bit number.

Definition at line 69 of file DTConfigBti.h.

References m_kcut.

Referenced by print(), and setKCut().

69 { return m_kcut; }
int8_t m_kcut
Definition: DTConfigBti.h:205
int DTConfigBti::LH ( ) const
inline

K right limit for left traco.

Definition at line 108 of file DTConfigBti.h.

References m_lh.

Referenced by DTConfigBti(), DTTracoCard::loadTRACO(), print(), and setLH().

108 { return m_lh; }
int8_t m_lh
Definition: DTConfigBti.h:218
int DTConfigBti::LL ( ) const
inline

K left limit for left traco.

Definition at line 105 of file DTConfigBti.h.

References m_ll.

Referenced by DTConfigBti(), DTTracoCard::loadTRACO(), print(), and setLL().

105 { return m_ll; }
int8_t m_ll
Definition: DTConfigBti.h:217
int DTConfigBti::LTS ( ) const
inline

LTS.

Definition at line 78 of file DTConfigBti.h.

References m_lts.

Referenced by DTBtiChip::doLTS(), print(), and setLTS().

78 { return m_lts; }
int8_t m_lts
Definition: DTConfigBti.h:208
void DTConfigBti::print ( void  ) const

Print the setup.

Definition at line 241 of file DTConfigBti.cc.

References AccPattAC1(), AccPattAC2(), AccPattACH(), AccPattACL(), CH(), CL(), gather_cfg::cout, DEADpar(), debug(), KAccTheta(), KCut(), LH(), LL(), LTS(), AlCaHLTBitMon_ParallelJobs::p, PTMSflag(), RE43(), RH(), RL(), RONflag(), SET(), ST43(), w, WENflag(), and XON().

Referenced by DTConfigTester::analyze(), and setDEADpar().

241  {
242  std::cout << "******************************************************************************" << std::endl;
243  std::cout << "* DTTrigger configuration : BTI chips *" << std::endl;
244  std::cout << "******************************************************************************" << std::endl;
245  std::cout << "* *" << std::endl;
246  std::cout << "Debug flag : " << debug() << std::endl;
247  std::cout << "Max K param accepted : " << KCut() << std::endl;
248  std::cout << "BTI angular acceptance in theta view : " << KAccTheta() << std::endl;
249  std::cout << "Time indep. K equation suppression (XON) : " << XON() << std::endl;
250  std::cout << "LTS for low trigger suppression : " << LTS() << std::endl;
251  std::cout << "SET for low trigger suppression : " << SET() << std::endl;
252  std::cout << "pattern acceptance AC1, AC2, ACH, ACL : " <<
253  AccPattAC1() << ", " << AccPattAC2() << " , " << AccPattACH() << ", " << AccPattACL() << std::endl;
254  std::cout << "redundant patterns flag RON : " << RONflag() << std::endl;
255  std::cout << "pattern masks : ";
256  for(int p=0; p<32; p++)
257  std::cout << PTMSflag(p) << " ";
258  std::cout << std::endl;
259 
260  std::cout << "wire masks : ";
261  for(int w=1; w<=9; w++)
262  std::cout << WENflag(w) << " ";
263  std::cout << std::endl;
264 
265  std::cout << "angular window limits for traco : " << LL() << ", " << LH() << ", "
266  << CL() << ", " << CH() << ", " << RL() << ", " << RH() << std::endl;
267  std::cout << "drift velocity parameter 4ST3 : " << ST43() << std::endl;
268  std::cout << "drift velocity parameter 4RE3 : " << RE43() << std::endl;
269  std::cout << "DEAD parameter : " << DEADpar() << std::endl;
270 
271  std::cout << "******************************************************************************" << std::endl;
272 
273 }
int debug() const
Debug flag.
Definition: DTConfigBti.h:62
int RL() const
K left limit for right traco.
Definition: DTConfigBti.h:117
int AccPattACL() const
Acceptance pattern ACL.
Definition: DTConfigBti.h:93
const double w
Definition: UKUtility.cc:23
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
int CH() const
K right limit for center traco.
Definition: DTConfigBti.h:114
int AccPattAC1() const
Acceptance pattern AC1.
Definition: DTConfigBti.h:84
int LL() const
K left limit for left traco.
Definition: DTConfigBti.h:105
int RE43() const
Definition: DTConfigBti.h:124
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
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
int AccPattACH() const
Acceptance pattern ACH.
Definition: DTConfigBti.h:90
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
bool RONflag() const
Redundant patterns flag RONDTBti/src/DTBtiChipEquations.cc:
Definition: DTConfigBti.h:96
int CL() const
K left limit for center traco.
Definition: DTConfigBti.h:111
int WENflag(int wire) const
Wire mask flag.
Definition: DTConfigBti.h:102
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
int DTConfigBti::PTMSflag ( int  patt) const
inline

Pattern mask flag.

Definition at line 99 of file DTConfigBti.h.

References BitArray< N >::element(), and m_pattmask.

Referenced by print().

99 { return m_pattmask.element(patt); }
BitArray< 32 > m_pattmask
Definition: DTConfigBti.h:215
int element(const int pos) const
Definition: BitArray.h:210
float patt[4][130000]
Definition: HijingWrapper.h:38
int DTConfigBti::RE43 ( ) const
inline

Definition at line 124 of file DTConfigBti.h.

References m_4re3.

Referenced by print(), setRE43(), DTBtiChip::setSnap(), and ST().

124 { return m_4re3; }
int8_t m_4re3
Definition: DTConfigBti.h:224
int DTConfigBti::RH ( ) const
inline

K right limit for right traco.

Definition at line 120 of file DTConfigBti.h.

References m_rh.

Referenced by DTConfigBti(), DTTracoCard::loadTRACO(), print(), and setRH().

120 { return m_rh; }
int8_t m_rh
Definition: DTConfigBti.h:222
int DTConfigBti::RL ( ) const
inline

K left limit for right traco.

Definition at line 117 of file DTConfigBti.h.

References m_rl.

Referenced by DTConfigBti(), DTTracoCard::loadTRACO(), print(), and setRL().

117 { return m_rl; }
int8_t m_rl
Definition: DTConfigBti.h:221
bool DTConfigBti::RONflag ( ) const
inline

Redundant patterns flag RONDTBti/src/DTBtiChipEquations.cc:

Definition at line 96 of file DTConfigBti.h.

References m_ron.

Referenced by print().

96 { return m_ron; }
int DTConfigBti::SET ( ) const
inline

SET.

Definition at line 81 of file DTConfigBti.h.

References m_set.

Referenced by DTBtiChip::doLTS(), print(), and setSET().

81 { return m_set; }
int8_t m_set
Definition: DTConfigBti.h:209
void DTConfigBti::setAccPattAC1 ( int  AC1)
inline

Set Acceptance pattern AC1.

Definition at line 149 of file DTConfigBti.h.

References m_ac1.

Referenced by DTConfigBti().

149 { m_ac1=AC1; }
int8_t m_ac1
Definition: DTConfigBti.h:210
void DTConfigBti::setAccPattAC2 ( int  AC2)
inline

Set Acceptance pattern AC2.

Definition at line 152 of file DTConfigBti.h.

References m_ac2.

Referenced by DTConfigBti().

152 { m_ac2=AC2; }
int8_t m_ac2
Definition: DTConfigBti.h:211
void DTConfigBti::setAccPattACH ( int  ACH)
inline

Set Acceptance pattern ACH.

Definition at line 155 of file DTConfigBti.h.

References m_ach.

Referenced by DTConfigBti().

155 { m_ach=ACH; }
int8_t m_ach
Definition: DTConfigBti.h:212
void DTConfigBti::setAccPattACL ( int  ACL)
inline

Set Acceptance pattern ACL.

Definition at line 158 of file DTConfigBti.h.

References m_acl.

Referenced by DTConfigBti().

158 { m_acl=ACL; }
int8_t m_acl
Definition: DTConfigBti.h:213
void DTConfigBti::setCH ( int  CH)
inline

Set K right limit for center traco.

Definition at line 179 of file DTConfigBti.h.

References CH(), and m_ch.

Referenced by DTConfigBti().

179 { m_ch=CH; }
int CH() const
K right limit for center traco.
Definition: DTConfigBti.h:114
int8_t m_ch
Definition: DTConfigBti.h:220
void DTConfigBti::setCL ( int  CL)
inline

Set K left limit for center traco.

Definition at line 176 of file DTConfigBti.h.

References CL(), and m_cl.

Referenced by DTConfigBti().

176 { m_cl=CL; }
int8_t m_cl
Definition: DTConfigBti.h:219
int CL() const
K left limit for center traco.
Definition: DTConfigBti.h:111
void DTConfigBti::setDEADpar ( int  DEAD)
inline

Wire DEAD time parameter.

Definition at line 192 of file DTConfigBti.h.

References m_dead, and print().

Referenced by DTConfigBti().

192 { m_dead=DEAD;}
int8_t m_dead
Definition: DTConfigBti.h:225
void DTConfigBti::setDebug ( int  debug)
inline

Set single parameter functions Set debug flag

Definition at line 131 of file DTConfigBti.h.

References debug(), and m_debug.

131 { m_debug=debug; }
int debug() const
Debug flag.
Definition: DTConfigBti.h:62
int8_t m_debug
Definition: DTConfigBti.h:204
void DTConfigBti::setDefaults ( const edm::ParameterSet ps)

Set default parameters.

Definition at line 178 of file DTConfigBti.cc.

References edm::ParameterSet::getParameter(), edm::ParameterSet::getUntrackedParameter(), diffTwoXMLs::label, m_4re3, m_4st3, m_ac1, m_ac2, m_ach, m_acl, m_ch, m_cl, m_dead, m_debug, m_kacctheta, m_kcut, m_lh, m_ll, m_lts, m_pattmask, m_rh, m_rl, m_ron, m_set, m_wiremask, m_xon, AlCaHLTBitMon_ParallelJobs::p, BitArray< N >::set(), AlCaHLTBitMon_QueryRunRegistry::string, and w.

Referenced by DTConfigBti().

178  {
179 
180  // Debug flag
181  m_debug = ps.getUntrackedParameter<int>("Debug");
182 
183  // Max K param accepted
184  m_kcut = ps.getParameter<int>("KMAX");
185 
186  // BTI angular acceptance in theta view
187  m_kacctheta = ps.getParameter<int>("KACCTHETA");
188 
189  // Time indep. K equation suppression (XON)
190  m_xon = ps.getParameter<bool>("XON");
191  // LTS and SET for low trigger suppression
192  m_lts = ps.getParameter<int>("LTS");
193  m_set = ps.getParameter<int>("SET");
194  // pattern acceptance AC1, AC2, ACH, ACL
195  m_ac1 = ps.getParameter<int>("AC1");
196  m_ac2 = ps.getParameter<int>("AC2");
197  m_ach = ps.getParameter<int>("ACH");
198  m_acl = ps.getParameter<int>("ACL");
199  // redundant patterns flag RON
200  m_ron = ps.getParameter<bool>("RON");
201 
202  // pattern masks
203  for(int p=0; p<32; p++)
204  {
205  std::string label = "PTMS";
206  char patt0 = (p/10)+'0';
207  char patt1 = (p%10)+'0';
208  if ( patt0 != '0' )
209  label = label + patt0;
210  label = label + patt1;
211 
212  m_pattmask.set(p,ps.getParameter<int>(label));
213  }
214 
215  // wire masks
216  for(int w=0; w<9; w++)
217  {
218  std::string label = "WEN";
219  char wname = w+'0';
220  label = label + wname;
221 
222  m_wiremask.set(w,ps.getParameter<int>(label));
223  }
224 
225  // angular window limits for traco
226  m_ll = ps.getParameter<int>("LL");
227  m_lh = ps.getParameter<int>("LH");
228  m_cl = ps.getParameter<int>("CL");
229  m_ch = ps.getParameter<int>("CH");
230  m_rl = ps.getParameter<int>("RL");
231  m_rh = ps.getParameter<int>("RH");
232  // drift velocity parameter 4ST3
233  m_4st3 = ps.getParameter<int>("ST43");
234  // drift velocity parameter 4RE3
235  m_4re3 = ps.getParameter<int>("RE43");
236  // DEAD parameter
237  m_dead = ps.getParameter<int>("DEAD");
238 }
T getParameter(std::string const &) const
T getUntrackedParameter(std::string const &, T const &) const
int8_t m_acl
Definition: DTConfigBti.h:213
int8_t m_ac1
Definition: DTConfigBti.h:210
const double w
Definition: UKUtility.cc:23
int8_t m_rl
Definition: DTConfigBti.h:221
int8_t m_lh
Definition: DTConfigBti.h:218
int8_t m_lts
Definition: DTConfigBti.h:208
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
int8_t m_4st3
Definition: DTConfigBti.h:223
BitArray< 32 > m_pattmask
Definition: DTConfigBti.h:215
int8_t m_debug
Definition: DTConfigBti.h:204
int8_t m_rh
Definition: DTConfigBti.h:222
int8_t m_cl
Definition: DTConfigBti.h:219
int8_t m_ac2
Definition: DTConfigBti.h:211
int8_t m_ach
Definition: DTConfigBti.h:212
int8_t m_ch
Definition: DTConfigBti.h:220
int8_t m_kcut
Definition: DTConfigBti.h:205
void set(const int i)
Definition: BitArray.h:230
BitArray< 9 > m_wiremask
Definition: DTConfigBti.h:216
int8_t m_set
Definition: DTConfigBti.h:209
void DTConfigBti::setKAccTheta ( int  KAccTh)
inline

Set BTI angular acceptance in theta view.

Definition at line 137 of file DTConfigBti.h.

References m_kacctheta.

Referenced by DTConfigBti().

137 { m_kacctheta=KAccTh; }
int8_t m_kacctheta
Definition: DTConfigBti.h:206
void DTConfigBti::setKCut ( int  KCut)
inline

Set Max K param accepted: max bit number.

Definition at line 134 of file DTConfigBti.h.

References KCut(), and m_kcut.

Referenced by DTConfigBti().

134 { m_kcut=KCut; }
int KCut() const
Max K param accepted: max bit number.
Definition: DTConfigBti.h:69
int8_t m_kcut
Definition: DTConfigBti.h:205
void DTConfigBti::setLH ( int  LH)
inline

Set K right limit for left traco.

Definition at line 173 of file DTConfigBti.h.

References LH(), and m_lh.

Referenced by DTConfigBti().

173 { m_lh=LH; }
int8_t m_lh
Definition: DTConfigBti.h:218
int LH() const
K right limit for left traco.
Definition: DTConfigBti.h:108
void DTConfigBti::setLL ( int  LL)
inline

Set K left limit for left traco.

Definition at line 170 of file DTConfigBti.h.

References LL(), and m_ll.

Referenced by DTConfigBti().

170 { m_ll=LL; }
int8_t m_ll
Definition: DTConfigBti.h:217
int LL() const
K left limit for left traco.
Definition: DTConfigBti.h:105
void DTConfigBti::setLTS ( int  LTS)
inline

Set LTS.

Definition at line 143 of file DTConfigBti.h.

References LTS(), and m_lts.

Referenced by DTConfigBti().

143 { m_lts=LTS; }
int8_t m_lts
Definition: DTConfigBti.h:208
int LTS() const
LTS.
Definition: DTConfigBti.h:78
void DTConfigBti::setPTMSflag ( int  mask,
int  patt 
)
inline

Set Pattern mask flag.

Definition at line 164 of file DTConfigBti.h.

References m_pattmask, and BitArray< N >::set().

Referenced by DTConfigBti().

164 { m_pattmask.set(patt,mask); }
BitArray< 32 > m_pattmask
Definition: DTConfigBti.h:215
void set(const int i)
Definition: BitArray.h:230
float patt[4][130000]
Definition: HijingWrapper.h:38
void DTConfigBti::setRE43 ( int  RE43)
inline

Definition at line 189 of file DTConfigBti.h.

References m_4re3, and RE43().

Referenced by DTConfigBti().

189 { m_4re3=RE43; }
int8_t m_4re3
Definition: DTConfigBti.h:224
int RE43() const
Definition: DTConfigBti.h:124
void DTConfigBti::setRH ( int  RH)
inline

Set K right limit for right traco.

Definition at line 185 of file DTConfigBti.h.

References m_rh, and RH().

Referenced by DTConfigBti().

185 { m_rh=RH; }
int8_t m_rh
Definition: DTConfigBti.h:222
int RH() const
K right limit for right traco.
Definition: DTConfigBti.h:120
void DTConfigBti::setRL ( int  RL)
inline

Set K left limit for right traco.

Definition at line 182 of file DTConfigBti.h.

References m_rl, and RL().

Referenced by DTConfigBti().

182 { m_rl=RL; }
int RL() const
K left limit for right traco.
Definition: DTConfigBti.h:117
int8_t m_rl
Definition: DTConfigBti.h:221
void DTConfigBti::setRONflag ( bool  RON)
inline

Set Redundant patterns flag RONDTBti/src/DTBtiChipEquations.cc:

Definition at line 161 of file DTConfigBti.h.

References m_ron.

Referenced by DTConfigBti().

161 { m_ron=RON; }
void DTConfigBti::setSET ( int  SET)
inline

Set SET.

Definition at line 146 of file DTConfigBti.h.

References m_set, and SET().

Referenced by DTConfigBti().

146 { m_set=SET; }
int SET() const
SET.
Definition: DTConfigBti.h:81
int8_t m_set
Definition: DTConfigBti.h:209
void DTConfigBti::setST43 ( int  ST43)
inline

Set ST and RE parameters for drift velocity.

Definition at line 188 of file DTConfigBti.h.

References m_4st3, and ST43().

Referenced by DTConfigBti().

188 { m_4st3=ST43; }
int ST43() const
ST and RE parameters for drift velocity.
Definition: DTConfigBti.h:123
int8_t m_4st3
Definition: DTConfigBti.h:223
void DTConfigBti::setWENflag ( int  mask,
int  wire 
)
inline

Set Wire mask flag.

Definition at line 167 of file DTConfigBti.h.

References m_wiremask, and BitArray< N >::set().

Referenced by DTConfigBti().

void DTConfigBti::setXON ( bool  XON)
inline

Set X-patterns flag XON: activates tracks passing on the same side of 3 wires.

Definition at line 140 of file DTConfigBti.h.

References m_xon, and XON().

Referenced by DTConfigBti().

140 { m_xon=XON; }
bool XON() const
X-patterns flag XON: activates tracks passing on the same side of 3 wires.
Definition: DTConfigBti.h:75
float DTConfigBti::ST ( ) const
inline

Max drift time in 12.5 ns steps.

Definition at line 65 of file DTConfigBti.h.

References RE43(), and ST43().

Referenced by DTBtiChip::DTBtiChip(), DTBtiHit::isInsideReg(), DTBtiCard::localDirection(), and DTBtiCard::localPosition().

65  {
66  return (float)( 0.75 * ST43() + 0.25 * RE43() ); }
int ST43() const
ST and RE parameters for drift velocity.
Definition: DTConfigBti.h:123
int RE43() const
Definition: DTConfigBti.h:124
int DTConfigBti::ST43 ( ) const
inline

ST and RE parameters for drift velocity.

Definition at line 123 of file DTConfigBti.h.

References m_4st3.

Referenced by print(), DTBtiChip::setSnap(), setST43(), and ST().

123 { return m_4st3; }
int8_t m_4st3
Definition: DTConfigBti.h:223
int DTConfigBti::WENflag ( int  wire) const
inline

Wire mask flag.

Definition at line 102 of file DTConfigBti.h.

References BitArray< N >::element(), and m_wiremask.

Referenced by DTBtiChip::init(), DTBtiChip::init_clock(), and print().

102 { return m_wiremask.element(wire-1); }
int element(const int pos) const
Definition: BitArray.h:210
BitArray< 9 > m_wiremask
Definition: DTConfigBti.h:216
bool DTConfigBti::XON ( ) const
inline

X-patterns flag XON: activates tracks passing on the same side of 3 wires.

Definition at line 75 of file DTConfigBti.h.

References m_xon.

Referenced by print(), and setXON().

75 { return m_xon; }

Member Data Documentation

int8_t DTConfigBti::m_4re3
private

Definition at line 224 of file DTConfigBti.h.

Referenced by RE43(), setDefaults(), and setRE43().

int8_t DTConfigBti::m_4st3
private

Definition at line 223 of file DTConfigBti.h.

Referenced by setDefaults(), setST43(), and ST43().

int8_t DTConfigBti::m_ac1
private

Definition at line 210 of file DTConfigBti.h.

Referenced by AccPattAC1(), setAccPattAC1(), and setDefaults().

int8_t DTConfigBti::m_ac2
private

Definition at line 211 of file DTConfigBti.h.

Referenced by AccPattAC2(), setAccPattAC2(), and setDefaults().

int8_t DTConfigBti::m_ach
private

Definition at line 212 of file DTConfigBti.h.

Referenced by AccPattACH(), setAccPattACH(), and setDefaults().

int8_t DTConfigBti::m_acl
private

Definition at line 213 of file DTConfigBti.h.

Referenced by AccPattACL(), setAccPattACL(), and setDefaults().

int8_t DTConfigBti::m_ch
private

Definition at line 220 of file DTConfigBti.h.

Referenced by CH(), setCH(), and setDefaults().

int8_t DTConfigBti::m_cl
private

Definition at line 219 of file DTConfigBti.h.

Referenced by CL(), setCL(), and setDefaults().

int8_t DTConfigBti::m_dead
private

Definition at line 225 of file DTConfigBti.h.

Referenced by DEADpar(), setDEADpar(), and setDefaults().

int8_t DTConfigBti::m_debug
private

Definition at line 204 of file DTConfigBti.h.

Referenced by debug(), DTConfigBti(), setDebug(), and setDefaults().

int8_t DTConfigBti::m_kacctheta
private

Definition at line 206 of file DTConfigBti.h.

Referenced by KAccTheta(), setDefaults(), and setKAccTheta().

int8_t DTConfigBti::m_kcut
private

Definition at line 205 of file DTConfigBti.h.

Referenced by KCut(), setDefaults(), and setKCut().

int8_t DTConfigBti::m_lh
private

Definition at line 218 of file DTConfigBti.h.

Referenced by LH(), setDefaults(), and setLH().

int8_t DTConfigBti::m_ll
private

Definition at line 217 of file DTConfigBti.h.

Referenced by LL(), setDefaults(), and setLL().

int8_t DTConfigBti::m_lts
private

Definition at line 208 of file DTConfigBti.h.

Referenced by LTS(), setDefaults(), and setLTS().

BitArray<32> DTConfigBti::m_pattmask
private

Definition at line 215 of file DTConfigBti.h.

Referenced by PTMSflag(), setDefaults(), and setPTMSflag().

int8_t DTConfigBti::m_rh
private

Definition at line 222 of file DTConfigBti.h.

Referenced by RH(), setDefaults(), and setRH().

int8_t DTConfigBti::m_rl
private

Definition at line 221 of file DTConfigBti.h.

Referenced by RL(), setDefaults(), and setRL().

bool DTConfigBti::m_ron
private

Definition at line 214 of file DTConfigBti.h.

Referenced by RONflag(), setDefaults(), and setRONflag().

int8_t DTConfigBti::m_set
private

Definition at line 209 of file DTConfigBti.h.

Referenced by SET(), setDefaults(), and setSET().

BitArray<9> DTConfigBti::m_wiremask
private

Definition at line 216 of file DTConfigBti.h.

Referenced by setDefaults(), setWENflag(), and WENflag().

bool DTConfigBti::m_xon
private

Definition at line 207 of file DTConfigBti.h.

Referenced by setDefaults(), setXON(), and XON().