41 edm::LogVerbatim(
"HGCalGeom") <<
"HGCalParametersESModule for " <<
name_ <<
":" << namew_ <<
":" << namec_ <<
":" 42 << namet_ <<
" and fromDD4Hep flag " <<
fromDD4Hep_;
56 desc.
add<
bool>(
"fromDD4Hep",
false);
57 descriptions.
add(
"hgcalEEParametersInitialize", desc);
62 edm::LogVerbatim(
"HGCalGeom") <<
"HGCalParametersESModule::produce(const IdealGeometryRecord& iRecord)";
64 auto ptp = std::make_unique<HGCalParameters>(
name_);
68 edm::LogVerbatim(
"HGCalGeom") <<
"HGCalParametersESModule::Try to access cms::DDCompactView";
74 edm::LogVerbatim(
"HGCalGeom") <<
"HGCalParametersESModule::Try to access DDCompactView";
T getParameter(std::string const &) const
auto setWhatProduced(T *iThis, const es::Label &iLabel={})
ReturnType produce(const IdealGeometryRecord &)
ESTransientHandle< ProductT > getTransientHandle(ESGetToken< ProductT, DepRecordT > const &iToken) const
Compact representation of the geometrical detector hierarchy.
std::unique_ptr< HGCalParameters > ReturnType
static void fillDescriptions(edm::ConfigurationDescriptions &)
ParameterDescriptionBase * add(U const &iLabel, T const &value)
#define DEFINE_FWK_EVENTSETUP_MODULE(type)
void add(std::string const &label, ParameterSetDescription const &psetDescription)
T const * product() const
HGCalParametersESModule(const edm::ParameterSet &)
edm::ESGetToken< DDCompactView, IdealGeometryRecord > cpvTokenDDD_
edm::ESGetToken< cms::DDCompactView, IdealGeometryRecord > cpvTokenDD4Hep_