Go to the documentation of this file.
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);
static void fillDescriptions(edm::ConfigurationDescriptions &)
auto setWhatProduced(T *iThis, const es::Label &iLabel={})
Log< level::Info, false > LogInfo
ReturnType produce(const IdealGeometryRecord &)
void add(std::string const &label, ParameterSetDescription const &psetDescription)
Compact representation of the geometrical detector hierarchy.
MuonGeometryConstantsESModule(const edm::ParameterSet &)
ESTransientHandle< ProductT > getTransientHandle(ESGetToken< ProductT, DepRecordT > const &iToken) const
std::unique_ptr< MuonGeometryConstants > ReturnType
edm::ESGetToken< cms::DDCompactView, IdealGeometryRecord > cpvTokenDD4Hep_
bool build(const DDCompactView *cpv, MuonGeometryConstants &php)
#define DEFINE_FWK_EVENTSETUP_MODULE(type)
Log< level::Info, true > LogVerbatim
edm::ESGetToken< DDCompactView, IdealGeometryRecord > cpvTokenDDD_
T getParameter(std::string const &) const