#include <TrackerRecoGeometryESProducer.h>
Public Member Functions | |
boost::shared_ptr < GeometricSearchTracker > | produce (const TrackerRecoGeometryRecord &) |
TrackerRecoGeometryESProducer (const edm::ParameterSet &p) | |
virtual | ~TrackerRecoGeometryESProducer () |
Private Attributes | |
boost::shared_ptr < GeometricSearchTracker > | _tracker |
std::string | geoLabel |
Definition at line 11 of file TrackerRecoGeometryESProducer.h.
TrackerRecoGeometryESProducer::TrackerRecoGeometryESProducer | ( | const edm::ParameterSet & | p | ) |
Definition at line 19 of file TrackerRecoGeometryESProducer.cc.
References edm::ParameterSet::getUntrackedParameter().
{ setWhatProduced(this); // 08-Oct-2007 - Patrick Janot // Allow several reco geometries to be created, corresponding to the labelled // TrackerDigiGeometry's - that must created beforehand. Useful to handle an // aligned and a misaligned geometry in the same job. // The default parameter ("") makes this change transparent to the user // See FastSimulation/Configuration/data/ for examples of cfi's. geoLabel = p.getUntrackedParameter<std::string>("trackerGeometryLabel",""); }
TrackerRecoGeometryESProducer::~TrackerRecoGeometryESProducer | ( | ) | [virtual] |
Definition at line 31 of file TrackerRecoGeometryESProducer.cc.
{}
boost::shared_ptr< GeometricSearchTracker > TrackerRecoGeometryESProducer::produce | ( | const TrackerRecoGeometryRecord & | iRecord | ) |
Definition at line 34 of file TrackerRecoGeometryESProducer.cc.
References GeometricSearchTrackerBuilder::build(), and edm::eventsetup::DependentRecordImplementation< RecordT, ListT >::getRecord().
{ edm::ESHandle<TrackerGeometry> tG; iRecord.getRecord<TrackerDigiGeometryRecord>().get( geoLabel, tG ); GeometricSearchTrackerBuilder builder; _tracker = boost::shared_ptr<GeometricSearchTracker>(builder.build( tG->trackerDet(), &(*tG) )); return _tracker; }
boost::shared_ptr<GeometricSearchTracker> TrackerRecoGeometryESProducer::_tracker [private] |
Definition at line 17 of file TrackerRecoGeometryESProducer.h.
std::string TrackerRecoGeometryESProducer::geoLabel [private] |
Definition at line 18 of file TrackerRecoGeometryESProducer.h.