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 36 of file DTConfigBti.h.

Constructor & Destructor Documentation

◆ DTConfigBti() [1/3]

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

Constructor.

Definition at line 40 of file DTConfigBti.cc.

References setDefaults().

40 { setDefaults(ps); }
void setDefaults(const edm::ParameterSet &ps)
Set default parameters.
Definition: DTConfigBti.cc:153

◆ DTConfigBti() [2/3]

DTConfigBti::DTConfigBti ( )
inline

Empty Constructor.

Definition at line 46 of file DTConfigBti.h.

46 { ; }

◆ DTConfigBti() [3/3]

DTConfigBti::DTConfigBti ( int  debug,
unsigned short int *  buffer 
)

Constructor from string.

Definition at line 42 of file DTConfigBti.cc.

References edmScanValgrind::buffer, 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().

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

DTConfigBti::~DTConfigBti ( )
override

Destructor.

Definition at line 147 of file DTConfigBti.cc.

147 {}

Member Function Documentation

◆ AccPattAC1()

int DTConfigBti::AccPattAC1 ( ) const
inline

Acceptance pattern AC1.

Definition at line 79 of file DTConfigBti.h.

References m_ac1.

Referenced by print().

79 { return m_ac1; }
int8_t m_ac1
Definition: DTConfigBti.h:199

◆ AccPattAC2()

int DTConfigBti::AccPattAC2 ( ) const
inline

Acceptance pattern AC2.

Definition at line 82 of file DTConfigBti.h.

References m_ac2.

Referenced by print().

82 { return m_ac2; }
int8_t m_ac2
Definition: DTConfigBti.h:200

◆ AccPattACH()

int DTConfigBti::AccPattACH ( ) const
inline

Acceptance pattern ACH.

Definition at line 85 of file DTConfigBti.h.

References m_ach.

Referenced by print().

85 { return m_ach; }
int8_t m_ach
Definition: DTConfigBti.h:201

◆ AccPattACL()

int DTConfigBti::AccPattACL ( ) const
inline

Acceptance pattern ACL.

Definition at line 88 of file DTConfigBti.h.

References m_acl.

Referenced by print().

88 { return m_acl; }
int8_t m_acl
Definition: DTConfigBti.h:202

◆ CH()

int DTConfigBti::CH ( ) const
inline

K right limit for center traco.

Definition at line 109 of file DTConfigBti.h.

References m_ch.

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

109 { return m_ch; }
int8_t m_ch
Definition: DTConfigBti.h:209

◆ CL()

int DTConfigBti::CL ( ) const
inline

K left limit for center traco.

Definition at line 106 of file DTConfigBti.h.

References m_cl.

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

106 { return m_cl; }
int8_t m_cl
Definition: DTConfigBti.h:208

◆ DEADpar()

int DTConfigBti::DEADpar ( ) const
inline

Wire DEAD time parameter.

Definition at line 122 of file DTConfigBti.h.

References m_dead.

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

122 { return m_dead; }
int8_t m_dead
Definition: DTConfigBti.h:214

◆ debug()

int DTConfigBti::debug ( ) const
inline

Debug flag.

Definition at line 58 of file DTConfigBti.h.

References m_debug.

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

58 { return m_debug; }
int8_t m_debug
Definition: DTConfigBti.h:193

◆ KAccTheta()

int DTConfigBti::KAccTheta ( ) const
inline

BTI angular acceptance in theta view.

Definition at line 67 of file DTConfigBti.h.

References m_kacctheta.

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

67 { return m_kacctheta; }
int8_t m_kacctheta
Definition: DTConfigBti.h:195

◆ KCut()

int DTConfigBti::KCut ( ) const
inline

Max K param accepted: max bit number.

Definition at line 64 of file DTConfigBti.h.

References m_kcut.

Referenced by print(), and setKCut().

64 { return m_kcut; }
int8_t m_kcut
Definition: DTConfigBti.h:194

◆ LH()

int DTConfigBti::LH ( ) const
inline

K right limit for left traco.

Definition at line 103 of file DTConfigBti.h.

References m_lh.

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

103 { return m_lh; }
int8_t m_lh
Definition: DTConfigBti.h:207

◆ LL()

int DTConfigBti::LL ( ) const
inline

K left limit for left traco.

Definition at line 100 of file DTConfigBti.h.

References m_ll.

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

