Go to the documentation of this file.
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);
ParameterDescriptionBase * add(U const &iLabel, T const &value)
HcalSimParametersESModule(const edm::ParameterSet &)
auto setWhatProduced(T *iThis, const es::Label &iLabel={})
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
T getParameter(std::string const &) const
bool build(const DDCompactView *, HcalSimulationParameters &)
#define DEFINE_FWK_EVENTSETUP_MODULE(type)
ReturnType produce(const HcalParametersRcd &)
std::unique_ptr< HcalSimulationParameters > ReturnType