CMS 3D CMS Logo

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