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 
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 
ConfigurationDescriptions.h
edm::eventsetup::DependentRecordImplementation::getRecord
const DepRecordT getRecord() const
Definition: DependentRecordImplementation.h:51
TrackerParametersFromDD.h
ESTransientHandle.h
MessageLogger.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
ESProducer.h
PTrackerParameters.h
TrackerParametersESProducer::~TrackerParametersESProducer
~TrackerParametersESProducer(void) override
Definition: TrackerParametersESProducer.cc:42
PTrackerParametersRcd
Definition: PTrackerParametersRcd.h:9
edm::ConfigurationDescriptions::add
void add(std::string const &label, ParameterSetDescription const &psetDescription)
Definition: ConfigurationDescriptions.cc:57
TrackerParametersESProducer
Definition: TrackerParametersESProducer.cc:24
TrackerParametersESProducer::TrackerParametersESProducer
TrackerParametersESProducer(const edm::ParameterSet &)
Definition: TrackerParametersESProducer.cc:36
DDCompactView.h
ParameterSetDescription.h
edm::ConfigurationDescriptions
Definition: ConfigurationDescriptions.h:28
edm::ParameterSet
Definition: ParameterSet.h:36
TrackerParametersESProducer::fillDescriptions
static void fillDescriptions(edm::ConfigurationDescriptions &)
Definition: TrackerParametersESProducer.cc:44
PTrackerParametersRcd.h
IdealGeometryRecord.h
get
#define get
edm::ESTransientHandle
Definition: ESTransientHandle.h:41
ModuleFactory.h
ConfigurationDescriptions
DEFINE_FWK_EVENTSETUP_MODULE
#define DEFINE_FWK_EVENTSETUP_MODULE(type)
Definition: ModuleFactory.h:60
TrackerParametersESProducer::ReturnType
std::unique_ptr< PTrackerParameters > ReturnType
Definition: TrackerParametersESProducer.cc:29
TrackerParametersFromDD::build
bool build(const DDCompactView *, PTrackerParameters &)
Definition: TrackerParametersFromDD.cc:9
edm::ESProducer
Definition: ESProducer.h:101
TrackerParametersESProducer::produce
ReturnType produce(const PTrackerParametersRcd &)
Definition: TrackerParametersESProducer.cc:49
TrackerParametersFromDD
Definition: TrackerParametersFromDD.h:14
ParameterSet.h
IdealGeometryRecord
Definition: IdealGeometryRecord.h:27