Go to the documentation of this file.
28 #include <unordered_map>
53 : fromDDD_{
p.getUntrackedParameter<
bool>(
"fromDDD",
true)},
54 fromDD4hep_{
p.getUntrackedParameter<
bool>(
"fromDD4hep",
false)} {
55 auto cc = setWhatProduced(
this);
58 idealGeomToken_ =
cc.consumes();
59 dddConstantsToken_ =
cc.consumes();
60 }
else if (fromDD4hep_) {
61 idealDD4hepGeomToken_ =
cc.consumes();
62 dddConstantsToken_ =
cc.consumes();
64 recoIdealToken_ =
cc.consumes();
70 desc.addUntracked<
bool>(
"fromDDD",
true);
71 desc.addUntracked<
bool>(
"fromDD4hep",
false);
72 descriptions.
add(
"RPCGeometryESModule",
desc);
81 return std::unique_ptr<RPCGeometry>(builder.
build(&(*cpv), mdc));
83 edm::LogVerbatim(
"RPCGeoemtryESModule") <<
"(0) RPCGeometryESModule - DD4HEP ";
87 return std::unique_ptr<RPCGeometry>(builder.
build(&(*cpv), mdc));
92 return std::unique_ptr<RPCGeometry>(builder.
build(rigrpc));
edm::ESGetToken< RecoIdealGeometry, RPCRecoGeometryRcd > recoIdealToken_
RPCGeometryESModule(const edm::ParameterSet &p)
edm::ESGetToken< MuonGeometryConstants, IdealGeometryRecord > dddConstantsToken_
std::unique_ptr< RPCGeometry > produce(const MuonGeometryRecord &record)
static void fillDescriptions(edm::ConfigurationDescriptions &)
edm::ESGetToken< cms::DDCompactView, IdealGeometryRecord > idealDD4hepGeomToken_
void add(std::string const &label, ParameterSetDescription const &psetDescription)
RPCGeometry * build(const RecoIdealGeometry &rgeo)
std::unique_ptr< RPCGeometry > build(const DDCompactView *cview, const MuonGeometryConstants &muonConstants)
edm::ESGetToken< DDCompactView, IdealGeometryRecord > idealGeomToken_
#define DEFINE_FWK_EVENTSETUP_MODULE(type)
Log< level::Info, true > LogVerbatim