CMS 3D CMS Logo

TrackerParametersESProducer.cc
Go to the documentation of this file.
15 
16 #include <memory>
17 
18 namespace edm {
20 }
21 class PTrackerParameters;
23 
25 public:
27  ~TrackerParametersESProducer(void) override;
28 
29  using ReturnType = std::unique_ptr<PTrackerParameters>;
30 
32 
33  ReturnType produce(const PTrackerParametersRcd&);
34 };
35 
37  edm::LogInfo("TRACKER") << "TrackerParametersESProducer::TrackerParametersESProducer";
38 
39  setWhatProduced(this);
40 }
41 
43 
46  descriptions.add("DD4hep_trackerParameters", desc);
47 }
48 
50  edm::LogInfo("TrackerParametersESProducer")
51  << "TrackerParametersESProducer::produce(const PTrackerParametersRcd& iRecord)" << std::endl;
53  iRecord.getRecord<IdealGeometryRecord>().get(cpv);
54 
55  auto ptp = std::make_unique<PTrackerParameters>();
57  builder.build(&(*cpv), *ptp);
58 
59  return ptp;
60 }
61 
static void fillDescriptions(edm::ConfigurationDescriptions &)
std::unique_ptr< PTrackerParameters > ReturnType
#define DEFINE_FWK_EVENTSETUP_MODULE(type)
Definition: ModuleFactory.h:60
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
void add(std::string const &label, ParameterSetDescription const &psetDescription)
bool build(const DDCompactView *, PTrackerParameters &)
HLT enums.
ReturnType produce(const PTrackerParametersRcd &)
TrackerParametersESProducer(const edm::ParameterSet &)