#include <L1TriggerConfig/DTTPGConfig/interface/DTConfigBti.h>
Public Member Functions | |
int | AccPattAC1 () const |
Acceptance pattern AC1. | |
int | AccPattAC2 () const |
Acceptance pattern AC2. | |
int | AccPattACH () const |
Acceptance pattern ACH. | |
int | AccPattACL () const |
Acceptance pattern ACL. | |
int | CH () const |
K right limit for center traco. | |
int | CL () const |
K left limit for center traco. | |
int | DEADpar () const |
Wire DEAD time parameter. | |
int | debug () const |
Debug flag. | |
DTConfigBti () | |
Empty Constructor. | |
DTConfigBti (const edm::ParameterSet &ps) | |
Constructor. | |
int | KAccTheta () const |
BTI angular acceptance in theta view. | |
int | KCut () const |
Max K param accepted: max bit number. | |
int | LH () const |
K right limit for left traco. | |
int | LL () const |
K left limit for left traco. | |
int | LTS () const |
LTS. | |
void | print () const |
Print the setup. | |
int | PTMSflag (int patt) const |
Pattern mask flag. | |
int | RE43 () const |
int | RH () const |
K right limit for right traco. | |
int | RL () const |
K left limit for right traco. | |
bool | RONflag () const |
Redundant patterns flag RONDTBti/src/DTBtiChipEquations.cc:. | |
int | SET () const |
SET. | |
void | setDefaults (const edm::ParameterSet &ps) |
Set default parameters. | |
float | ST () const |
Max drift time in 12.5 ns steps. | |
int | ST43 () const |
ST and RE parameters for drift velocity. | |
int | WENflag (int wire) const |
Wire mask flag. | |
bool | XON () const |
X-patterns flag XON: activates tracks passing on the same side of 3 wires. | |
~DTConfigBti () | |
Destructor. | |
Private Attributes | |
unsigned short int | m_4re3 |
unsigned short int | m_4st3 |
unsigned short int | m_ac1 |
unsigned short int | m_ac2 |
unsigned short int | m_ach |
unsigned short int | m_acl |
unsigned short int | m_ch |
unsigned short int | m_cl |
unsigned short int | m_dead |
unsigned short int | m_debug |
unsigned short int | m_kacctheta |
unsigned short int | m_kcut |
unsigned short int | m_lh |
unsigned short int | m_ll |
unsigned short int | m_lts |
BitArray< 32 > | m_pattmask |
unsigned short int | m_rh |
unsigned short int | m_rl |
bool | m_ron |
unsigned short int | m_set |
BitArray< 9 > | m_wiremask |
bool | m_xon |
Definition at line 38 of file DTConfigBti.h.
DTConfigBti::DTConfigBti | ( | const edm::ParameterSet & | ps | ) |
Constructor.
Definition at line 36 of file DTConfigBti.cc.
References setDefaults().
00036 { 00037 00038 setDefaults(ps); 00039 00040 }
DTConfigBti::DTConfigBti | ( | ) | [inline] |
DTConfigBti::~DTConfigBti | ( | ) |
int DTConfigBti::AccPattAC1 | ( | ) | const [inline] |
Acceptance pattern AC1.
Definition at line 81 of file DTConfigBti.h.
References m_ac1.
Referenced by DTBtiChip::keepTrigPatt(), and print().
00081 { return m_ac1; }
int DTConfigBti::AccPattAC2 | ( | ) | const [inline] |
Acceptance pattern AC2.
Definition at line 84 of file DTConfigBti.h.
References m_ac2.
Referenced by DTBtiChip::keepTrigPatt(), and print().
00084 { return m_ac2; }
int DTConfigBti::AccPattACH | ( | ) | const [inline] |
Acceptance pattern ACH.
Definition at line 87 of file DTConfigBti.h.
References m_ach.
Referenced by DTBtiChip::keepTrigPatt(), and print().
00087 { return m_ach; }
int DTConfigBti::AccPattACL | ( | ) | const [inline] |
Acceptance pattern ACL.
Definition at line 90 of file DTConfigBti.h.
References m_acl.
Referenced by DTBtiChip::keepTrigPatt(), and print().
00090 { return m_acl; }
int DTConfigBti::CH | ( | ) | const [inline] |
K right limit for center traco.
Definition at line 111 of file DTConfigBti.h.
References m_ch.
Referenced by print().
00111 { return m_ch; }
int DTConfigBti::CL | ( | ) | const [inline] |
K left limit for center traco.
Definition at line 108 of file DTConfigBti.h.
References m_cl.
Referenced by print().
00108 { return m_cl; }
int DTConfigBti::DEADpar | ( | ) | const [inline] |
Wire DEAD time parameter.
Definition at line 124 of file DTConfigBti.h.
References m_dead.
Referenced by DTBtiChip::add_digi(), DTBtiChip::add_digi_clock(), DTBtiChip::DTBtiChip(), and print().
00124 { return m_dead;}
int DTConfigBti::debug | ( | ) | const [inline] |
Debug flag.
Definition at line 59 of file DTConfigBti.h.
References m_debug.
Referenced by DTBtiCard::activeGetBTI(), DTBtiChip::computeEqs(), DTBtiChip::doLTS(), print(), DTBtiChip::run(), and DTBtiChip::tick().
00059 { return m_debug; }
int DTConfigBti::KAccTheta | ( | ) | const [inline] |
BTI angular acceptance in theta view.
Definition at line 69 of file DTConfigBti.h.
References m_kacctheta.
Referenced by DTBtiChip::DTBtiChip(), and print().
00069 { return m_kacctheta; }
int DTConfigBti::KCut | ( | ) | const [inline] |
Max K param accepted: max bit number.
Definition at line 66 of file DTConfigBti.h.
References m_kcut.
Referenced by DTBtiChip::keepTrig(), and print().
00066 { return m_kcut; }
int DTConfigBti::LH | ( | ) | const [inline] |
K right limit for left traco.
Definition at line 105 of file DTConfigBti.h.
References m_lh.
Referenced by print().
00105 { return m_lh; }
int DTConfigBti::LL | ( | ) | const [inline] |
K left limit for left traco.
Definition at line 102 of file DTConfigBti.h.
References m_ll.
Referenced by print().
00102 { return m_ll; }
int DTConfigBti::LTS | ( | ) | const [inline] |
LTS.
Definition at line 75 of file DTConfigBti.h.
References m_lts.
Referenced by DTBtiChip::doLTS(), and print().
00075 { return m_lts; }
Print the setup.
Definition at line 115 of file DTConfigBti.cc.
References AccPattAC1(), AccPattAC2(), AccPattACH(), AccPattACL(), CH(), CL(), GenMuonPlsPt100GeV_cfg::cout, DEADpar(), debug(), lat::endl(), KAccTheta(), KCut(), LH(), LL(), LTS(), p, PTMSflag(), RE43(), RH(), RL(), RONflag(), SET(), ST43(), w, WENflag(), and XON().
00115 { 00116 std::cout << "******************************************************************************" << std::endl; 00117 std::cout << "* DTTrigger configuration : BTI chips *" << std::endl; 00118 std::cout << "******************************************************************************" << std::endl; 00119 std::cout << "* *" << std::endl; 00120 std::cout << "Debug flag : " << debug() << std::endl; 00121 std::cout << "Max K param accepted : " << KCut() << std::endl; 00122 std::cout << "BTI angular acceptance in theta view : " << KAccTheta() << std::endl; 00123 std::cout << "Time indep. K equation suppression (XON) : " << XON() << std::endl; 00124 std::cout << "LTS for low trigger suppression : " << LTS() << std::endl; 00125 std::cout << "SET for low trigger suppression : " << SET() << std::endl; 00126 std::cout << "pattern acceptance AC1, AC2, ACH, ACL : " << 00127 AccPattAC1() << ", " << AccPattAC2() << " , " << AccPattACH() << ", " << AccPattACL() << std::endl; 00128 std::cout << "redundant patterns flag RON : " << RONflag() << std::endl; 00129 std::cout << "pattern masks : "; 00130 for(int p=0; p<32; p++) 00131 std::cout << PTMSflag(p) << " "; 00132 std::cout << std::endl; 00133 00134 std::cout << "wire masks : "; 00135 for(int w=1; w<=9; w++) 00136 std::cout << WENflag(w) << " "; 00137 std::cout << std::endl; 00138 00139 std::cout << "angular window limits for traco : " << LL() << ", " << LH() << ", " 00140 << CL() << ", " << CH() << ", " << RL() << ", " << RH() << std::endl; 00141 std::cout << "drift velocity parameter 4ST3 : " << ST43() << std::endl; 00142 std::cout << "drift velocity parameter 4RE3 : " << RE43() << std::endl; 00143 std::cout << "DEAD parameter : " << DEADpar() << std::endl; 00144 00145 std::cout << "******************************************************************************" << std::endl; 00146 00147 }
Pattern mask flag.
Definition at line 96 of file DTConfigBti.h.
References BitArray< N >::element(), and m_pattmask.
Referenced by DTBtiChip::computeEqs(), DTBtiChip::findTrig(), and print().
00096 { return m_pattmask.element(patt); }
int DTConfigBti::RE43 | ( | ) | const [inline] |
Definition at line 121 of file DTConfigBti.h.
References m_4re3.
Referenced by print(), DTBtiChip::setSnap(), and ST().
00121 { return m_4re3; }
int DTConfigBti::RH | ( | ) | const [inline] |
K right limit for right traco.
Definition at line 117 of file DTConfigBti.h.
References m_rh.
Referenced by print().
00117 { return m_rh; }
int DTConfigBti::RL | ( | ) | const [inline] |
K left limit for right traco.
Definition at line 114 of file DTConfigBti.h.
References m_rl.
Referenced by print().
00114 { return m_rl; }
bool DTConfigBti::RONflag | ( | ) | const [inline] |
Redundant patterns flag RONDTBti/src/DTBtiChipEquations.cc:.
Definition at line 93 of file DTConfigBti.h.
References m_ron.
Referenced by DTBtiChip::findTrig(), DTBtiChip::keepTrigPatt(), and print().
00093 { return m_ron; }
int DTConfigBti::SET | ( | ) | const [inline] |
SET.
Definition at line 78 of file DTConfigBti.h.
References m_set.
Referenced by DTBtiChip::doLTS(), and print().
00078 { return m_set; }
void DTConfigBti::setDefaults | ( | const edm::ParameterSet & | ps | ) |
Set default parameters.
Definition at line 52 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, p, BitArray< N >::set(), and w.
Referenced by DTConfigBti().
00052 { 00053 00054 // Debug flag 00055 m_debug = ps.getUntrackedParameter<int>("Debug"); 00056 00057 // Max K param accepted 00058 m_kcut = ps.getParameter<int>("KMAX"); 00059 00060 // BTI angular acceptance in theta view 00061 m_kacctheta = ps.getParameter<int>("KACCTHETA"); 00062 00063 // Time indep. K equation suppression (XON) 00064 m_xon = ps.getParameter<bool>("XON"); 00065 // LTS and SET for low trigger suppression 00066 m_lts = ps.getParameter<int>("LTS"); 00067 m_set = ps.getParameter<int>("SET"); 00068 // pattern acceptance AC1, AC2, ACH, ACL 00069 m_ac1 = ps.getParameter<int>("AC1"); 00070 m_ac2 = ps.getParameter<int>("AC2"); 00071 m_ach = ps.getParameter<int>("ACH"); 00072 m_acl = ps.getParameter<int>("ACL"); 00073 // redundant patterns flag RON 00074 m_ron = ps.getParameter<bool>("RON"); 00075 00076 // pattern masks 00077 for(int p=0; p<32; p++) 00078 { 00079 std::string label = "PTMS"; 00080 char patt0 = (p/10)+'0'; 00081 char patt1 = (p%10)+'0'; 00082 if ( patt0 != '0' ) 00083 label = label + patt0; 00084 label = label + patt1; 00085 00086 m_pattmask.set(p,ps.getParameter<int>(label)); 00087 } 00088 00089 // wire masks 00090 for(int w=0; w<9; w++) 00091 { 00092 std::string label = "WEN"; 00093 char wname = w+'0'; 00094 label = label + wname; 00095 00096 m_wiremask.set(w,ps.getParameter<int>(label)); 00097 } 00098 00099 // angular window limits for traco 00100 m_ll = ps.getParameter<int>("LL"); 00101 m_lh = ps.getParameter<int>("LH"); 00102 m_cl = ps.getParameter<int>("CL"); 00103 m_ch = ps.getParameter<int>("CH"); 00104 m_rl = ps.getParameter<int>("RL"); 00105 m_rh = ps.getParameter<int>("RH"); 00106 // drift velocity parameter 4ST3 00107 m_4st3 = ps.getParameter<int>("ST43"); 00108 // drift velocity parameter 4RE3 00109 m_4re3 = ps.getParameter<int>("RE43"); 00110 // DEAD parameter 00111 m_dead = ps.getParameter<int>("DEAD"); 00112 }
float DTConfigBti::ST | ( | ) | const [inline] |
Max drift time in 12.5 ns steps.
Definition at line 62 of file DTConfigBti.h.
References RE43(), and ST43().
Referenced by DTBtiChip::computeEqs(), DTBtiChip::DTBtiChip(), DTConfigManager::getBXOffset(), DTBtiHit::isInsideReg(), DTBtiCard::localDirection(), and DTBtiCard::localPosition().
int DTConfigBti::ST43 | ( | ) | const [inline] |
ST and RE parameters for drift velocity.
Definition at line 120 of file DTConfigBti.h.
References m_4st3.
Referenced by print(), DTBtiChip::setSnap(), and ST().
00120 { return m_4st3; }
Wire mask flag.
Definition at line 99 of file DTConfigBti.h.
References BitArray< N >::element(), and m_wiremask.
Referenced by DTBtiChip::init(), DTBtiChip::init_clock(), and print().
00099 { return m_wiremask.element(wire-1); }
bool DTConfigBti::XON | ( | ) | const [inline] |
X-patterns flag XON: activates tracks passing on the same side of 3 wires.
Definition at line 72 of file DTConfigBti.h.
References m_xon.
Referenced by DTBtiChip::keepTrigPatt(), and print().
00072 { return m_xon; }
unsigned short int DTConfigBti::m_4re3 [private] |
unsigned short int DTConfigBti::m_4st3 [private] |
unsigned short int DTConfigBti::m_ac1 [private] |
unsigned short int DTConfigBti::m_ac2 [private] |
unsigned short int DTConfigBti::m_ach [private] |
unsigned short int DTConfigBti::m_acl [private] |
unsigned short int DTConfigBti::m_ch [private] |
unsigned short int DTConfigBti::m_cl [private] |
unsigned short int DTConfigBti::m_dead [private] |
unsigned short int DTConfigBti::m_debug [private] |
unsigned short int DTConfigBti::m_kacctheta [private] |
unsigned short int DTConfigBti::m_kcut [private] |
unsigned short int DTConfigBti::m_lh [private] |
unsigned short int DTConfigBti::m_ll [private] |
unsigned short int DTConfigBti::m_lts [private] |
BitArray<32> DTConfigBti::m_pattmask [private] |
unsigned short int DTConfigBti::m_rh [private] |
unsigned short int DTConfigBti::m_rl [private] |
bool DTConfigBti::m_ron [private] |
unsigned short int DTConfigBti::m_set [private] |
BitArray<9> DTConfigBti::m_wiremask [private] |
bool DTConfigBti::m_xon [private] |