CMS 3D CMS Logo

GlobalDetLayerGeometryESProducer.cc
Go to the documentation of this file.
2 
7 
8 #include <memory>
9 #include <string>
10 
11 using namespace edm;
12 
14 {
15  std::string myName = p.getParameter<std::string>("ComponentName");
16  setWhatProduced(this,myName);
17 }
18 
20 
21 std::shared_ptr<DetLayerGeometry>
23 
26 
27  iRecord.getRecord<TrackerRecoGeometryRecord>().get(tracker);
28  iRecord.getRecord<MuonRecoGeometryRecord>().get(muon);
29 
30  geometry_ = std::make_shared<GlobalDetLayerGeometry>(tracker.product(), muon.product());
31  return geometry_;
32 }
33 
34 
T getParameter(std::string const &) const
GlobalDetLayerGeometryESProducer(const edm::ParameterSet &p)
#define DEFINE_FWK_EVENTSETUP_MODULE(type)
Definition: ModuleFactory.h:60
HLT enums.
std::shared_ptr< DetLayerGeometry > produce(const RecoGeometryRecord &)
T const * product() const
Definition: ESHandle.h:86