21 using ReturnType = std::unique_ptr<HcalSimulationParameters>;
40 edm::LogVerbatim(
"HCalGeom") <<
"HcalSimParametersESModule::HcalSimParametersESModule called with dd4hep: " 47 desc.
add<
bool>(
"fromDD4Hep",
false);
48 descriptions.
add(
"hcalSimulationParameters", desc);
53 edm::LogInfo(
"HCalGeom") <<
"HcalSimParametersESModule::produce(const HcalParametersRcd& iRecord)";
56 auto ptp = std::make_unique<HcalSimulationParameters>();
61 edm::LogVerbatim(
"HCalGeom") <<
"HcalSimParametersESModule::Try to access cms::DDCompactView";
64 builder.build(&(*cpv), *ptp);
67 builder.build(&(*cpv), *ptp);
T getParameter(std::string const &) const
auto setWhatProduced(T *iThis, const es::Label &iLabel={})
edm::ESGetToken< cms::DDCompactView, IdealGeometryRecord > cpvTokenDD4Hep_
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)
ReturnType produce(const HcalParametersRcd &)
#define DEFINE_FWK_EVENTSETUP_MODULE(type)
void add(std::string const &label, ParameterSetDescription const &psetDescription)