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);
ESTransientHandle< ProductT > getTransientHandle(ESGetToken< ProductT, DepRecordT > const &iToken) const
Log< level::Info, true > LogVerbatim
auto setWhatProduced(T *iThis, const es::Label &iLabel={})
static void fillDescriptions(edm::ConfigurationDescriptions &)
T getParameter(std::string const &) const
edm::ESGetToken< cms::DDCompactView, IdealGeometryRecord > cpvTokenDD4hep_
MuonGeometryConstantsESModule(const edm::ParameterSet &)
Compact representation of the geometrical detector hierarchy.
ReturnType produce(const IdealGeometryRecord &)
Log< level::Info, false > LogInfo
#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