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);
Log< level::Info, true > LogVerbatim
auto setWhatProduced(T *iThis, const es::Label &iLabel={})
ESTransientHandle< ProductT > getTransientHandle(ESGetToken< ProductT, DepRecordT > const &iToken) 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
ParameterDescriptionBase * add(U const &iLabel, T const &value)
Log< level::Info, false > LogInfo
TrackerParametersESModule(const edm::ParameterSet &)
T getParameter(std::string const &) const
#define DEFINE_FWK_EVENTSETUP_MODULE(type)
void add(std::string const &label, ParameterSetDescription const &psetDescription)
ReturnType produce(const PTrackerParametersRcd &)