58 }
else if (fromDD4hep_) {
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));
84 }
else if (fromDD4hep_) {
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)
ESTransientHandle< ProductT > getTransientHandle(ESGetToken< ProductT, DepRecordT > const &iToken) const
edm::ESGetToken< DDCompactView, IdealGeometryRecord > cpvToken_
edm::ESGetToken< cms::DDCompactView, IdealGeometryRecord > dd4hepcpvToken_
std::unique_ptr< ME0Geometry > produce(const MuonGeometryRecord &record)
static void fillDescriptions(edm::ConfigurationDescriptions &)
ProductT const & get(ESGetToken< ProductT, DepRecordT > const &iToken) const
edm::ESGetToken< RecoIdealGeometry, ME0RecoGeometryRcd > rigme0Token_
ParameterDescriptionBase * add(U const &iLabel, T const &value)
ME0Geometry * build(const RecoIdealGeometry &rgeo)
T getParameter(std::string const &) const
#define DEFINE_FWK_EVENTSETUP_MODULE(type)
void add(std::string const &label, ParameterSetDescription const &psetDescription)
edm::ESGetToken< MuonGeometryConstants, IdealGeometryRecord > mdcToken_