22 if (!theConfig.
exists(
"configXMLFile"))
26 edm::LogVerbatim(
"OMTFReconstruction") <<
"L1TMuonOverlapPhase1ParamsESProducer - reading config from file: " <<
fName 29 if (!theConfig.
exists(
"patternsXMLFiles"))
32 for (
const auto&
it : theConfig.
getParameter<std::vector<edm::ParameterSet> >(
"patternsXMLFiles")) {
36 <<
"L1TMuonOverlapPhase1ParamsESProducer - reading patterns from file: " <<
fName << std::endl;
71 std::vector<l1t::LUT*> luts = {&chargeLUT, &
etaLUT, &
ptLUT, &meanDistPhiLUT, &selDistPhiShiftLUT, &pdfLUT};
72 std::vector<std::string>
types = {
"iCharge",
"iEta",
"iPt",
"meanDistPhi",
"selDistPhiShift",
"pdf"};
92 return std::make_shared<L1TMuonOverlapParams>(
params);
Log< level::Info, true > LogVerbatim
auto setWhatProduced(T *iThis, const es::Label &iLabel={})
T getParameter(std::string const &) const
void setMeanDistPhiLUT(const l1t::LUT &lut)
const ap_uint< BITSPT > ptLUT[2251]
void setPatternsFiles(std::vector< std::string > &fNames)
void setEtaLUT(const l1t::LUT &lut)
unsigned int getPatternsVersion() const
bool readConnectionsXML(const XMLConfigReader &aReader)
Read Connections from single XML file.
bool exists(std::string const ¶meterName) const
checks if a parameter exists
void setChargeLUT(const l1t::LUT &lut)
void readLUTs(std::vector< l1t::LUT *> luts, const L1TMuonOverlapParams &aConfig, const std::vector< std::string > &types)
ReturnType produceParams(const L1TMuonOverlapParamsRcd &)
L1TMuonOverlapPhase1ParamsESProducer(const edm::ParameterSet &)
void setPtLUT(const l1t::LUT &lut)
unsigned fwVersion() const
void readConfig(const std::string fName)
#define DEFINE_FWK_EVENTSETUP_MODULE(type)
void setConfigFile(const std::string &fName)
bool readPatternsXML(XMLConfigReader &aReader)
std::shared_ptr< L1TMuonOverlapParams > ReturnType
~L1TMuonOverlapPhase1ParamsESProducer() override
void setFwVersion(unsigned fwVersion)
void setDistPhiShiftLUT(const l1t::LUT &lut)
void setPdfLUT(const l1t::LUT &lut)
L1TMuonOverlapParams params