Go to the documentation of this file.
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));
edm::ESGetToken< RecoIdealGeometry, ME0RecoGeometryRcd > rigme0Token_
auto setWhatProduced(T *iThis, const es::Label &iLabel={})
ME0Geometry * build(const RecoIdealGeometry &rgeo)
static void fillDescriptions(edm::ConfigurationDescriptions &)
edm::ESGetToken< MuonGeometryConstants, IdealGeometryRecord > mdcToken_
void add(std::string const &label, ParameterSetDescription const &psetDescription)
ME0GeometryESModule(const edm::ParameterSet &p)
edm::ESGetToken< DDCompactView, IdealGeometryRecord > cpvToken_
std::unique_ptr< ME0Geometry > produce(const MuonGeometryRecord &record)
ME0Geometry * build(const DDCompactView *cview, const MuonGeometryConstants &muonConstants)
#define DEFINE_FWK_EVENTSETUP_MODULE(type)
Log< level::Info, true > LogVerbatim
edm::ESGetToken< cms::DDCompactView, IdealGeometryRecord > dd4hepcpvToken_