21 if (!theConfig.
exists(
"configXMLFile"))
25 edm::LogVerbatim(
"OMTFReconstruction") <<
"L1TMuonOverlapPhase1ParamsESProducer - reading config from file: " << fName
28 if (!theConfig.
exists(
"patternsXMLFiles"))
31 for (
const auto& it : theConfig.
getParameter<std::vector<edm::ParameterSet> >(
"patternsXMLFiles")) {
33 fileNames.push_back(fName);
35 <<
"L1TMuonOverlapPhase1ParamsESProducer - reading patterns from file: " << fName << std::endl;
70 std::vector<l1t::LUT*> luts = {&chargeLUT, &etaLUT, &ptLUT, &meanDistPhiLUT, &selDistPhiShiftLUT, &pdfLUT};
71 std::vector<std::string>
types = {
"iCharge",
"iEta",
"iPt",
"meanDistPhi",
"selDistPhiShift",
"pdf"};
89 using namespace edm::es;
91 return std::make_shared<L1TMuonOverlapParams>(
params);
Log< level::Info, true > LogVerbatim
auto setWhatProduced(T *iThis, const es::Label &iLabel={})
void setMeanDistPhiLUT(const l1t::LUT &lut)
void setPatternsFiles(std::vector< std::string > &fNames)
void setEtaLUT(const l1t::LUT &lut)
unsigned fwVersion() 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)
ReturnType produceParams(const L1TMuonOverlapParamsRcd &)
L1TMuonOverlapPhase1ParamsESProducer(const edm::ParameterSet &)
void setPtLUT(const l1t::LUT &lut)
void readConfig(const std::string fName)
unsigned int getPatternsVersion() const
void setConfigFile(const std::string &fName)
bool readPatternsXML(XMLConfigReader &aReader)
std::shared_ptr< L1TMuonOverlapParams > ReturnType
void readLUTs(std::vector< l1t::LUT * > luts, const L1TMuonOverlapParams &aConfig, const std::vector< std::string > &types)
T getParameter(std::string const &) const
#define DEFINE_FWK_EVENTSETUP_MODULE(type)
~L1TMuonOverlapPhase1ParamsESProducer() override
void setFwVersion(unsigned fwVersion)
void setDistPhiShiftLUT(const l1t::LUT &lut)
void setPdfLUT(const l1t::LUT &lut)
L1TMuonOverlapParams params