Go to the documentation of this file.
23 using ReturnType = std::unique_ptr<CaloSimulationParameters>;
42 edm::LogVerbatim(
"HCalGeom") <<
"CaloSimParametersESModule::CaloSimParametersESModule called with dd4hep: "
51 desc.
add<
bool>(
"fromDD4Hep",
false);
52 descriptions.
add(
"caloSimulationParameters", desc);
57 edm::LogVerbatim(
"HCalGeom") <<
"CaloSimParametersESModule::produce(const HcalParametersRcd& iRecord)";
60 auto ptp = std::make_unique<CaloSimulationParameters>();
64 edm::LogVerbatim(
"HCalGeom") <<
"CaloSimParametersESModule::Try to access cms::DDCompactView";
67 builder.
build(&(*cpv), *ptp);
70 edm::LogVerbatim(
"HCalGeom") <<
"CaloSimParametersESModule::Try to access DDCompactView";
73 builder.
build(&(*cpv), *ptp);
ParameterDescriptionBase * add(U const &iLabel, T const &value)
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 &)
T getParameter(std::string const &) const
edm::ESGetToken< DDCompactView, IdealGeometryRecord > cpvTokenDDD_
std::unique_ptr< CaloSimulationParameters > ReturnType
#define DEFINE_FWK_EVENTSETUP_MODULE(type)
~CaloSimParametersESModule(void) override