100 { return m_ll; }
int8_t m_ll
Definition: DTConfigBti.h:206

◆ LTS()

int DTConfigBti::LTS ( ) const
inline

LTS.

Definition at line 73 of file DTConfigBti.h.

References m_lts.

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

73 { return m_lts; }
int8_t m_lts
Definition: DTConfigBti.h:197

◆ print()

void DTConfigBti::print ( void  ) const

Print the setup.

Definition at line 212 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().

212  {
213  std::cout << "******************************************************************************" << std::endl;
214  std::cout << "* DTTrigger configuration : BTI chips *" << std::endl;
215  std::cout << "******************************************************************************" << std::endl;
216  std::cout << "* *" << std::endl;
217  std::cout << "Debug flag : " << debug() << std::endl;
218  std::cout << "Max K param accepted : " << KCut() << std::endl;
219  std::cout << "BTI angular acceptance in theta view : " << KAccTheta() << std::endl;
220  std::cout << "Time indep. K equation suppression (XON) : " << XON() << std::endl;
221  std::cout << "LTS for low trigger suppression : " << LTS() << std::endl;
222  std::cout << "SET for low trigger suppression : " << SET() << std::endl;
223  std::cout << "pattern acceptance AC1, AC2, ACH, ACL : " << AccPattAC1() << ", " << AccPattAC2() << " , "
224  << AccPattACH() << ", " << AccPattACL() << std::endl;
225  std::cout << "redundant patterns flag RON : " << RONflag() << std::endl;
226  std::cout << "pattern masks : ";
227  for (int p = 0; p < 32; p++)
228  std::cout << PTMSflag(p) << " ";
229  std::cout << std::endl;
230 
231  std::cout << "wire masks : ";
232  for (int w = 1; w <= 9; w++)
233  std::cout << WENflag(w) << " ";
234  std::cout << std::endl;
235 
236  std::cout << "angular window limits for traco : " << LL() << ", " << LH() << ", " << CL() << ", " << CH() << ", "
237  << RL() << ", " << RH() << std::endl;
238  std::cout << "drift velocity parameter 4ST3 : " << ST43() << std::endl;
239  std::cout << "drift velocity parameter 4RE3 : " << RE43() << std::endl;
240  std::cout << "DEAD parameter : " << DEADpar() << std::endl;
241 
242  std::cout << "******************************************************************************" << std::endl;
243 }
int SET() const
SET.
Definition: DTConfigBti.h:76
int WENflag(int wire) const
Wire mask flag.
Definition: DTConfigBti.h:97
int LTS() const
LTS.
Definition: DTConfigBti.h:73
T w() const
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
int PTMSflag(int patt) const
Pattern mask flag.
Definition: DTConfigBti.h:94
int KCut() const
Max K param accepted: max bit number.
Definition: DTConfigBti.h:64
int RE43() const
Definition: DTConfigBti.h:119
int CH() const
K right limit for center traco.
Definition: DTConfigBti.h:109
int AccPattACL() const
Acceptance pattern ACL.
Definition: DTConfigBti.h:88
bool XON() const
X-patterns flag XON: activates tracks passing on the same side of 3 wires.
Definition: DTConfigBti.h:70
int CL() const
K left limit for center traco.
Definition: DTConfigBti.h:106
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
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
int AccPattAC1() const
Acceptance pattern AC1.
Definition: DTConfigBti.h:79
int ST43() const
ST and RE parameters for drift velocity.
Definition: DTConfigBti.h:118
int KAccTheta() const
BTI angular acceptance in theta view.
Definition: DTConfigBti.h:67

◆ PTMSflag()

int DTConfigBti::PTMSflag ( int  patt) const
inline

Pattern mask flag.

Definition at line 94 of file DTConfigBti.h.

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

Referenced by print().

94 { return m_pattmask.element(patt); }
BitArray< 32 > m_pattmask
Definition: DTConfigBti.h:204
int element(const int pos) const
Definition: BitArray.h:206
float patt[4][130000]
Definition: HijingWrapper.h:48

◆ RE43()

int DTConfigBti::RE43 ( ) const
inline

Definition at line 119 of file DTConfigBti.h.

References m_4re3.

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

119 { return m_4re3; }
int8_t m_4re3
Definition: DTConfigBti.h:213

◆ RH()

int DTConfigBti::RH ( ) const
inline

