56 useDDD_ =
p.getParameter<
bool>(
"useDDD");
57 useDD4hep_ =
p.getUntrackedParameter<
bool>(
"useDD4hep",
false);
58 auto cc = setWhatProduced(
this);
60 cc.setConsumes(cpvToken_).setConsumes(mdcToken_);
61 }
else if (useDD4hep_) {
62 cc.setConsumes(dd4hepcpvToken_).setConsumes(dd4hepmdcToken_);
64 cc.setConsumes(rigme0Token_);
71 LogTrace(
"ME0GeometryESModule") <<
"ME0GeometryESModule::produce with useDDD = " << useDDD_;
73 LogTrace(
"ME0GeometryESModule") <<
"ME0GeometryESModule::produce :: ME0GeometryBuilder builder";
74 auto cpv =
record.getTransientHandle(cpvToken_);
75 const auto& mdc =
record.get(mdcToken_);
77 return std::unique_ptr<ME0Geometry>(builder.
build(cpv.product(), mdc));
78 }
else if (useDD4hep_) {
79 LogTrace(
"ME0GeometryESModule") <<
"ME0GeometryESModule::produce :: ME0GeometryBuilder builder DD4hep";
80 auto cpv =
record.getTransientHandle(dd4hepcpvToken_);
81 const auto& mdc =
record.get(dd4hepmdcToken_);
83 return std::unique_ptr<ME0Geometry>(builder.
build(cpv.product(), mdc));
85 LogTrace(
"ME0GeometryESModule") <<
"ME0GeometryESModule::produce :: ME0GeometryBuilderFromCondDB builder";
86 const auto& rigme0 =
record.get(rigme0Token_);
88 return std::unique_ptr<ME0Geometry>(builder.
build(rigme0));