#include <TrackerInteractionGeometryESProducer.h>
Public Member Functions | |
boost::shared_ptr < TrackerInteractionGeometry > | produce (const TrackerInteractionGeometryRecord &) |
TrackerInteractionGeometryESProducer (const edm::ParameterSet &p) | |
virtual | ~TrackerInteractionGeometryESProducer () |
Private Attributes | |
std::string | _label |
boost::shared_ptr < TrackerInteractionGeometry > | _tracker |
edm::ParameterSet | theTrackerMaterial |
Definition at line 11 of file TrackerInteractionGeometryESProducer.h.
TrackerInteractionGeometryESProducer::TrackerInteractionGeometryESProducer | ( | const edm::ParameterSet & | p | ) |
Definition at line 9 of file TrackerInteractionGeometryESProducer.cc.
References _label, edm::ParameterSet::getParameter(), edm::ParameterSet::getUntrackedParameter(), edm::ESProducer::setWhatProduced(), and theTrackerMaterial.
{ setWhatProduced(this); _label = p.getUntrackedParameter<std::string>("trackerGeometryLabel",""); theTrackerMaterial = p.getParameter<edm::ParameterSet>("TrackerMaterial"); }
TrackerInteractionGeometryESProducer::~TrackerInteractionGeometryESProducer | ( | ) | [virtual] |
Definition at line 18 of file TrackerInteractionGeometryESProducer.cc.
{}
boost::shared_ptr< TrackerInteractionGeometry > TrackerInteractionGeometryESProducer::produce | ( | const TrackerInteractionGeometryRecord & | iRecord | ) |
Definition at line 21 of file TrackerInteractionGeometryESProducer.cc.
References _label, _tracker, edm::eventsetup::DependentRecordImplementation< RecordT, ListT >::getRecord(), and theTrackerMaterial.
{ edm::ESHandle<GeometricSearchTracker> theGeomSearchTracker; iRecord.getRecord<TrackerRecoGeometryRecord>().get(_label, theGeomSearchTracker ); _tracker = boost::shared_ptr<TrackerInteractionGeometry> (new TrackerInteractionGeometry(theTrackerMaterial,&(*theGeomSearchTracker))); return _tracker; }
std::string TrackerInteractionGeometryESProducer::_label [private] |
Definition at line 18 of file TrackerInteractionGeometryESProducer.h.
Referenced by produce(), and TrackerInteractionGeometryESProducer().
boost::shared_ptr<TrackerInteractionGeometry> TrackerInteractionGeometryESProducer::_tracker [private] |
Definition at line 17 of file TrackerInteractionGeometryESProducer.h.
Referenced by produce().
Definition at line 19 of file TrackerInteractionGeometryESProducer.h.
Referenced by produce(), and TrackerInteractionGeometryESProducer().