CMS 3D CMS Logo

TrackerParametersESModule.cc
Go to the documentation of this file.
12 
14 {
15  edm::LogInfo("TRACKER") << "TrackerParametersESModule::TrackerParametersESModule";
16 
17  setWhatProduced(this);
18 }
19 
21 {
22 }
23 
24 void
26 {
28  descriptions.add( "trackerParameters", desc );
29 }
30 
33 {
34  edm::LogInfo("TrackerParametersESModule") << "TrackerParametersESModule::produce(const PTrackerParametersRcd& iRecord)" << std::endl;
36  iRecord.getRecord<IdealGeometryRecord>().get( cpv );
37 
38  auto ptp = std::make_unique<PTrackerParameters>();
40  builder.build( &(*cpv), *ptp );
41 
42  return ptp;
43 }
44 
auto setWhatProduced(T *iThis, const es::Label &iLabel={})
Definition: ESProducer.h:124
static void fillDescriptions(edm::ConfigurationDescriptions &)
std::unique_ptr< PTrackerParameters > ReturnType
#define DEFINE_FWK_EVENTSETUP_MODULE(type)
Definition: ModuleFactory.h:60
TrackerParametersESModule(const edm::ParameterSet &)
void add(std::string const &label, ParameterSetDescription const &psetDescription)
bool build(const DDCompactView *, PTrackerParameters &)
ReturnType produce(const PTrackerParametersRcd &)