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::unique_ptr<fastsim::Geometry>
20  return std::make_unique<fastsim::Geometry>(theTrackerMaterial);
21 }
22 
T getParameter(std::string const &) const
auto setWhatProduced(T *iThis, const es::Label &iLabel={})
Definition: ESProducer.h:116
FastSimGeometryESProducer(const edm::ParameterSet &p)
std::unique_ptr< fastsim::Geometry > produce(const GeometryRecord &)
#define DEFINE_FWK_EVENTSETUP_MODULE(type)
Definition: ModuleFactory.h:60