K right limit for right traco.

Definition at line 115 of file DTConfigBti.h.

References m_rh.

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

115 { return m_rh; }
int8_t m_rh
Definition: DTConfigBti.h:211

◆ RL()

int DTConfigBti::RL ( ) const
inline

K left limit for right traco.

Definition at line 112 of file DTConfigBti.h.

References m_rl.

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

112 { return m_rl; }
int8_t m_rl
Definition: DTConfigBti.h:210

◆ RONflag()

bool DTConfigBti::RONflag ( ) const
inline

Redundant patterns flag RONDTBti/src/DTBtiChipEquations.cc:

Definition at line 91 of file DTConfigBti.h.

References m_ron.

Referenced by print().

91 { return m_ron; }

◆ SET()

int DTConfigBti::SET ( ) const
inline

SET.

Definition at line 76 of file DTConfigBti.h.

References m_set.

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

76 { return m_set; }
int8_t m_set
Definition: DTConfigBti.h:198

◆ setAccPattAC1()

void DTConfigBti::setAccPattAC1 ( int  AC1)
inline

Set Acceptance pattern AC1.

Definition at line 144 of file DTConfigBti.h.

References L1DTConfigBti_cff::AC1, and m_ac1.

Referenced by DTConfigBti().

◆ setAccPattAC2()

void DTConfigBti::setAccPattAC2 ( int  AC2)
inline

Set Acceptance pattern AC2.

Definition at line 147 of file DTConfigBti.h.

References L1DTConfigBti_cff::AC2, and m_ac2.

Referenced by DTConfigBti().

147 { m_ac2 = AC2; }
AC2
drift velocity parameter 4ST3
int8_t m_ac2
Definition: DTConfigBti.h:200

◆ setAccPattACH()

void DTConfigBti::setAccPattACH ( int  ACH)
inline

Set Acceptance pattern ACH.

Definition at line 150 of file DTConfigBti.h.

References L1DTConfigBti_cff::ACH, and m_ach.

Referenced by DTConfigBti().

◆ setAccPattACL()

void DTConfigBti::setAccPattACL ( int  ACL)
inline

Set Acceptance pattern ACL.

Definition at line 153 of file DTConfigBti.h.

References L1DTConfigBti_cff::ACL, and m_acl.

Referenced by DTConfigBti().

153 { m_acl = ACL; }
int8_t m_acl
Definition: DTConfigBti.h:202
ACL
dead bti parameter

◆ setCH()

void DTConfigBti::setCH ( int  CH)
inline

Set K right limit for center traco.

Definition at line 174 of file DTConfigBti.h.

References CH(), and m_ch.

Referenced by DTConfigBti().

174 { m_ch = CH; }
int CH() const
K right limit for center traco.
Definition: DTConfigBti.h:109
int8_t m_ch
Definition: DTConfigBti.h:209

◆ setCL()

void DTConfigBti::setCL ( int  CL)
inline

Set K left limit for center traco.

Definition at line 171 of file DTConfigBti.h.

References CL(), and m_cl.

Referenced by DTConfigBti().

171 { m_cl = CL; }
int8_t m_cl
Definition: DTConfigBti.h:208
int CL() const
K left limit for center traco.
Definition: DTConfigBti.h:106

◆ setDEADpar()

void DTConfigBti::setDEADpar ( int  DEAD)
inline

Wire DEAD time parameter.

Definition at line 187 of file DTConfigBti.h.

References L1DTConfigBti_cff::DEAD, and m_dead.

Referenced by DTConfigBti().

◆ setDebug()

void DTConfigBti::setDebug ( int  debug)
inline

Set single parameter functions Set debug flag

Definition at line 126 of file DTConfigBti.h.

References debug(), and m_debug.

126 { m_debug = debug; }
int8_t m_debug
Definition: DTConfigBti.h:193
int debug() const
Debug flag.
Definition: DTConfigBti.h:58

◆ setDefaults()

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

Set default parameters.

Definition at line 153 of file DTConfigBti.cc.

References edm::ParameterSet::getParameter(), edm::ParameterSet::getUntrackedParameter(), 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().

