48 desc.add<
bool>(
"fromDD4hep",
false);
49 descriptions.
add(
"hcalParameters",
desc);
53 edm::LogInfo(
"HCalGeom") <<
"HcalParametersESModule::produce(const HcalParametersRcd& iRecord)";
55 auto ptp = std::make_unique<HcalParameters>();
60 edm::LogVerbatim(
"HCalGeom") <<
"HcalParametersESModule::Try to access cms::DDCompactView";
63 builder.build(*cpv, *ptp);
66 edm::LogVerbatim(
"HCalGeom") <<
"HcalParametersESModule::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={})
T getParameter(std::string const &) const
ReturnType produce(const HcalParametersRcd &)
std::unique_ptr< HcalParameters > ReturnType
Compact representation of the geometrical detector hierarchy.
#define DEFINE_FWK_EVENTSETUP_MODULE(type)
Log< level::Info, false > LogInfo
static void fillDescriptions(edm::ConfigurationDescriptions &)
void add(std::string const &label, ParameterSetDescription const &psetDescription)
edm::ESGetToken< DDCompactView, IdealGeometryRecord > cpvTokenDDD_
edm::ESGetToken< cms::DDCompactView, IdealGeometryRecord > cpvTokenDD4hep_
HcalParametersESModule(const edm::ParameterSet &)