27 #include <unordered_map> 52 : fromDDD_{
p.getUntrackedParameter<
bool>(
"fromDDD",
true)},
53 fromDD4hep_{
p.getUntrackedParameter<
bool>(
"fromDD4hep",
false)} {
54 auto cc = setWhatProduced(
this);
57 idealGeomToken_ = cc.consumes();
58 dddConstantsToken_ = cc.consumes();
59 }
else if (fromDD4hep_) {
60 idealDD4hepGeomToken_ = cc.consumes();
61 dddConstantsToken_ = cc.consumes();
63 recoIdealToken_ = cc.consumes();
69 desc.addUntracked<
bool>(
"fromDDD",
true);
70 desc.addUntracked<
bool>(
"fromDD4hep",
false);
71 descriptions.
add(
"RPCGeometryESModule",
desc);
80 return std::unique_ptr<RPCGeometry>(builder.
build(&(*cpv), mdc));
82 edm::LogVerbatim(
"RPCGeoemtryESModule") <<
"(0) RPCGeometryESModule - DD4hep ";
86 return std::unique_ptr<RPCGeometry>(builder.
build(&(*cpv), mdc));
91 return std::unique_ptr<RPCGeometry>(builder.
build(rigrpc));
Log< level::Info, true > LogVerbatim
RPCGeometry * build(const RecoIdealGeometry &rgeo)
edm::ESGetToken< DDCompactView, IdealGeometryRecord > idealGeomToken_
static void fillDescriptions(edm::ConfigurationDescriptions &)
edm::ESGetToken< MuonGeometryConstants, IdealGeometryRecord > dddConstantsToken_
RPCGeometryESModule(const edm::ParameterSet &p)
edm::ESGetToken< RecoIdealGeometry, RPCRecoGeometryRcd > recoIdealToken_
std::unique_ptr< RPCGeometry > produce(const MuonGeometryRecord &record)
#define DEFINE_FWK_EVENTSETUP_MODULE(type)
std::unique_ptr< RPCGeometry > build(const DDCompactView *cview, const MuonGeometryConstants &muonConstants)
void add(std::string const &label, ParameterSetDescription const &psetDescription)
edm::ESGetToken< cms::DDCompactView, IdealGeometryRecord > idealDD4hepGeomToken_