CMS 3D CMS Logo

L1TMuonBarrelParamsHelper.h
Go to the documentation of this file.
1 #ifndef L1TMUON_BARREL_PARAMS_HELPER_h
2 #define L1TMUON_BARREL_PARAMS_HELPER_h
3 
4 // system include files
5 #include <memory>
6 
7 // user include files
12 
16 
20 
24 
27 
28 typedef std::map<short, short, std::less<short> > LUT;
29 
31 public:
34 
36 
37  void configFromPy(std::map<std::string, int>& allInts,
38  std::map<std::string, bool>& allBools,
39  std::map<std::string, std::vector<std::string> > allMasks,
40  unsigned int fwVersion,
41  const std::string& AssLUTpath);
42  void configFromDB(l1t::TriggerSystem& trgSys);
43 
44  std::string AssLUTPath() const { return !pnodes_[CONFIG].sparams_.empty() ? pnodes_[CONFIG].sparams_[0] : ""; }
45  void setAssLUTPath(std::string path) { pnodes_[CONFIG].sparams_.push_back(path); }
46 
47  void setpta_lut(std::vector<LUT> ptalut) { lutparams_.pta_lut_ = ptalut; };
48  std::vector<LUT> pta_lut() const { return lutparams_.pta_lut_; };
49  void setpta_threshold(std::vector<int> ptathresh) { lutparams_.pta_threshold_ = ptathresh; };
50  std::vector<int> pta_threshold() const { return lutparams_.pta_threshold_; };
51 
52  void setphi_lut(std::vector<LUT> philut) { lutparams_.phi_lut_ = philut; };
53  std::vector<LUT> phi_lut() const { return lutparams_.phi_lut_; };
54 
55  void setext_lut(std::vector<LUTParams::extLUT> extlut) { lutparams_.ext_lut_ = extlut; };
56  std::vector<LUTParams::extLUT> ext_lut() const { return lutparams_.ext_lut_; };
57 
58  void setqp_lut(qpLUT qplut) { lutparams_.qp_lut_ = qplut; };
59  qpLUT qp_lut() const { return lutparams_.qp_lut_; };
60 
62  etaLUT eta_lut() const { return lutparams_.eta_lut_; };
63 
70  void set_BX_min(int par1) { pnodes_[CONFIG].iparams_[BX_min] = par1; }
71  void set_BX_max(int par1) { pnodes_[CONFIG].iparams_[BX_max] = par1; }
75  void set_Open_LUTs(bool par1) { pnodes_[CONFIG].iparams_[Open_LUTs] = par1; }
79 
86  int get_BX_min() const { return pnodes_[CONFIG].iparams_[BX_min]; }
87  int get_BX_max() const { return pnodes_[CONFIG].iparams_[BX_max]; }
88  int get_Extrapolation_Filter() const { return pnodes_[CONFIG].iparams_[Extrapolation_Filter]; }
90 
91  bool get_OutOfTime_Filter() const { return pnodes_[CONFIG].iparams_[OutOfTime_Filter]; }
92  bool get_Open_LUTs() const { return pnodes_[CONFIG].iparams_[Open_LUTs]; }
93  bool get_EtaTrackFinder() const { return pnodes_[CONFIG].iparams_[EtaTrackFinder]; }
94  bool get_Extrapolation_21() const { return pnodes_[CONFIG].iparams_[Extrapolation_21]; }
95  bool get_DisableNewAlgo() const { return pnodes_[CONFIG].iparams_[DisableNewAlgo]; }
96 
97  // FW version
98  unsigned fwVersion() const { return fwVersion_; }
100 
101  // print parameters to stream:
102  void print(std::ostream&) const;
104 
105  // L1MuDTExtLut l1mudttfextlut;
108 
109 private:
110  int load_pt(std::vector<LUT>&, std::vector<int>&, unsigned short int, std::string);
111  int load_phi(std::vector<LUT>&, unsigned short int, unsigned short int, std::string);
112  int load_ext(std::vector<L1TMuonBarrelParams::LUTParams::extLUT>&, unsigned short int, unsigned short int);
113 };
114 
115 #endif
L1TMuonBarrelParams::CONFIG
Definition: L1TMuonBarrelParams.h:43
L1TMuonBarrelParamsHelper::load_phi
int load_phi(std::vector< LUT > &, unsigned short int, unsigned short int, std::string)
Definition: L1TMuonBarrelParamsHelper.cc:453
L1TMuonBarrelParamsHelper::set_BX_min
void set_BX_min(int par1)
Definition: L1TMuonBarrelParamsHelper.h:70
L1TMuonBarrelParamsHelper::get_BX_max
int get_BX_max() const
Definition: L1TMuonBarrelParamsHelper.h:87
L1TMuonBarrelParams::Extrapolation_nbits_PhiB
Definition: L1TMuonBarrelParams.h:51
L1TMuonBarrelParamsHelper::set_BX_max
void set_BX_max(int par1)
Definition: L1TMuonBarrelParamsHelper.h:71
L1TMuonBarrelParamsHelper::fwVersion
unsigned fwVersion() const
Definition: L1TMuonBarrelParamsHelper.h:98
L1TMuonBarrelParamsHelper::setpta_lut
void setpta_lut(std::vector< LUT > ptalut)
Definition: L1TMuonBarrelParamsHelper.h:47
L1TMuonBarrelParamsHelper
Definition: L1TMuonBarrelParamsHelper.h:30
L1TMuonBarrelParamsHelper::get_PT_Assignment_nbits_Phi
int get_PT_Assignment_nbits_Phi() const
Definition: L1TMuonBarrelParamsHelper.h:80
L1TMuonBarrelParamsHelper::setphi_lut
void setphi_lut(std::vector< LUT > philut)
Definition: L1TMuonBarrelParamsHelper.h:52
L1TMuonBarrelParams::OutOfTime_Filter
Definition: L1TMuonBarrelParams.h:56
L1TMuonBarrelParamsHelper::set_DisableNewAlgo
void set_DisableNewAlgo(bool par1)
Definition: L1TMuonBarrelParamsHelper.h:78
L1TMuonBarrelParams::lutparams_
LUTParams lutparams_
Definition: L1TMuonBarrelParams.h:110
L1TMuonBarrelParamsHelper::l1mudttfqualplut
L1MuBMTQualPatternLut l1mudttfqualplut
friend std::ostream& operator<<(std::ostream& o, const L1TMuonBarrelParams & p) { p....
Definition: L1TMuonBarrelParamsHelper.h:106
L1TMuonBarrelParams::Extrapolation_Filter
Definition: L1TMuonBarrelParams.h:54
ESHandle.h
L1TMuonBarrelParams::Open_LUTs
Definition: L1TMuonBarrelParams.h:57
L1TMuonBarrelParamsHelper::get_Open_LUTs
bool get_Open_LUTs() const
Definition: L1TMuonBarrelParamsHelper.h:92
LUT
std::map< short, short, std::less< short > > LUT
Definition: L1TMuonBarrelParamsHelper.h:28
L1TMuonBarrelParamsHelper::eta_lut
etaLUT eta_lut() const
Definition: L1TMuonBarrelParamsHelper.h:62
L1TMuonBarrelParams.h
L1TMuonBarrelParamsHelper::phi_lut
std::vector< LUT > phi_lut() const
Definition: L1TMuonBarrelParamsHelper.h:53
L1TMuonBarrelParams::etaLUT
std::map< short, L1MuDTEtaPattern, std::less< short > > etaLUT
Eta Pattern LUT.
Definition: L1TMuonBarrelParams.h:78
L1TMuonBarrelParamsHelper::set_PT_Assignment_nbits_Phi
void set_PT_Assignment_nbits_Phi(int par1)
Definition: L1TMuonBarrelParamsHelper.h:64
L1TMuonBarrelParamsHelper::set_Open_LUTs
void set_Open_LUTs(bool par1)
Definition: L1TMuonBarrelParamsHelper.h:75
ESProducer.h
L1TMuonBarrelParams::PHI_Assignment_nbits_Phi
Definition: L1TMuonBarrelParams.h:48
L1TMuonBarrelParamsHelper::pta_threshold
std::vector< int > pta_threshold() const
Definition: L1TMuonBarrelParamsHelper.h:50
L1MuBMTEtaPatternLut
Definition: L1MuBMTEtaPatternLut.h:41
L1TMuonBarrelParamsHelper::qp_lut
qpLUT qp_lut() const
Definition: L1TMuonBarrelParamsHelper.h:59
L1TMuonBarrelParams::fwVersion_
unsigned fwVersion_
Definition: L1TMuonBarrelParams.h:104
L1TMuonBarrelParams::Extrapolation_nbits_Phi
Definition: L1TMuonBarrelParams.h:50
pfMETCorrectionType0_cfi.par1
par1
Definition: pfMETCorrectionType0_cfi.py:48
L1TMuonBarrelParamsHelper::ext_lut
std::vector< LUTParams::extLUT > ext_lut() const
Definition: L1TMuonBarrelParamsHelper.h:56
L1TMuonBarrelParamsHelper::L1TMuonBarrelParamsHelper
L1TMuonBarrelParamsHelper()
Definition: L1TMuonBarrelParamsHelper.h:32
L1TMuonBarrelParamsHelper::pta_lut
std::vector< LUT > pta_lut() const
Definition: L1TMuonBarrelParamsHelper.h:48
l1t::TriggerSystem
Definition: TriggerSystem.h:14
FileInPath.h
L1TMuonBarrelParamsHelper::AssLUTPath
std::string AssLUTPath() const
Definition: L1TMuonBarrelParamsHelper.h:44
L1TMuonBarrelParamsHelper::get_BX_min
int get_BX_min() const
Definition: L1TMuonBarrelParamsHelper.h:86
L1TMuonBarrelParamsHelper::setFwVersion
void setFwVersion(unsigned fwVersion)
Definition: L1TMuonBarrelParamsHelper.h:99
L1TMuonBarrelParamsHelper::set_OutOfTime_Filter
void set_OutOfTime_Filter(bool par1)
Definition: L1TMuonBarrelParamsHelper.h:74
L1TMuonBarrelParamsHelper::set_Extrapolation_nbits_PhiB
void set_Extrapolation_nbits_PhiB(int par1)
Definition: L1TMuonBarrelParamsHelper.h:69
L1TMuonBarrelParamsHelper::print
void print(std::ostream &) const
Definition: L1TMuonBarrelParamsHelper.cc:3
L1TMuonBarrelParamsHelper::set_Extrapolation_nbits_Phi
void set_Extrapolation_nbits_Phi(int par1)
Definition: L1TMuonBarrelParamsHelper.h:68
L1TMuonBarrelParamsHelper::setpta_threshold
void setpta_threshold(std::vector< int > ptathresh)
Definition: L1TMuonBarrelParamsHelper.h:49
L1TMuonBarrelParamsHelper::get_OutOfTime_Filter
bool get_OutOfTime_Filter() const
Definition: L1TMuonBarrelParamsHelper.h:91
L1TMuonBarrelParamsHelper::set_PT_Assignment_nbits_PhiB
void set_PT_Assignment_nbits_PhiB(int par1)
Definition: L1TMuonBarrelParamsHelper.h:65
L1TMuonBarrelParamsHelper::setAssLUTPath
void setAssLUTPath(std::string path)
Definition: L1TMuonBarrelParamsHelper.h:45
L1TMuonBarrelParamsHelper::get_PHI_Assignment_nbits_PhiB
int get_PHI_Assignment_nbits_PhiB() const
Definition: L1TMuonBarrelParamsHelper.h:83
L1TMuonBarrelParamsHelper::get_Extrapolation_21
bool get_Extrapolation_21() const
Definition: L1TMuonBarrelParamsHelper.h:94
L1TMuonBarrelParams::pnodes_
std::vector< Node > pnodes_
Definition: L1TMuonBarrelParams.h:106
L1TMuonBarrelParamsRcd.h
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
ESProducts.h
L1TMuonBarrelParams::LUTParams::qp_lut_
qpLUT qp_lut_
Definition: L1TMuonBarrelParams.h:85
L1TMuonBarrelParamsHelper::set_Extrapolation_21
void set_Extrapolation_21(bool par1)
Definition: L1TMuonBarrelParamsHelper.h:77
L1TMuonBarrelParams::Extrapolation_21
Definition: L1TMuonBarrelParams.h:59
L1TMuonBarrelParamsHelper::load_pt
int load_pt(std::vector< LUT > &, std::vector< int > &, unsigned short int, std::string)
if configDB
Definition: L1TMuonBarrelParamsHelper.cc:278
L1TMuonBarrelParamsHelper::set_Extrapolation_Filter
void set_Extrapolation_Filter(int par1)
Definition: L1TMuonBarrelParamsHelper.h:72
L1DTTrackFinderConfig_cff.extlut
extlut
Definition: L1DTTrackFinderConfig_cff.py:3
L1TMuonBarrelParams::LUTParams::eta_lut_
etaLUT eta_lut_
Definition: L1TMuonBarrelParams.h:86
L1TMuonBarrelParamsHelper::get_PHI_Assignment_nbits_Phi
int get_PHI_Assignment_nbits_Phi() const
Definition: L1TMuonBarrelParamsHelper.h:82
L1TMuonBarrelParamsHelper::set_PHI_Assignment_nbits_Phi
void set_PHI_Assignment_nbits_Phi(int par1)
Definition: L1TMuonBarrelParamsHelper.h:66
MicroGMTLUTFactories.h
L1TMuonBarrelParamsHelper::~L1TMuonBarrelParamsHelper
~L1TMuonBarrelParamsHelper()
Definition: L1TMuonBarrelParamsHelper.h:35
L1TMuonBarrelParamsHelper::l1mudttfetaplut
L1MuBMTEtaPatternLut l1mudttfetaplut
Definition: L1TMuonBarrelParamsHelper.h:107
L1TMuonBarrelParamsHelper::set_EtaTrackFinder
void set_EtaTrackFinder(bool par1)
Definition: L1TMuonBarrelParamsHelper.h:76
L1TMuonBarrelParamsHelper::configFromDB
void configFromDB(l1t::TriggerSystem &trgSys)
Definition: L1TMuonBarrelParamsHelper.cc:124
L1TMuonBarrelParamsHelper::setext_lut
void setext_lut(std::vector< LUTParams::extLUT > extlut)
Definition: L1TMuonBarrelParamsHelper.h:55
L1TMuonBarrelParamsHelper::set_OutOfTime_Filter_Window
void set_OutOfTime_Filter_Window(int par1)
Definition: L1TMuonBarrelParamsHelper.h:73
Mask.h
L1TMuonBarrelParams::PT_Assignment_nbits_PhiB
Definition: L1TMuonBarrelParams.h:47
L1TMuonBarrelParams::DisableNewAlgo
Definition: L1TMuonBarrelParams.h:60
L1TMuonBarrelParams::PT_Assignment_nbits_Phi
Definition: L1TMuonBarrelParams.h:46
L1TMuonBarrelParamsHelper::get_PT_Assignment_nbits_PhiB
int get_PT_Assignment_nbits_PhiB() const
Definition: L1TMuonBarrelParamsHelper.h:81
L1TMuonBarrelParamsHelper::get_EtaTrackFinder
bool get_EtaTrackFinder() const
Definition: L1TMuonBarrelParamsHelper.h:93
L1TMuonBarrelParams::LUTParams::phi_lut_
std::vector< LUT > phi_lut_
Definition: L1TMuonBarrelParams.h:83
DTTFBitArray.h
L1TMuonBarrelParamsHelper::set_PHI_Assignment_nbits_PhiB
void set_PHI_Assignment_nbits_PhiB(int par1)
Definition: L1TMuonBarrelParamsHelper.h:67
L1TMuonBarrelParamsHelper::get_Extrapolation_nbits_PhiB
int get_Extrapolation_nbits_PhiB() const
Definition: L1TMuonBarrelParamsHelper.h:85
L1TMuonBarrelParams::LUTParams::pta_lut_
std::vector< LUT > pta_lut_
Definition: L1TMuonBarrelParams.h:82
L1MuBMTQualPatternLut.h
ModuleFactory.h
L1TMuonBarrelParamsHelper::get_DisableNewAlgo
bool get_DisableNewAlgo() const
Definition: L1TMuonBarrelParamsHelper.h:95
L1TMuonBarrelParams::LUTParams::ext_lut_
std::vector< extLUT > ext_lut_
Definition: L1TMuonBarrelParams.h:95
L1TMuonBarrelParamsHelper::get_OutOfTime_Filter_Window
int get_OutOfTime_Filter_Window() const
Definition: L1TMuonBarrelParamsHelper.h:89
L1TMuonBarrelParamsHelper::seteta_lut
void seteta_lut(etaLUT eta_lut)
Definition: L1TMuonBarrelParamsHelper.h:61
L1TMuonBarrelParams::LUTParams::pta_threshold_
std::vector< int > pta_threshold_
Definition: L1TMuonBarrelParams.h:84
L1MuBMTEtaPatternLut.h
Parameter.h
L1TMuonBarrelParamsHelper::configFromPy
void configFromPy(std::map< std::string, int > &allInts, std::map< std::string, bool > &allBools, std::map< std::string, std::vector< std::string > > allMasks, unsigned int fwVersion, const std::string &AssLUTpath)
Definition: L1TMuonBarrelParamsHelper.cc:17
L1TMuonBarrelParams::BX_max
Definition: L1TMuonBarrelParams.h:53
L1TMuonBarrelParams::PHI_Assignment_nbits_PhiB
Definition: L1TMuonBarrelParams.h:49
TriggerSystem.h
L1MuBMTQualPatternLut
Definition: L1MuBMTQualPatternLut.h:42
L1TMuonBarrelParams::OutOfTime_Filter_Window
Definition: L1TMuonBarrelParams.h:55
L1TMuonBarrelParams
Definition: L1TMuonBarrelParams.h:23
L1TMuonBarrelParams::BX_min
Definition: L1TMuonBarrelParams.h:52
castor_dqm_sourceclient_file_cfg.path
path
Definition: castor_dqm_sourceclient_file_cfg.py:37
genParticles_cff.map
map
Definition: genParticles_cff.py:11
L1TMuonBarrelParamsHelper::get_Extrapolation_nbits_Phi
int get_Extrapolation_nbits_Phi() const
Definition: L1TMuonBarrelParamsHelper.h:84
L1TMuonBarrelParamsHelper::load_ext
int load_ext(std::vector< L1TMuonBarrelParams::LUTParams::extLUT > &, unsigned short int, unsigned short int)
Definition: L1TMuonBarrelParamsHelper.cc:538
L1DTTrackFinderConfig_cff.philut
philut
Definition: L1DTTrackFinderConfig_cff.py:9
L1TriggerLutFile.h
L1TMuonBarrelParams::qpLUT
std::map< LUTID, LUTCONT > qpLUT
Definition: L1TMuonBarrelParams.h:76
L1DTTrackFinderConfig_cff.ptalut
ptalut
Definition: L1DTTrackFinderConfig_cff.py:15
L1TMuonBarrelParams::EtaTrackFinder
Definition: L1TMuonBarrelParams.h:58
L1TMuonBarrelParamsHelper::setqp_lut
void setqp_lut(qpLUT qplut)
Definition: L1TMuonBarrelParamsHelper.h:58
L1TMuonBarrelParamsHelper::get_Extrapolation_Filter
int get_Extrapolation_Filter() const
Definition: L1TMuonBarrelParamsHelper.h:88