18 using ReturnType = std::unique_ptr<HcalTB06BeamParameters>;
41 edm::LogVerbatim(
"HCalGeom") <<
"HcalTB06ParametersESModule::HcalTB06ParametersESModule called with dd4hep: "
42 << fromDD4hep_ <<
" and names " <<
name1_ <<
":" <<
name2_;
50 desc.
add<
bool>(
"fromDD4hep",
false);
51 descriptions.
add(
"hcalTB06BeamParameters", desc);
56 edm::LogInfo(
"HCalGeom") <<
"HcalTB06ParametersESModule::produce(const IdealGeometryRecord& iRecord)";
59 auto ptp = std::make_unique<HcalTB06BeamParameters>();
64 edm::LogVerbatim(
"HCalGeom") <<
"HcalTB06ParametersESModule::Try to access cms::DDCompactView";
Log< level::Info, true > LogVerbatim
auto setWhatProduced(T *iThis, const es::Label &iLabel={})
std::unique_ptr< HcalTB06BeamParameters > ReturnType
ESTransientHandle< ProductT > getTransientHandle(ESGetToken< ProductT, DepRecordT > const &iToken) const
Compact representation of the geometrical detector hierarchy.
static void fillDescriptions(edm::ConfigurationDescriptions &)
edm::ESGetToken< cms::DDCompactView, IdealGeometryRecord > cpvTokenDD4hep_
HcalTB06ParametersESModule(const edm::ParameterSet &)
ParameterDescriptionBase * add(U const &iLabel, T const &value)
Log< level::Info, false > LogInfo
ReturnType produce(const IdealGeometryRecord &)
T getParameter(std::string const &) const
#define DEFINE_FWK_EVENTSETUP_MODULE(type)
void add(std::string const &label, ParameterSetDescription const &psetDescription)
edm::ESGetToken< DDCompactView, IdealGeometryRecord > cpvTokenDDD_