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