Go to the documentation of this file.
53 fromDDD_ =
p.getParameter<
bool>(
"fromDDD");
70 desc.add<
bool>(
"fromDDD",
true);
71 desc.add<
bool>(
"fromDD4hep",
false);
72 descriptions.
add(
"me0Geometry",
desc);
80 edm::LogVerbatim(
"GEMGeometry") <<
"ME0GeometryESModule::produce :: ME0GeometryBuilder builder";
84 return std::unique_ptr<ME0Geometry>(builder.
build(cpv.product(), mdc));
86 edm::LogVerbatim(
"ME0GeometryESModule") <<
"(0) ME0GeometryESModule - DD4HEP ";
87 edm::LogVerbatim(
"GEMGeometry") <<
"ME0GeometryESModule::produce :: ME0GeometryBuilder builder DD4hep";
91 return std::unique_ptr<ME0Geometry>(builder.
build(cpv.product(), mdc));
94 edm::LogVerbatim(
"GEMGeometry") <<
"ME0GeometryESModule::produce :: ME0GeometryBuilderFromCondDB builder";
97 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_