40 edm::LogVerbatim(
"HCalGeom") <<
"HcalTB02ParametersESModule::HcalTB02ParametersESModule called with dd4hep: "
41 << fromDD4hep_ <<
" and name " <<
name_;
48 desc.
add<
bool>(
"fromDD4hep",
false);
49 descriptions.
add(
"hcalTB02XtalParameters", desc);
54 edm::LogInfo(
"HCalGeom") <<
"HcalTB02ParametersESModule::produce(const IdealGeometryRecord& iRecord)";
57 auto ptp = std::make_unique<HcalTB02Parameters>(
name_);
62 edm::LogVerbatim(
"HCalGeom") <<
"HcalTB02ParametersESModule::Try to access cms::DDCompactView";
65 builder.build(&(*cpv), *ptp,
name_);
68 builder.build(&(*cpv), *ptp,
name_);
Log< level::Info, true > LogVerbatim
auto setWhatProduced(T *iThis, const es::Label &iLabel={})
std::unique_ptr< HcalTB02Parameters > ReturnType
HcalTB02ParametersESModule(const edm::ParameterSet &)
ReturnType produce(const IdealGeometryRecord &)
ESTransientHandle< ProductT > getTransientHandle(ESGetToken< ProductT, DepRecordT > const &iToken) const
Compact representation of the geometrical detector hierarchy.
edm::ESGetToken< DDCompactView, IdealGeometryRecord > cpvTokenDDD_
static void fillDescriptions(edm::ConfigurationDescriptions &)
ParameterDescriptionBase * add(U const &iLabel, T const &value)
Log< level::Info, false > LogInfo
T getParameter(std::string const &) const
#define DEFINE_FWK_EVENTSETUP_MODULE(type)
void add(std::string const &label, ParameterSetDescription const &psetDescription)
edm::ESGetToken< cms::DDCompactView, IdealGeometryRecord > cpvTokenDD4hep_