#include <GlobalDetLayerGeometryESProducer.h>
Public Member Functions | |
GlobalDetLayerGeometryESProducer (const edm::ParameterSet &p) | |
boost::shared_ptr < DetLayerGeometry > | produce (const RecoGeometryRecord &) |
virtual | ~GlobalDetLayerGeometryESProducer () |
Private Attributes | |
boost::shared_ptr < DetLayerGeometry > | geometry_ |
Definition at line 10 of file GlobalDetLayerGeometryESProducer.h.
GlobalDetLayerGeometryESProducer::GlobalDetLayerGeometryESProducer | ( | const edm::ParameterSet & | p | ) |
Definition at line 13 of file GlobalDetLayerGeometryESProducer.cc.
References edm::ParameterSet::getParameter(), and AlCaHLTBitMon_QueryRunRegistry::string.
{ std::string myName = p.getParameter<std::string>("ComponentName"); setWhatProduced(this,myName); }
GlobalDetLayerGeometryESProducer::~GlobalDetLayerGeometryESProducer | ( | ) | [virtual] |
Definition at line 19 of file GlobalDetLayerGeometryESProducer.cc.
{}
boost::shared_ptr< DetLayerGeometry > GlobalDetLayerGeometryESProducer::produce | ( | const RecoGeometryRecord & | iRecord | ) |
Definition at line 22 of file GlobalDetLayerGeometryESProducer.cc.
References edm::eventsetup::DependentRecordImplementation< RecordT, ListT >::getRecord(), GlobalDetLayerGeometryESProducer_cfi::GlobalDetLayerGeometry, metsig::muon, edm::ESHandle< T >::product(), and patCandidatesForDimuonsSequences_cff::tracker.
{ edm::ESHandle<GeometricSearchTracker> tracker; edm::ESHandle<MuonDetLayerGeometry> muon; iRecord.getRecord<TrackerRecoGeometryRecord>().get(tracker); iRecord.getRecord<MuonRecoGeometryRecord>().get(muon); geometry_ = boost::shared_ptr<DetLayerGeometry>(new GlobalDetLayerGeometry(tracker.product(), muon.product() )); return geometry_; }
boost::shared_ptr<DetLayerGeometry> GlobalDetLayerGeometryESProducer::geometry_ [private] |
Definition at line 16 of file GlobalDetLayerGeometryESProducer.h.