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);
Log< level::Info, true > LogVerbatim
auto setWhatProduced(T *iThis, const es::Label &iLabel={})
std::unique_ptr< HcalSimulationParameters > ReturnType
edm::ESGetToken< DDCompactView, IdealGeometryRecord > cpvTokenDDD_
ESTransientHandle< ProductT > getTransientHandle(ESGetToken< ProductT, DepRecordT > const &iToken) const
static void fillDescriptions(edm::ConfigurationDescriptions &)
Compact representation of the geometrical detector hierarchy.
HcalSimParametersESModule(const edm::ParameterSet &)
ParameterDescriptionBase * add(U const &iLabel, T const &value)
edm::ESGetToken< cms::DDCompactView, IdealGeometryRecord > cpvTokenDD4hep_
ReturnType produce(const HcalParametersRcd &)
Log< level::Info, false > LogInfo
T getParameter(std::string const &) const
#define DEFINE_FWK_EVENTSETUP_MODULE(type)
void add(std::string const &label, ParameterSetDescription const &psetDescription)