153  {
154  // Debug flag
155  m_debug = ps.getUntrackedParameter<int>("Debug");
156 
157  // Max K param accepted
158  m_kcut = ps.getParameter<int>("KMAX");
159 
160  // BTI angular acceptance in theta view
161  m_kacctheta = ps.getParameter<int>("KACCTHETA");
162 
163  // Time indep. K equation suppression (XON)
164  m_xon = ps.getParameter<bool>("XON");
165  // LTS and SET for low trigger suppression
166  m_lts = ps.getParameter<int>("LTS");
167  m_set = ps.getParameter<int>("SET");
168  // pattern acceptance AC1, AC2, ACH, ACL
169  m_ac1 = ps.getParameter<int>("AC1");
170  m_ac2 = ps.getParameter<int>("AC2");
171  m_ach = ps.getParameter<int>("ACH");
172  m_acl = ps.getParameter<int>("ACL");
173  // redundant patterns flag RON
174  m_ron = ps.getParameter<bool>("RON");
175 
176  // pattern masks
177  for (int p = 0; p < 32; p++) {
178  std::string label = "PTMS";
179  char patt0 = (p / 10) + '0';
180  char patt1 = (p % 10) + '0';
181  if (patt0 != '0')
182  label = label + patt0;
183  label = label + patt1;
184 
185  m_pattmask.set(p, ps.getParameter<int>(label));
186  }
187 
188  // wire masks
189  for (int w = 0; w < 9; w++) {
190  std::string label = "WEN";
191  char wname = w + '0';
192  label = label + wname;
193 
194  m_wiremask.set(w, ps.getParameter<int>(label));
195  }
196 
197  // angular window limits for traco
198  m_ll = ps.getParameter<int>("LL");
199  m_lh = ps.getParameter<int>("LH");
200  m_cl = ps.getParameter<int>("CL");
201  m_ch = ps.getParameter<int>("CH");
202  m_rl = ps.getParameter<int>("RL");
203  m_rh = ps.getParameter<int>("RH");
204  // drift velocity parameter 4ST3
205  m_4st3 = ps.getParameter<int>("ST43");
206  // drift velocity parameter 4RE3
207  m_4re3 = ps.getParameter<int>("RE43");
208  // DEAD parameter
209  m_dead = ps.getParameter<int>("DEAD");
210 }
T getParameter(std::string const &) const
Definition: ParameterSet.h:307
int8_t m_acl
Definition: DTConfigBti.h:202
int8_t m_ac1
Definition: DTConfigBti.h:199
int8_t m_rl
Definition: DTConfigBti.h:210
T w() const
int8_t m_lh
Definition: DTConfigBti.h:207
int8_t m_lts
Definition: DTConfigBti.h:197
int8_t m_dead
Definition: DTConfigBti.h:214
int8_t m_kacctheta
Definition: DTConfigBti.h:195
int8_t m_ll
Definition: DTConfigBti.h:206
T getUntrackedParameter(std::string const &, T const &) const
char const * label
int8_t m_4re3
Definition: DTConfigBti.h:213
int8_t m_4st3
Definition: DTConfigBti.h:212
BitArray< 32 > m_pattmask
Definition: DTConfigBti.h:204
int8_t m_debug
Definition: DTConfigBti.h:193
int8_t m_rh
Definition: DTConfigBti.h:211
int8_t m_cl
Definition: DTConfigBti.h:208
int8_t m_ac2
Definition: DTConfigBti.h:200
int8_t m_ach
Definition: DTConfigBti.h:201
int8_t m_ch
Definition: DTConfigBti.h:209
int8_t m_kcut
Definition: DTConfigBti.h:194
void set(const int i)
Definition: BitArray.h:224
BitArray< 9 > m_wiremask
Definition: DTConfigBti.h:205
int8_t m_set
Definition: DTConfigBti.h:198

◆ setKAccTheta()

void DTConfigBti::setKAccTheta ( int  KAccTh)
inline

Set BTI angular acceptance in theta view.

Definition at line 132 of file DTConfigBti.h.

References m_kacctheta.

Referenced by DTConfigBti().

132 { m_kacctheta = KAccTh; }
int8_t m_kacctheta
Definition: DTConfigBti.h:195

◆ setKCut()

void DTConfigBti::setKCut ( int  KCut)
inline

Set Max K param accepted: max bit number.

Definition at line 129 of file DTConfigBti.h.

References KCut(), and m_kcut.

Referenced by DTConfigBti().

