20 using ReturnType = std::unique_ptr<MuonGeometryConstants>;
41 edm::LogVerbatim(
"MuonGeom") <<
"MuonGeometryConstantsESModule::MuonGeometryConstantsESModule called with dd4hep: "
48 desc.
add<
bool>(
"fromDD4hep",
false);
49 descriptions.
add(
"muonGeometryConstants", desc);
53 edm::LogInfo(
"MuonGeom") <<
"MuonGeometryConstantsESModule::produce(const IdealGeometryRecord& iRecord)";
55 auto ptp = std::make_unique<MuonGeometryConstants>();
60 edm::LogVerbatim(
"MuonGeom") <<
"MuonGeometryConstantsESModule::Try to access cms::DDCompactView";
63 builder.build(&(*cpv), *ptp);
66 edm::LogVerbatim(
"MuonGeom") <<
"MuonGeometryConstantsESModule::Try to access DDCompactView";
69 builder.build(&(*cpv), *ptp);
Log< level::Info, true > LogVerbatim
auto setWhatProduced(T *iThis, const es::Label &iLabel={})
static void fillDescriptions(edm::ConfigurationDescriptions &)
edm::ESGetToken< cms::DDCompactView, IdealGeometryRecord > cpvTokenDD4hep_
ESTransientHandle< ProductT > getTransientHandle(ESGetToken< ProductT, DepRecordT > const &iToken) const
MuonGeometryConstantsESModule(const edm::ParameterSet &)
Compact representation of the geometrical detector hierarchy.
ParameterDescriptionBase * add(U const &iLabel, T const &value)
ReturnType produce(const IdealGeometryRecord &)
Log< level::Info, false > LogInfo
T getParameter(std::string const &) const
#define DEFINE_FWK_EVENTSETUP_MODULE(type)
void add(std::string const &label, ParameterSetDescription const &psetDescription)
edm::ESGetToken< DDCompactView, IdealGeometryRecord > cpvTokenDDD_
std::unique_ptr< MuonGeometryConstants > ReturnType