47 : m_label(iConfig.getParameter<
std::
string>(
"label")),
48 m_key(iConfig.getParameter<
std::
string>(
"key")),
58 auto product = std::make_unique<cms::MuonNumbering>();
61 auto it = registry.specpars.find(
m_key);
62 if (it !=
end(registry.specpars)) {
63 for (
const auto&
l : it->second.spars) {
64 if (
l.first ==
"OnlyForMuonNumbering") {
65 for (
const auto&
k : it->second.numpars) {
66 for (
const auto& ik :
k.second) {
67 product->put(
k.first, static_cast<int>(ik));
Log< level::Info, true > LogVerbatim
const std::string m_label
~MuonNumberingESProducer() override
dd4hep::SpecParRegistry DDSpecParRegistry
std::unique_ptr< cms::MuonNumbering > ReturnType
MuonNumberingESProducer(const edm::ParameterSet &)
ReturnType produce(const MuonNumberingRecord &)
Namespace of DDCMS conversion namespace.
#define DEFINE_FWK_EVENTSETUP_MODULE(type)
const edm::ESGetToken< cms::DDSpecParRegistry, DDSpecParRegistryRcd > m_token
ProductT const & get(ESGetToken< ProductT, DepRecordT > const &iToken) const