21 using ReturnType = std::unique_ptr<HcalSimulationParameters>;
42 edm::LogVerbatim(
"HCalGeom") <<
"HcalSimParametersESModule::HcalSimParametersESModule called with dd4hep: " 49 desc.add<
bool>(
"fromDD4hep",
false);
50 descriptions.
add(
"hcalSimulationParameters",
desc);
55 edm::LogInfo(
"HCalGeom") <<
"HcalSimParametersESModule::produce(const HcalParametersRcd& iRecord)";
58 auto ptp = std::make_unique<HcalSimulationParameters>();
63 edm::LogVerbatim(
"HCalGeom") <<
"HcalSimParametersESModule::Try to access cms::DDCompactView";
66 builder.build(*cpv, *ptp);
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
std::unique_ptr< HcalSimulationParameters > ReturnType
edm::ESGetToken< DDCompactView, IdealGeometryRecord > cpvTokenDDD_
static void fillDescriptions(edm::ConfigurationDescriptions &)
Compact representation of the geometrical detector hierarchy.
HcalSimParametersESModule(const edm::ParameterSet &)
edm::ESGetToken< cms::DDCompactView, IdealGeometryRecord > cpvTokenDD4hep_
ReturnType produce(const HcalParametersRcd &)
Log< level::Info, false > LogInfo
#define DEFINE_FWK_EVENTSETUP_MODULE(type)
void add(std::string const &label, ParameterSetDescription const &psetDescription)