#include <L1TriggerConfig/DTTPGConfig/interface/DTConfigTraco.h>
Public Member Functions | |
int | BendingAngleCut () const |
Bending angle cut for all stations and triggers : KPRGCOM. | |
int | BTIC () const |
BTIC traco parameter: must be equal to Btis ST parameter. | |
int | DD () const |
DD traco parameter: this is fixed. | |
int | debug () const |
Debug flag. | |
DTConfigTraco () | |
Constructor. | |
DTConfigTraco (const edm::ParameterSet &ps) | |
Constructor. | |
int | IBTIOFF () const |
IBTIOFF traco parameter. | |
int | KRAD () const |
KRAD traco parameter. | |
int | LVALIDIFH () const |
Flag for Low validation parameter. | |
int | prefHtrig (int i) const |
Preference to HTRIG on first/second tracks: F(S)HTPRF. | |
int | prefInner (int i) const |
Preference to inner on first/second tracks: F(S)SLMSK. | |
void | print () const |
Print the setup. | |
void | setDefaults (const edm::ParameterSet &ps) |
Set default parameters. | |
int | singleHflag (int i) const |
Single HTRIG enabling on first/second tracks F(S)HTMSK. | |
int | singleLenab (int i) const |
Single LTRIG accept enabling on first/second tracks LTF. | |
int | singleLflag (int i) const |
Single LTRIG enabling on first/second tracks: F(S)LTMSK. | |
int | sortKascend (int i) const |
Ascend. order for K sorting first/second tracks: F(S)HISM. | |
int | TcBxLts () const |
Suppr. of LTRIG in 4 BX before HTRIG: LTS. | |
int | TcKToll (int i) const |
K tollerance for correlation in TRACO: F(S)PRGCOMP. | |
int | TcReuse (int i) const |
Recycling of TRACO cand. in inner/outer SL : REUSEI/REUSEO. | |
int | usedBti (int bti) const |
Connected bti in traco: bti mask. | |
~DTConfigTraco () | |
Destructor. | |
Static Public Attributes | |
static const int | NMAXCAND |
Costant: maximum number of TRACO output candidates to TS. | |
static const int | RESOLPSI = 512 |
Costants: esolution for psi and DeltaPsiR (phi_B). | |
static const int | RESOLPSIR = 4096 |
Costant: resulution for psiR (phi). | |
Private Attributes | |
unsigned short int | m_btic |
unsigned short int | m_dd |
unsigned short int | m_debug |
unsigned short int | m_fhism |
unsigned short int | m_fhtmsk |
unsigned short int | m_fhtprf |
unsigned short int | m_fltmsk |
unsigned short int | m_fprgcomp |
unsigned short int | m_fslmsk |
unsigned short int | m_ibtioff |
unsigned short int | m_kprgcom |
unsigned short int | m_krad |
unsigned short int | m_ltf |
unsigned short int | m_lts |
unsigned short int | m_lvalidifh |
unsigned short int | m_reusei |
unsigned short int | m_reuseo |
unsigned short int | m_shism |
unsigned short int | m_shtmsk |
unsigned short int | m_shtprf |
unsigned short int | m_sltmsk |
unsigned short int | m_sprgcomp |
unsigned short int | m_sslmsk |
BitArray< 16 > | m_trgenb |
Definition at line 39 of file DTConfigTraco.h.
DTConfigTraco::DTConfigTraco | ( | const edm::ParameterSet & | ps | ) |
Constructor.
Definition at line 36 of file DTConfigTraco.cc.
References setDefaults().
00036 { 00037 00038 setDefaults(ps); 00039 00040 }
DTConfigTraco::DTConfigTraco | ( | ) | [inline] |
DTConfigTraco::~DTConfigTraco | ( | ) |
int DTConfigTraco::BendingAngleCut | ( | ) | const [inline] |
Bending angle cut for all stations and triggers : KPRGCOM.
Definition at line 146 of file DTConfigTraco.h.
References m_kprgcom.
Referenced by DTTracoChip::insideAngWindow(), and print().
00146 { return m_kprgcom; }
int DTConfigTraco::BTIC | ( | ) | const [inline] |
BTIC traco parameter: must be equal to Btis ST parameter.
Definition at line 71 of file DTConfigTraco.h.
References m_btic.
Referenced by DTTracoChip::DTTracoChip(), print(), and DTTracoChip::setTracoAcceptances().
00071 { return m_btic;}
int DTConfigTraco::DD | ( | ) | const [inline] |
int DTConfigTraco::debug | ( | ) | const [inline] |
Debug flag.
Definition at line 65 of file DTConfigTraco.h.
References m_debug.
Referenced by DTTracoChip::add_btiT(), DTTracoChip::bestCand(), print(), DTTracoChip::run(), DTTracoChip::storeCorr(), and DTTracoChip::storeUncorr().
00065 { return m_debug; }
int DTConfigTraco::IBTIOFF | ( | ) | const [inline] |
int DTConfigTraco::KRAD | ( | ) | const [inline] |
KRAD traco parameter.
Definition at line 68 of file DTConfigTraco.h.
References m_krad.
Referenced by DTTracoChip::DTTracoChip(), and print().
00068 { return m_krad;}
int DTConfigTraco::LVALIDIFH | ( | ) | const [inline] |
Flag for Low validation parameter.
Definition at line 149 of file DTConfigTraco.h.
References m_lvalidifh.
Referenced by print(), and DTTracoChip::storeUncorr().
00149 { return m_lvalidifh;}
Preference to HTRIG on first/second tracks: F(S)HTPRF.
Definition at line 109 of file DTConfigTraco.h.
References m_fhtprf, and m_shtprf.
Referenced by DTTracoChip::bestCand(), and print().
Preference to inner on first/second tracks: F(S)SLMSK.
Definition at line 101 of file DTConfigTraco.h.
References m_fslmsk, and m_sslmsk.
Referenced by print(), DTTracoChip::setPV(), and DTTracoChip::storeUncorr().
Print the setup.
Definition at line 124 of file DTConfigTraco.cc.
References b, BendingAngleCut(), BTIC(), GenMuonPlsPt100GeV_cfg::cout, DD(), debug(), lat::endl(), IBTIOFF(), KRAD(), LVALIDIFH(), prefHtrig(), prefInner(), singleHflag(), singleLenab(), singleLflag(), sortKascend(), TcBxLts(), TcKToll(), TcReuse(), and usedBti().
00124 { 00125 std::cout << "******************************************************************************" << std::endl; 00126 std::cout << "* DTTrigger configuration : TRACO chips *" << std::endl; 00127 std::cout << "******************************************************************************" << std::endl; 00128 std::cout << "* *" << std::endl; 00129 std::cout << "Debug flag : " << debug() << std::endl; 00130 std::cout << "KRAD traco parameter : " << KRAD() << std::endl; 00131 std::cout << "BTIC traco parameter : " << BTIC() << std::endl; 00132 std::cout << "DD traco parameter : " << DD() << std::endl; 00133 std::cout << "REUSEI, REUSEO : " << TcReuse(0) << ", " << TcReuse(1) << std::endl; 00134 std::cout << "FHTMSK, SHTMSK : " << singleHflag(0) << ", " << singleHflag(1) << std::endl; 00135 std::cout << "FLTMSK, SLTMSK: " << singleLflag(0) << ", " << singleLflag(1) << std::endl; 00136 std::cout << "FSLMSK, SSLMSK : " << prefInner(0) << ", " << prefInner(1) << std::endl; 00137 std::cout << "FHTPRF, SHTPRF : " << prefHtrig(0) << ", " << prefHtrig(1) << std::endl; 00138 std::cout << "FHISM, SHISM : " << sortKascend(0) << ", " << sortKascend(1) << std::endl; 00139 std::cout << "FPRGCOMP, SPRGCOMP : " << TcKToll(0) << ", " << TcKToll(1) << std::endl; 00140 std::cout << "LTS : " << TcBxLts() << std::endl; 00141 std::cout << "LTF : " << singleLenab(0) << std::endl; 00142 std::cout << "Connected bti in traco - bti mask : "; 00143 for(int b=1; b<=16; b++) 00144 std::cout << usedBti(b) << " "; 00145 std::cout << std::endl; 00146 std::cout << "IBTIOFF : " << IBTIOFF() << std::endl; 00147 std::cout << "bending angle cut : " << BendingAngleCut() << std::endl; 00148 std::cout << "flag for Low validation parameter : " << LVALIDIFH() << std::endl; 00149 std::cout << "******************************************************************************" << std::endl; 00150 00151 }
void DTConfigTraco::setDefaults | ( | const edm::ParameterSet & | ps | ) |
Set default parameters.
Definition at line 52 of file DTConfigTraco.cc.
References b, edm::ParameterSet::getParameter(), edm::ParameterSet::getUntrackedParameter(), label, m_btic, m_dd, m_debug, m_fhism, m_fhtmsk, m_fhtprf, m_fltmsk, m_fprgcomp, m_fslmsk, m_ibtioff, m_kprgcom, m_krad, m_ltf, m_lts, m_lvalidifh, m_reusei, m_reuseo, m_shism, m_shtmsk, m_shtprf, m_sltmsk, m_sprgcomp, m_sslmsk, m_trgenb, p1, and BitArray< N >::set().
Referenced by DTConfigTraco().
00052 { 00053 00054 // Debug flag 00055 m_debug = ps.getUntrackedParameter<int>("Debug"); 00056 00057 // KRAD traco parameter 00058 m_krad = ps.getParameter<int>("KRAD"); 00059 00060 // BTIC traco parameter 00061 m_btic = ps.getParameter<int>("BTIC"); 00062 00063 // DD traco parameter: this is fixed 00064 m_dd = ps.getParameter<int>("DD"); 00065 00066 // recycling of TRACO cand. in inner/outer SL : REUSEI/REUSEO 00067 m_reusei = ps.getParameter<int>("REUSEI"); 00068 m_reuseo = ps.getParameter<int>("REUSEO"); 00069 00070 // single HTRIG enabling on first/second tracks F(S)HTMSK 00071 m_fhtmsk = ps.getParameter<int>("FHTMSK"); 00072 m_shtmsk = ps.getParameter<int>("SHTMSK"); 00073 00074 // single LTRIG enabling on first/second tracks: F(S)LTMSK 00075 m_fltmsk = ps.getParameter<int>("FLTMSK"); 00076 m_sltmsk = ps.getParameter<int>("SLTMSK"); 00077 00078 // preference to inner on first/second tracks: F(S)SLMSK 00079 m_fslmsk = ps.getParameter<int>("FSLMSK"); 00080 m_sslmsk = ps.getParameter<int>("SSLMSK"); 00081 00082 // preference to HTRIG on first/second tracks: F(S)HTPRF 00083 m_fhtprf = ps.getParameter<int>("FHTPRF"); 00084 m_shtprf = ps.getParameter<int>("SHTPRF"); 00085 00086 // ascend. order for K sorting first/second tracks: F(S)HISM 00087 m_fhism = ps.getParameter<int>("FHISM"); 00088 m_shism = ps.getParameter<int>("SHISM"); 00089 00090 // K tollerance for correlation in TRACO: F(S)PRGCOMP 00091 m_fprgcomp = ps.getParameter<int>("FPRGCOMP"); 00092 m_sprgcomp = ps.getParameter<int>("SPRGCOMP"); 00093 00094 // suppr. of LTRIG in 4 BX before HTRIG: LTS 00095 m_lts = ps.getParameter<int>("LTS"); 00096 00097 // single LTRIG accept enabling on first/second tracks LTF 00098 m_ltf = ps.getParameter<int>("LTF"); 00099 00100 // Connected bti in traco: bti mask 00101 for(int b=0; b<16; b++) 00102 { 00103 std::string label = "TRGENB"; 00104 char p0 = (b/10)+'0'; 00105 char p1 = (b%10)+'0'; 00106 if ( p0 != '0' ) 00107 label = label + p0; 00108 label = label + p1; 00109 00110 m_trgenb.set(b,ps.getParameter<int>(label)); 00111 } 00112 00113 // IBTIOFF traco parameter 00114 m_ibtioff = ps.getParameter<int>("IBTIOFF"); 00115 00116 // bending angle cut for all stations and triggers : KPRGCOM 00117 m_kprgcom = ps.getParameter<int>("KPRGCOM"); 00118 00119 // flag for Low validation parameter 00120 m_lvalidifh = ps.getParameter<int>("LVALIDIFH"); 00121 }
Single LTRIG accept enabling on first/second tracks LTF.
Definition at line 137 of file DTConfigTraco.h.
References m_ltf.
Referenced by print(), and DTTracoChip::storeUncorr().
00137 { return m_ltf; }
Single LTRIG enabling on first/second tracks: F(S)LTMSK.
Definition at line 93 of file DTConfigTraco.h.
References m_fltmsk, and m_sltmsk.
Referenced by print(), and DTTracoChip::storeUncorr().
Ascend. order for K sorting first/second tracks: F(S)HISM.
Definition at line 117 of file DTConfigTraco.h.
References m_fhism, and m_shism.
Referenced by DTTracoChip::bestCand(), and print().
int DTConfigTraco::TcBxLts | ( | ) | const [inline] |
Suppr. of LTRIG in 4 BX before HTRIG: LTS.
Definition at line 134 of file DTConfigTraco.h.
References m_lts.
Referenced by print(), and DTTracoChip::storeCorr().
00134 { return m_lts; }
K tollerance for correlation in TRACO: F(S)PRGCOMP.
Definition at line 126 of file DTConfigTraco.h.
References m_fprgcomp, and m_sprgcomp.
Referenced by print(), and DTTracoChip::storeCorr().
00126 { 00127 if(i==0) 00128 return m_fprgcomp; 00129 else 00130 return m_sprgcomp; 00131 }
Recycling of TRACO cand. in inner/outer SL : REUSEI/REUSEO.
Definition at line 77 of file DTConfigTraco.h.
References m_reusei, and m_reuseo.
Referenced by print(), and DTTracoChip::storeUncorr().
Connected bti in traco: bti mask.
Definition at line 140 of file DTConfigTraco.h.
References BitArray< N >::element(), and m_trgenb.
Referenced by print().
unsigned short int DTConfigTraco::m_btic [private] |
unsigned short int DTConfigTraco::m_dd [private] |
unsigned short int DTConfigTraco::m_debug [private] |
unsigned short int DTConfigTraco::m_fhism [private] |
unsigned short int DTConfigTraco::m_fhtmsk [private] |
unsigned short int DTConfigTraco::m_fhtprf [private] |
unsigned short int DTConfigTraco::m_fltmsk [private] |
unsigned short int DTConfigTraco::m_fprgcomp [private] |
unsigned short int DTConfigTraco::m_fslmsk [private] |
unsigned short int DTConfigTraco::m_ibtioff [private] |
unsigned short int DTConfigTraco::m_kprgcom [private] |
unsigned short int DTConfigTraco::m_krad [private] |
unsigned short int DTConfigTraco::m_ltf [private] |
unsigned short int DTConfigTraco::m_lts [private] |
unsigned short int DTConfigTraco::m_lvalidifh [private] |
unsigned short int DTConfigTraco::m_reusei [private] |
unsigned short int DTConfigTraco::m_reuseo [private] |
unsigned short int DTConfigTraco::m_shism [private] |
unsigned short int DTConfigTraco::m_shtmsk [private] |
unsigned short int DTConfigTraco::m_shtprf [private] |
unsigned short int DTConfigTraco::m_sltmsk [private] |
unsigned short int DTConfigTraco::m_sprgcomp [private] |
unsigned short int DTConfigTraco::m_sslmsk [private] |
BitArray<16> DTConfigTraco::m_trgenb [private] |
const int DTConfigTraco::NMAXCAND [static] |
Costant: maximum number of TRACO output candidates to TS.
Definition at line 48 of file DTConfigTraco.h.
const int DTConfigTraco::RESOLPSI = 512 [static] |
Costants: esolution for psi and DeltaPsiR (phi_B).
Definition at line 44 of file DTConfigTraco.h.
Referenced by DTTracoChip::calculateAngles(), and CSCTFDTReceiver::process().
const int DTConfigTraco::RESOLPSIR = 4096 [static] |
Costant: resulution for psiR (phi).
Definition at line 46 of file DTConfigTraco.h.
Referenced by DTTracoChip::calculateAngles(), and CSCTFDTReceiver::process().