CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
TrackerInteractionGeometryESProducer.cc
Go to the documentation of this file.
3 
6 
7 #include <memory>
8 
10  setWhatProduced(this);
11  _label = p.getUntrackedParameter<std::string>("trackerGeometryLabel", "");
12 
13  theTrackerMaterial = p.getParameter<edm::ParameterSet>("TrackerMaterial");
14 }
15 
17 
18 std::unique_ptr<TrackerInteractionGeometry> TrackerInteractionGeometryESProducer::produce(
19  const TrackerInteractionGeometryRecord& iRecord) {
20  edm::ESHandle<GeometricSearchTracker> theGeomSearchTracker;
21 
22  iRecord.getRecord<TrackerRecoGeometryRecord>().get(_label, theGeomSearchTracker);
23  return std::make_unique<TrackerInteractionGeometry>(theTrackerMaterial, &(*theGeomSearchTracker));
24 }
25 
auto setWhatProduced(T *iThis, const es::Label &iLabel={})
Definition: ESProducer.h:163
T getUntrackedParameter(std::string const &, T const &) const
std::unique_ptr< TrackerInteractionGeometry > produce(const TrackerInteractionGeometryRecord &)
T getParameter(std::string const &) const
Definition: ParameterSet.h:303
#define DEFINE_FWK_EVENTSETUP_MODULE(type)
Definition: ModuleFactory.h:60