CMS 3D CMS Logo

RingESSource Class Reference

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

Inheritance diagram for RingESSource:

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

List of all members.

Public Types

typedef std::auto_ptr< RingsReturnType

Public Member Functions

ReturnType produce (const RingRecord &)
 RingESSource (const edm::ParameterSet &)
 ~RingESSource ()

Protected Member Functions

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

Private Attributes

std::string fileName_
Ringsrings_


Detailed Description

Definition at line 37 of file RingESSource.h.


Member Typedef Documentation

typedef std::auto_ptr<Rings> RingESSource::ReturnType

Definition at line 44 of file RingESSource.h.


Constructor & Destructor Documentation

RingESSource::RingESSource ( const edm::ParameterSet iConfig  ) 

Definition at line 19 of file RingESSource.cc.

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

00019                                                          : fileName_((iConfig.getParameter<edm::FileInPath>("InputFileName")).fullPath()) {
00020   
00021   std::string componentName = iConfig.getParameter<std::string>("ComponentName");
00022   setWhatProduced(this, componentName);
00023     
00024   findingRecord<RingRecord>();
00025   
00026   rings_ = 0;
00027 }

RingESSource::~RingESSource (  ) 

Definition at line 30 of file RingESSource.cc.

00031 {
00032    
00033 }


Member Function Documentation

RingESSource::ReturnType RingESSource::produce ( const RingRecord iRecord  ) 

Definition at line 36 of file RingESSource.cc.

References fileName_, RingMakerESProducer_cfi::rings, and rings_.

00037 {
00038   using namespace edm::es;
00039 
00040   rings_ = new Rings(fileName_);
00041   
00042   std::auto_ptr<Rings> rings(rings_);
00043 
00044   return rings ;
00045 }

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

Implements edm::EventSetupRecordIntervalFinder.

Definition at line 47 of file RingESSource.cc.

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


Member Data Documentation

std::string RingESSource::fileName_ [private]

Definition at line 55 of file RingESSource.h.

Referenced by produce().

Rings* RingESSource::rings_ [private]

Definition at line 56 of file RingESSource.h.

Referenced by produce(), and RingESSource().


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