129 { m_kcut = KCut; }
int KCut() const
Max K param accepted: max bit number.
Definition: DTConfigBti.h:64
int8_t m_kcut
Definition: DTConfigBti.h:194

◆ setLH()

void DTConfigBti::setLH ( int  LH)
inline

Set K right limit for left traco.

Definition at line 168 of file DTConfigBti.h.

References LH(), and m_lh.

Referenced by DTConfigBti().

168 { m_lh = LH; }
int8_t m_lh
Definition: DTConfigBti.h:207
int LH() const
K right limit for left traco.
Definition: DTConfigBti.h:103

◆ setLL()

void DTConfigBti::setLL ( int  LL)
inline

Set K left limit for left traco.

Definition at line 165 of file DTConfigBti.h.

References LL(), and m_ll.

Referenced by DTConfigBti().

165 { m_ll = LL; }
int8_t m_ll
Definition: DTConfigBti.h:206
int LL() const
K left limit for left traco.
Definition: DTConfigBti.h:100

◆ setLTS()

void DTConfigBti::setLTS ( int  LTS)
inline

Set LTS.

Definition at line 138 of file DTConfigBti.h.

References LTS(), and m_lts.

Referenced by DTConfigBti().

138 { m_lts = LTS; }
int LTS() const
LTS.
Definition: DTConfigBti.h:73
int8_t m_lts
Definition: DTConfigBti.h:197

◆ setPTMSflag()

void DTConfigBti::setPTMSflag ( int  mask,
int  patt 
)
inline

Set Pattern mask flag.

Definition at line 159 of file DTConfigBti.h.

References m_pattmask, ALPAKA_ACCELERATOR_NAMESPACE::pixelClustering::pixelStatus::mask, patt, and BitArray< N >::set().

Referenced by DTConfigBti().

159 { m_pattmask.set(patt, mask); }
BitArray< 32 > m_pattmask
Definition: DTConfigBti.h:204
void set(const int i)
Definition: BitArray.h:224
float patt[4][130000]
Definition: HijingWrapper.h:48

◆ setRE43()

void DTConfigBti::setRE43 ( int  RE43)
inline

Definition at line 184 of file DTConfigBti.h.

References m_4re3, and RE43().

Referenced by DTConfigBti().

184 { m_4re3 = RE43; }
int RE43() const
Definition: DTConfigBti.h:119
int8_t m_4re3
Definition: DTConfigBti.h:213

◆ setRH()

void DTConfigBti::setRH ( int  RH)
inline

Set K right limit for right traco.

Definition at line 180 of file DTConfigBti.h.

References m_rh, and RH().

Referenced by DTConfigBti().

180 { m_rh = RH; }
int RH() const
K right limit for right traco.
Definition: DTConfigBti.h:115
int8_t m_rh
Definition: DTConfigBti.h:211

◆ setRL()

void DTConfigBti::setRL ( int  RL)
inline

Set K left limit for right traco.

Definition at line 177 of file DTConfigBti.h.

References m_rl, and RL().

Referenced by DTConfigBti().

177 { m_rl = RL; }
int8_t m_rl
Definition: DTConfigBti.h:210
int RL() const
K left limit for right traco.
Definition: DTConfigBti.h:112

◆ setRONflag()

void DTConfigBti::setRONflag ( bool  RON)
inline

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

Definition at line 156 of file DTConfigBti.h.

References m_ron, and L1DTConfigBti_cff::RON.

Referenced by DTConfigBti().

◆ setSET()

void DTConfigBti::setSET ( int  SET)
inline

Set SET.

Definition at line 141 of file DTConfigBti.h.

References m_set, and SET().

Referenced by DTConfigBti().

141 { m_set = SET; }
int SET() const
SET.
Definition: DTConfigBti.h:76
int8_t m_set
Definition: DTConfigBti.h:198

◆ setST43()

void DTConfigBti::setST43 ( int  ST43)
inline

Set ST and RE parameters for drift velocity.

Definition at line 183 of file DTConfigBti.h.

References m_4st3, and ST43().

Referenced by DTConfigBti().

183 { m_4st3 = ST43; }
int8_t m_4st3
Definition: DTConfigBti.h:212
int ST43() const
ST and RE parameters for drift velocity.
Definition: DTConfigBti.h:118

◆ setWENflag()

void DTConfigBti::setWENflag ( int  mask,
int  wire 
)
inline

◆ setXON()

