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 
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 
ConfigurationDescriptions.h
TrackerParametersFromDD.h
ESTransientHandle.h
PTrackerParameters
Definition: PTrackerParameters.h:6
ESHandle.h
edm
HLT enums.
Definition: AlignableModifier.h:19
edm::LogInfo
Definition: MessageLogger.h:254
edm::ESProducer::setWhatProduced
auto setWhatProduced(T *iThis, const es::Label &iLabel={})
Definition: ESProducer.h:138
edm::ParameterSetDescription
Definition: ParameterSetDescription.h:52
TrackerParametersESModule::ReturnType
std::unique_ptr< PTrackerParameters > ReturnType
Definition: TrackerParametersESModule.cc:28
ESProducer.h
TrackerParametersESModule::fillDescriptions
static void fillDescriptions(edm::ConfigurationDescriptions &)
Definition: TrackerParametersESModule.cc:46
TrackerParametersESModule::~TrackerParametersESModule
~TrackerParametersESModule(void) override
Definition: TrackerParametersESModule.cc:44
PTrackerParameters.h
DDCompactView.h
PTrackerParametersRcd
Definition: PTrackerParametersRcd.h:9
edm::ConfigurationDescriptions::add
void add(std::string const &label, ParameterSetDescription const &psetDescription)
Definition: ConfigurationDescriptions.cc:57
edm::eventsetup::DependentRecordImplementation::getTransientHandle
ESTransientHandle< ProductT > getTransientHandle(ESGetToken< ProductT, DepRecordT > const &iToken) const
Definition: DependentRecordImplementation.h:99
ParameterSetDescription.h
edm::ConfigurationDescriptions
Definition: ConfigurationDescriptions.h:28
TrackerParametersESModule::geomToken_
edm::ESGetToken< DDCompactView, IdealGeometryRecord > geomToken_
Definition: TrackerParametersESModule.cc:35
edm::ParameterSet
Definition: ParameterSet.h:36
PTrackerParametersRcd.h
IdealGeometryRecord.h
edm::ESGetToken< DDCompactView, IdealGeometryRecord >
edm::ESTransientHandle
Definition: ESTransientHandle.h:41
TrackerParametersESModule::TrackerParametersESModule
TrackerParametersESModule(const edm::ParameterSet &)
Definition: TrackerParametersESModule.cc:38
ModuleFactory.h
ConfigurationDescriptions
DEFINE_FWK_EVENTSETUP_MODULE
#define DEFINE_FWK_EVENTSETUP_MODULE(type)
Definition: ModuleFactory.h:60
TrackerParametersESModule::produce
ReturnType produce(const PTrackerParametersRcd &)
Definition: TrackerParametersESModule.cc:51
TrackerParametersFromDD::build
bool build(const DDCompactView *, PTrackerParameters &)
Definition: TrackerParametersFromDD.cc:9
edm::ESProducer
Definition: ESProducer.h:101
TrackerParametersFromDD
Definition: TrackerParametersFromDD.h:14
ParameterSet.h
TrackerParametersESModule
Definition: TrackerParametersESModule.cc:23