13 #include "boost/shared_ptr.hpp"
38 typedef std::map<short, short, std::less<short> >
LUT;
46 int load_ext(std::vector<L1TMuonBarrelParams::LUTParams::extLUT>&,
unsigned short int,
unsigned short int );
48 typedef boost::shared_ptr<L1TMuonBarrelParams>
ReturnType;
92 bool configFromXML = iConfig.
getParameter<
bool>(
"configFromXML");
95 std::map<std::string, int> allInts;
96 std::map<std::string, bool> allBools;
97 std::map<std::string, std::vector<std::string> > allMasks;
99 allInts[
"PT_Assignment_nbits_Phi"] = iConfig.
getParameter<
int>(
"PT_Assignment_nbits_Phi");
100 allInts[
"PT_Assignment_nbits_PhiB"] = iConfig.
getParameter<
int>(
"PT_Assignment_nbits_PhiB");
101 allInts[
"PHI_Assignment_nbits_Phi"] = iConfig.
getParameter<
int>(
"PHI_Assignment_nbits_Phi");
102 allInts[
"PHI_Assignment_nbits_PhiB"] = iConfig.
getParameter<
int>(
"PHI_Assignment_nbits_PhiB");
103 allInts[
"Extrapolation_nbits_Phi"] = iConfig.
getParameter<
int>(
"Extrapolation_nbits_Phi");
104 allInts[
"Extrapolation_nbits_PhiB"] = iConfig.
getParameter<
int>(
"Extrapolation_nbits_PhiB");
105 allInts[
"BX_min"] = iConfig.
getParameter<
int>(
"BX_min");
106 allInts[
"BX_max"] = iConfig.
getParameter<
int>(
"BX_max");
107 allInts[
"Extrapolation_Filter"] = iConfig.
getParameter<
int>(
"Extrapolation_Filter");
108 allInts[
"OutOfTime_Filter_Window"] = iConfig.
getParameter<
int>(
"OutOfTime_Filter_Window");
109 allBools[
"OutOfTime_Filter"] = iConfig.
getParameter<
bool>(
"OutOfTime_Filter");
110 allBools[
"Open_LUTs"] = iConfig.
getParameter<
bool>(
"Open_LUTs");
111 allBools[
"EtaTrackFinder"] = iConfig.
getParameter<
bool>(
"EtaTrackFinder");
112 allBools[
"Extrapolation_21"] = iConfig.
getParameter<
bool>(
"Extrapolation_21");
113 allBools[
"configFromXML"] = iConfig.
getParameter<
bool>(
"configFromXML");
114 allBools[
"DisableNewAlgo"] = iConfig.
getParameter<
bool>(
"DisableNewAlgo");
116 allMasks[
"mask_phtf_st1"] = iConfig.
getParameter< std::vector <string> >(
"mask_phtf_st1");
117 allMasks[
"mask_phtf_st2"] = iConfig.
getParameter< std::vector <string> >(
"mask_phtf_st2");
118 allMasks[
"mask_phtf_st3"] = iConfig.
getParameter< std::vector <string> >(
"mask_phtf_st3");
119 allMasks[
"mask_phtf_st4"] = iConfig.
getParameter< std::vector <string> >(
"mask_phtf_st4");
121 allMasks[
"mask_ettf_st1"] = iConfig.
getParameter< std::vector <string> >(
"mask_ettf_st1");
122 allMasks[
"mask_ettf_st2"] = iConfig.
getParameter< std::vector <string> >(
"mask_ettf_st2");
123 allMasks[
"mask_ettf_st3"] = iConfig.
getParameter< std::vector <string> >(
"mask_ettf_st3");
236 cout<<
"Configuring BMTF Emulator from xml files.\n";
703 using namespace edm::es;
704 boost::shared_ptr<L1TMuonBarrelParams> pBMTFParams;
~L1TMuonBarrelParamsESProducer()
T getParameter(std::string const &) const
void configFromDB(l1t::TrigSystem &trgSys)
int load_phi(std::vector< LUT > &, unsigned short int, unsigned short int, std::string)
void setWhatProduced(T *iThis, const es::Label &iLabel=es::Label())
void configureSystemFromFiles(const std::string &hwCfgFile, const std::string &topCfgFile, const std::string &key)
L1TMuonBarrelParamsESProducer(const edm::ParameterSet &)
boost::shared_ptr< L1TMuonBarrelParams > ReturnType
int load_pt(std::vector< LUT > &, std::vector< int > &, unsigned short int, std::string)
#define DEFINE_FWK_EVENTSETUP_MODULE(type)
L1TMuonBarrelParamsHelper m_params_helper
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)
ReturnType produce(const L1TMuonBarrelParamsRcd &)
std::string fullPath() const
std::vector< unsigned short int > LUT
int load_ext(std::vector< L1TMuonBarrelParams::LUTParams::extLUT > &, unsigned short int, unsigned short int)