CMS 3D CMS Logo

Public Types | Public Member Functions | Protected Member Functions | Private Attributes

RingESSource Class Reference

#include <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().

                                                         : fileName_((iConfig.getParameter<edm::FileInPath>("InputFileName")).fullPath()) {
  
  std::string componentName = iConfig.getParameter<std::string>("ComponentName");
  setWhatProduced(this, componentName);
    
  findingRecord<RingRecord>();
  
  rings_ = 0;
}
RingESSource::~RingESSource ( )

Definition at line 30 of file RingESSource.cc.

{
   
}

Member Function Documentation

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

Definition at line 36 of file RingESSource.cc.

References fileName_, RingESSource_cfi::rings, and rings_.

{
  using namespace edm::es;

  rings_ = new Rings(fileName_);
  
  std::auto_ptr<Rings> rings(rings_);

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

Member Data Documentation

std::string RingESSource::fileName_ [private]

Definition at line 55 of file RingESSource.h.

Referenced by produce().

Definition at line 56 of file RingESSource.h.

Referenced by produce(), and RingESSource().