CMS 3D CMS Logo

Public Member Functions | Private Attributes

TrackerRecoGeometryESProducer Class Reference

#include <TrackerRecoGeometryESProducer.h>

Inheritance diagram for TrackerRecoGeometryESProducer:
edm::ESProducer edm::ESProxyFactoryProducer edm::eventsetup::DataProxyProvider

List of all members.

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

Detailed Description

Definition at line 11 of file TrackerRecoGeometryESProducer.h.


Constructor & Destructor Documentation

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.

{}

Member Function Documentation

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;
}

Member Data Documentation

Definition at line 17 of file TrackerRecoGeometryESProducer.h.

Definition at line 18 of file TrackerRecoGeometryESProducer.h.