Go to the documentation of this file.
20 using ReturnType = std::unique_ptr<MuonGeometryConstants>;
39 edm::LogVerbatim(
"Geometry") <<
"MuonGeometryConstantsESModule::MuonGeometryConstantsESModule called with dd4hep: "
46 desc.
add<
bool>(
"fromDD4Hep",
false);
47 descriptions.
add(
"muonGeometryConstants", desc);
51 edm::LogInfo(
"Geometry") <<
"MuonGeometryConstantsESModule::produce(const IdealGeometryRecord& iRecord)";
53 auto ptp = std::make_unique<MuonGeometryConstants>();
58 edm::LogVerbatim(
"Geometry") <<
"MuonGeometryConstantsESModule::Try to access cms::DDCompactView";
61 builder.
build(&(*cpv), *ptp);
64 edm::LogVerbatim(
"Geometry") <<
"MuonGeometryConstantsESModule::Try to access DDCompactView";
67 builder.
build(&(*cpv), *ptp);
ParameterDescriptionBase * add(U const &iLabel, T const &value)
static void fillDescriptions(edm::ConfigurationDescriptions &)
auto setWhatProduced(T *iThis, const es::Label &iLabel={})
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_
T getParameter(std::string const &) const
bool build(const DDCompactView *cpv, MuonGeometryConstants &php)
#define DEFINE_FWK_EVENTSETUP_MODULE(type)
edm::ESGetToken< DDCompactView, IdealGeometryRecord > cpvTokenDDD_