void DTConfigBti::setXON ( bool  XON)
inline

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

Definition at line 135 of file DTConfigBti.h.

References m_xon, and XON().

Referenced by DTConfigBti().

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

◆ ST()

float DTConfigBti::ST ( ) const
inline

Max drift time in 12.5 ns steps.

Definition at line 61 of file DTConfigBti.h.

References RE43(), and ST43().

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

61 { return (float)(0.75 * ST43() + 0.25 * RE43()); }
int RE43() const
Definition: DTConfigBti.h:119
int ST43() const
ST and RE parameters for drift velocity.
Definition: DTConfigBti.h:118

◆ ST43()

int DTConfigBti::ST43 ( ) const
inline

ST and RE parameters for drift velocity.

Definition at line 118 of file DTConfigBti.h.

References m_4st3.

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

118 { return m_4st3; }
int8_t m_4st3
Definition: DTConfigBti.h:212

◆ WENflag()

int DTConfigBti::WENflag ( int  wire) const
inline

Wire mask flag.

Definition at line 97 of file DTConfigBti.h.

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

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

97 { return m_wiremask.element(wire - 1); }
BitArray< 9 > m_wiremask
Definition: DTConfigBti.h:205
int element(const int pos) const
Definition: BitArray.h:206

◆ XON()

bool DTConfigBti::XON ( ) const
inline

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

Definition at line 70 of file DTConfigBti.h.

References m_xon.

Referenced by print(), and setXON().

70 { return m_xon; }

Member Data Documentation

◆ m_4re3

int8_t DTConfigBti::m_4re3
private

Definition at line 213 of file DTConfigBti.h.

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

◆ m_4st3

int8_t DTConfigBti::m_4st3
private

Definition at line 212 of file DTConfigBti.h.

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

◆ m_ac1

int8_t DTConfigBti::m_ac1
private

Definition at line 199 of file DTConfigBti.h.

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

◆ m_ac2

int8_t DTConfigBti::m_ac2
private

Definition at line 200 of file DTConfigBti.h.

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

◆ m_ach

int8_t DTConfigBti::m_ach
private

Definition at line 201 of file DTConfigBti.h.

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

◆ m_acl

int8_t DTConfigBti::m_acl
private

Definition at line 202 of file DTConfigBti.h.

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

◆ m_ch

int8_t DTConfigBti::m_ch
private

Definition at line 209 of file DTConfigBti.h.

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

◆ m_cl

int8_t DTConfigBti::m_cl
private

Definition at line 208 of file DTConfigBti.h.

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

◆ m_dead

int8_t DTConfigBti::m_dead
private

Definition at line 214 of file DTConfigBti.h.

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

◆ m_debug

int8_t DTConfigBti::m_debug
private

Definition at line 193 of file DTConfigBti.h.

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

◆ m_kacctheta

int8_t DTConfigBti::m_kacctheta
private

Definition at line 195 of file DTConfigBti.h.

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

◆ m_kcut

int8_t DTConfigBti::m_kcut
private

Definition at line 194 of file DTConfigBti.h.

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

◆ m_lh

int8_t DTConfigBti::m_lh
private

Definition at line 207 of file DTConfigBti.h.

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

◆ m_ll

int8_t DTConfigBti::m_ll
private

Definition at line 206 of file DTConfigBti.h.

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

◆ m_lts

int8_t DTConfigBti::m_lts
private

Definition at line 197 of file DTConfigBti.h.

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

◆ m_pattmask

BitArray<32> DTConfigBti::m_pattmask
private

Definition at line 204 of file DTConfigBti.h.

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

◆ m_rh

int8_t DTConfigBti::m_rh
private

Definition at line 211 of file DTConfigBti.h.

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

◆ m_rl

int8_t DTConfigBti::m_rl
private

Definition at line 210 of file DTConfigBti.h.

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

◆ m_ron

bool DTConfigBti::m_ron
private

Definition at line 203 of file DTConfigBti.h.

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

◆ m_set

int8_t DTConfigBti::m_set
private

Definition at line 198 of file DTConfigBti.h.

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

◆ m_wiremask

BitArray<9> DTConfigBti::m_wiremask
private

Definition at line 205 of file DTConfigBti.h.

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

◆ m_xon

bool DTConfigBti::m_xon
private

Definition at line 196 of file DTConfigBti.h.

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