49 edm::LogVerbatim(
"TrackerGeom") <<
"TrackerParametersESModule::TrackerParametersESModule called with dd4hep: " 56 desc.add<
bool>(
"fromDD4hep",
false);
57 descriptions.
add(
"trackerParameters",
desc);
61 edm::LogInfo(
"TrackerGeom") <<
"TrackerParametersESModule::produce(const PTrackerParametersRcd& iRecord)";
63 auto ptp = std::make_unique<PTrackerParameters>();
68 edm::LogVerbatim(
"TrackerGeom") <<
"TrackerParametersESModule::produce try to access cms::DDCompactView";
71 builder.build(&(*cpv), *ptp);
74 edm::LogVerbatim(
"TrackerGeom") <<
"TrackerParametersESModule::produce try to access DDCompactView";
77 builder.build(&(*cpv), *ptp);
ESTransientHandle< ProductT > getTransientHandle(ESGetToken< ProductT, DepRecordT > const &iToken) const
Log< level::Info, true > LogVerbatim
auto setWhatProduced(T *iThis, const es::Label &iLabel={})
T getParameter(std::string const &) const
edm::ESGetToken< cms::DDCompactView, IdealGeometryRecord > cpvTokenDD4hep_
Compact representation of the geometrical detector hierarchy.
static void fillDescriptions(edm::ConfigurationDescriptions &)
edm::ESGetToken< DDCompactView, IdealGeometryRecord > cpvTokenDDD_
std::unique_ptr< PTrackerParameters > ReturnType
Log< level::Info, false > LogInfo
TrackerParametersESModule(const edm::ParameterSet &)
#define DEFINE_FWK_EVENTSETUP_MODULE(type)
void add(std::string const &label, ParameterSetDescription const &psetDescription)
ReturnType produce(const PTrackerParametersRcd &)