22 if (!theConfig.
exists(
"configXMLFile"))
27 if (!theConfig.
exists(
"patternsXMLFiles"))
30 for (
const auto&
it : theConfig.
getParameter<std::vector<edm::ParameterSet> >(
"patternsXMLFiles")) {
67 std::vector<l1t::LUT*> luts = {&chargeLUT, &
etaLUT, &
ptLUT, &meanDistPhiLUT, &pdfLUT};
68 std::vector<std::string>
types = {
"iCharge",
"iEta",
"iPt",
"meanDistPhi",
"pdf"};
83 return std::make_unique<L1TMuonOverlapParams>(
params);
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 setEtaLUT(const l1t::LUT &lut)
unsigned int getPatternsVersion() const
L1TMuonOverlapParams params
bool exists(std::string const ¶meterName) const
checks if a parameter exists
~L1TMuonOverlapParamsESProducer() override
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 &)
bool readPatternsXML(XMLConfigReader &aReader)
void setPtLUT(const l1t::LUT &lut)
bool readConnectionsXML(const XMLConfigReader &aReader)
Read Connections from single XML file.
unsigned fwVersion() const
void readConfig(const std::string fName)
#define DEFINE_FWK_EVENTSETUP_MODULE(type)
std::unique_ptr< L1TMuonOverlapParams > ReturnType
void setPatternsFile(const std::string &fName)
void setConfigFile(const std::string &fName)
L1TMuonOverlapParamsESProducer(const edm::ParameterSet &)
const std::string & fullPath() const
void setFwVersion(unsigned fwVersion)
void setPdfLUT(const l1t::LUT &lut)