Go to the documentation of this file.
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));
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