Go to the documentation of this file.
23 using ReturnType = std::unique_ptr<CaloSimulationParameters>;
44 edm::LogVerbatim(
"HCalGeom") <<
"CaloSimParametersESModule::CaloSimParametersESModule called with dd4hep: "
53 desc.add<
bool>(
"fromDD4Hep",
false);
54 descriptions.
add(
"caloSimulationParameters",
desc);
59 edm::LogVerbatim(
"HCalGeom") <<
"CaloSimParametersESModule::produce(const HcalParametersRcd& iRecord)";
62 auto ptp = std::make_unique<CaloSimulationParameters>();
66 edm::LogVerbatim(
"HCalGeom") <<
"CaloSimParametersESModule::Try to access cms::DDCompactView";
69 builder.
build(&(*cpv), *ptp);
72 edm::LogVerbatim(
"HCalGeom") <<
"CaloSimParametersESModule::Try to access DDCompactView";
75 builder.
build(&(*cpv), *ptp);
static void fillDescriptions(edm::ConfigurationDescriptions &)
bool build(const DDCompactView *, CaloSimulationParameters &)
ReturnType produce(const HcalParametersRcd &)
auto setWhatProduced(T *iThis, const es::Label &iLabel={})
edm::ESGetToken< cms::DDCompactView, IdealGeometryRecord > cpvTokenDD4Hep_
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
CaloSimParametersESModule(const edm::ParameterSet &)
edm::ESGetToken< DDCompactView, IdealGeometryRecord > cpvTokenDDD_
std::unique_ptr< CaloSimulationParameters > ReturnType
#define DEFINE_FWK_EVENTSETUP_MODULE(type)
Log< level::Info, true > LogVerbatim
~CaloSimParametersESModule(void) override
T getParameter(std::string const &) const