CMS 3D CMS Logo

FastSimGeometryESProducer.cc
Go to the documentation of this file.
3 
6 
7 #include <memory>
8 
10 {
11  setWhatProduced(this);
12 
13  theTrackerMaterial = p.getParameter<edm::ParameterSet>("TrackerMaterial");
14 }
15 
17 
18 std::shared_ptr<fastsim::Geometry>
20  _tracker = std::make_shared<fastsim::Geometry>(theTrackerMaterial);
21  return _tracker;
22 }
23 
24 
T getParameter(std::string const &) const
std::shared_ptr< fastsim::Geometry > _tracker
FastSimGeometryESProducer(const edm::ParameterSet &p)
void setWhatProduced(T *iThis, const es::Label &iLabel=es::Label())
Definition: ESProducer.h:115
#define DEFINE_FWK_EVENTSETUP_MODULE(type)
Definition: ModuleFactory.h:60
std::shared_ptr< fastsim::Geometry > produce(const GeometryRecord &)