46 desc.
add<
bool>(
"fromDD4Hep",
false);
47 descriptions.
add(
"hcalParameters", desc);
51 edm::LogInfo(
"HCalGeom") <<
"HcalParametersESModule::produce(const HcalParametersRcd& iRecord)";
53 auto ptp = std::make_unique<HcalParameters>();
58 edm::LogVerbatim(
"HCalGeom") <<
"HcalParametersESModule::Try to access cms::DDCompactView";
61 builder.build(&(*cpv), *ptp);
64 edm::LogVerbatim(
"HCalGeom") <<
"HcalParametersESModule::Try to access DDCompactView";
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_
ReturnType produce(const HcalParametersRcd &)
ESTransientHandle< ProductT > getTransientHandle(ESGetToken< ProductT, DepRecordT > const &iToken) const
std::unique_ptr< HcalParameters > ReturnType
Compact representation of the geometrical detector hierarchy.
ParameterDescriptionBase * add(U const &iLabel, T const &value)
#define DEFINE_FWK_EVENTSETUP_MODULE(type)
static void fillDescriptions(edm::ConfigurationDescriptions &)
void add(std::string const &label, ParameterSetDescription const &psetDescription)
edm::ESGetToken< DDCompactView, IdealGeometryRecord > cpvTokenDDD_
HcalParametersESModule(const edm::ParameterSet &)