Go to the documentation of this file.
47 edm::LogVerbatim(
"TrackerGeom") <<
"TrackerParametersESModule::TrackerParametersESModule called with dd4hep: "
54 desc.add<
bool>(
"fromDD4Hep",
false);
55 descriptions.
add(
"trackerParameters",
desc);
59 edm::LogInfo(
"TrackerGeom") <<
"TrackerParametersESModule::produce(const PTrackerParametersRcd& iRecord)";
61 auto ptp = std::make_unique<PTrackerParameters>();
66 edm::LogVerbatim(
"TrackerGeom") <<
"TrackerParametersESModule::produce try to access cms::DDCompactView";
69 builder.
build(&(*cpv), *ptp);
72 edm::LogVerbatim(
"TrackerGeom") <<
"TrackerParametersESModule::produce try to access DDCompactView";
75 builder.
build(&(*cpv), *ptp);
auto setWhatProduced(T *iThis, const es::Label &iLabel={})
std::unique_ptr< PTrackerParameters > ReturnType
static void fillDescriptions(edm::ConfigurationDescriptions &)
Log< level::Info, false > LogInfo
edm::ESGetToken< cms::DDCompactView, IdealGeometryRecord > cpvTokenDD4Hep_
void add(std::string const &label, ParameterSetDescription const &psetDescription)
Compact representation of the geometrical detector hierarchy.
ESTransientHandle< ProductT > getTransientHandle(ESGetToken< ProductT, DepRecordT > const &iToken) const
TrackerParametersESModule(const edm::ParameterSet &)
#define DEFINE_FWK_EVENTSETUP_MODULE(type)
Log< level::Info, true > LogVerbatim
ReturnType produce(const PTrackerParametersRcd &)
bool build(const DDCompactView *, PTrackerParameters &)
T getParameter(std::string const &) const
edm::ESGetToken< DDCompactView, IdealGeometryRecord > cpvTokenDDD_