CMS 3D CMS Logo

All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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 boost::shared_ptr<DetLayerGeometry>
23 
26 
27  iRecord.getRecord<TrackerRecoGeometryRecord>().get(tracker);
28  iRecord.getRecord<MuonRecoGeometryRecord>().get(muon);
29 
30  geometry_ = boost::shared_ptr<DetLayerGeometry>(new GlobalDetLayerGeometry(tracker.product(),
31  muon.product() ));
32  return geometry_;
33 }
34 
35 
T getParameter(std::string const &) const
GlobalDetLayerGeometryESProducer(const edm::ParameterSet &p)
T const * product() const
Definition: ESHandle.h:62
#define DEFINE_FWK_EVENTSETUP_MODULE(type)
Definition: ModuleFactory.h:60
boost::shared_ptr< DetLayerGeometry > produce(const RecoGeometryRecord &)