CMS 3D CMS Logo

TrackerParametersESModule.cc
Go to the documentation of this file.
14 
15 #include <memory>
16 
17 namespace edm {
19 }
20 class PTrackerParameters;
22 
24 public:
26  ~TrackerParametersESModule(void) override;
27 
28  using ReturnType = std::unique_ptr<PTrackerParameters>;
29 
31 
32  ReturnType produce(const PTrackerParametersRcd&);
33 
34 private:
36 };
37 
39  edm::LogInfo("TRACKER") << "TrackerParametersESModule::TrackerParametersESModule";
40 
41  setWhatProduced(this).setConsumes(geomToken_);
42 }
43 
45 
48  descriptions.add("trackerParameters", desc);
49 }
50 
52  edm::LogInfo("TrackerParametersESModule")
53  << "TrackerParametersESModule::produce(const PTrackerParametersRcd& iRecord)" << std::endl;
55 
56  auto ptp = std::make_unique<PTrackerParameters>();
58  builder.build(&(*cpv), *ptp);
59 
60  return ptp;
61 }
62 
edm::ESGetToken< DDCompactView, IdealGeometryRecord > geomToken_
ESTransientHandle< ProductT > getTransientHandle(ESGetToken< ProductT, DepRecordT > const &iToken) const
static void fillDescriptions(edm::ConfigurationDescriptions &)
std::unique_ptr< PTrackerParameters > ReturnType
#define DEFINE_FWK_EVENTSETUP_MODULE(type)
Definition: ModuleFactory.h:60
TrackerParametersESModule(const edm::ParameterSet &)
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 &)