52 fromDDD_ =
p.getParameter<
bool>(
"fromDDD");
69 desc.add<
bool>(
"fromDDD",
true);
70 desc.add<
bool>(
"fromDD4hep",
false);
71 descriptions.
add(
"me0Geometry",
desc);
79 edm::LogVerbatim(
"GEMGeometry") <<
"ME0GeometryESModule::produce :: ME0GeometryBuilder builder";
83 return std::unique_ptr<ME0Geometry>(builder.
build(cpv.product(), mdc));
85 edm::LogVerbatim(
"ME0GeometryESModule") <<
"(0) ME0GeometryESModule - DD4hep ";
86 edm::LogVerbatim(
"GEMGeometry") <<
"ME0GeometryESModule::produce :: ME0GeometryBuilder builder DD4hep";
90 return std::unique_ptr<ME0Geometry>(builder.
build(cpv.product(), mdc));
93 edm::LogVerbatim(
"GEMGeometry") <<
"ME0GeometryESModule::produce :: ME0GeometryBuilderFromCondDB builder";
96 return std::unique_ptr<ME0Geometry>(builder.
build(rigme0));
Log< level::Info, true > LogVerbatim
auto setWhatProduced(T *iThis, const es::Label &iLabel={})
ME0GeometryESModule(const edm::ParameterSet &p)
ME0Geometry * build(const DDCompactView *cview, const MuonGeometryConstants &muonConstants)
edm::ESGetToken< DDCompactView, IdealGeometryRecord > cpvToken_
edm::ESGetToken< cms::DDCompactView, IdealGeometryRecord > dd4hepcpvToken_
std::unique_ptr< ME0Geometry > produce(const MuonGeometryRecord &record)
static void fillDescriptions(edm::ConfigurationDescriptions &)
edm::ESGetToken< RecoIdealGeometry, ME0RecoGeometryRcd > rigme0Token_
ME0Geometry * build(const RecoIdealGeometry &rgeo)
#define DEFINE_FWK_EVENTSETUP_MODULE(type)
void add(std::string const &label, ParameterSetDescription const &psetDescription)
edm::ESGetToken< MuonGeometryConstants, IdealGeometryRecord > mdcToken_