CMS 3D CMS Logo

RoadMapESSource Class Reference

#include <RecoTracker/RoadMapESSource/interface/RoadMapESSource.h>

Inheritance diagram for RoadMapESSource:

edm::ESProducer edm::EventSetupRecordIntervalFinder edm::ESProxyFactoryProducer edm::eventsetup::DataProxyProvider

List of all members.

Public Types

typedef std::auto_ptr< RoadsReturnType

Public Member Functions

ReturnType produce (const RoadMapRecord &)
 RoadMapESSource (const edm::ParameterSet &)
 ~RoadMapESSource ()

Protected Member Functions

virtual void setIntervalFor (const edm::eventsetup::EventSetupRecordKey &, const edm::IOVSyncValue &, edm::ValidityInterval &)

Private Attributes

std::string fileName_
std::string ringsLabel_
Roadsroads_


Detailed Description

Definition at line 33 of file RoadMapESSource.h.


Member Typedef Documentation

typedef std::auto_ptr<Roads> RoadMapESSource::ReturnType

Definition at line 40 of file RoadMapESSource.h.


Constructor & Destructor Documentation

RoadMapESSource::RoadMapESSource ( const edm::ParameterSet iConfig  ) 

Definition at line 25 of file RoadMapESSource.cc.

References edm::ParameterSet::getParameter(), ringsLabel_, roads_, and edm::ESProducer::setWhatProduced().

00025                                                                : 
00026   fileName_((iConfig.getParameter<edm::FileInPath>("InputFileName")).fullPath())
00027 {
00028 
00029   std::string componentName = iConfig.getParameter<std::string>("ComponentName");
00030   setWhatProduced(this, componentName);
00031 
00032   ringsLabel_ = iConfig.getParameter<std::string>("RingsLabel");
00033 
00034   findingRecord<RoadMapRecord>();
00035   
00036   roads_ = 0;
00037 }

RoadMapESSource::~RoadMapESSource (  ) 

Definition at line 40 of file RoadMapESSource.cc.

00041 {
00042 }


Member Function Documentation

RoadMapESSource::ReturnType RoadMapESSource::produce ( const RoadMapRecord iRecord  ) 

Definition at line 45 of file RoadMapESSource.cc.

References fileName_, edm::eventsetup::DependentRecordImplementation< RecordT, ListT >::getRecord(), edm::ESHandle< T >::product(), RingMakerESProducer_cfi::rings, ringsLabel_, RoadMapMakerESProducer_cfi::roads, and roads_.

00046 {
00047 
00048   // get rings
00049   edm::ESHandle<Rings> ringHandle;
00050   iRecord.getRecord<RingRecord>().get(ringsLabel_, ringHandle);
00051   const Rings *rings = ringHandle.product();
00052 
00053   roads_ = new Roads(fileName_,rings);
00054   
00055   std::auto_ptr<Roads> roads(roads_);
00056 
00057   return roads ;
00058 }

void RoadMapESSource::setIntervalFor ( const edm::eventsetup::EventSetupRecordKey ,
const edm::IOVSyncValue ,
edm::ValidityInterval oValidity 
) [protected, virtual]

Implements edm::EventSetupRecordIntervalFinder.

Definition at line 60 of file RoadMapESSource.cc.

References edm::IOVSyncValue::beginOfTime(), and edm::IOVSyncValue::endOfTime().


Member Data Documentation

std::string RoadMapESSource::fileName_ [private]

Definition at line 50 of file RoadMapESSource.h.

Referenced by produce().

std::string RoadMapESSource::ringsLabel_ [private]

Definition at line 52 of file RoadMapESSource.h.

Referenced by produce(), and RoadMapESSource().

Roads* RoadMapESSource::roads_ [private]

Definition at line 54 of file RoadMapESSource.h.

Referenced by produce(), and RoadMapESSource().


The documentation for this class was generated from the following files:
Generated on Tue Jun 9 18:30:49 2009 for CMSSW by  doxygen 1.5.4