CMS 3D CMS Logo

Public Member Functions | Protected Member Functions | Private Attributes

SiPixelFakeCPEGenericErrorParmESSource Class Reference

#include <SiPixelFakeCPEGenericErrorParmESSource.h>

Inheritance diagram for SiPixelFakeCPEGenericErrorParmESSource:
edm::ESProducer edm::EventSetupRecordIntervalFinder edm::ESProxyFactoryProducer edm::eventsetup::DataProxyProvider

List of all members.

Public Member Functions

virtual std::auto_ptr
< SiPixelCPEGenericErrorParm
produce (const SiPixelCPEGenericErrorParmRcd &)
 SiPixelFakeCPEGenericErrorParmESSource (const edm::ParameterSet &)
 ~SiPixelFakeCPEGenericErrorParmESSource ()

Protected Member Functions

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

Private Attributes

edm::FileInPath fp_
double version_

Detailed Description

Definition at line 13 of file SiPixelFakeCPEGenericErrorParmESSource.h.


Constructor & Destructor Documentation

SiPixelFakeCPEGenericErrorParmESSource::SiPixelFakeCPEGenericErrorParmESSource ( const edm::ParameterSet conf_)

Definition at line 4 of file SiPixelFakeCPEGenericErrorParmESSource.cc.

References edm::ESProducer::setWhatProduced().

                                                                                                           : fp_(conf_.getParameter<edm::FileInPath>("file")), version_(conf_.getParameter<double>("version"))
{
        edm::LogInfo("SiPixelFakeCPEGenericErrorParmESSource::SiPixelFakeCPEGenericErrorParmESSource");
        //the following line is needed to tell the framework what
        // data is being produced
        setWhatProduced(this);
        findingRecord<SiPixelCPEGenericErrorParmRcd>();
}
SiPixelFakeCPEGenericErrorParmESSource::~SiPixelFakeCPEGenericErrorParmESSource ( )

Definition at line 13 of file SiPixelFakeCPEGenericErrorParmESSource.cc.

{
}

Member Function Documentation

std::auto_ptr< SiPixelCPEGenericErrorParm > SiPixelFakeCPEGenericErrorParmESSource::produce ( const SiPixelCPEGenericErrorParmRcd ) [virtual]

Definition at line 17 of file SiPixelFakeCPEGenericErrorParmESSource.cc.

References fp_, edm::FileInPath::fullPath(), getGTfromDQMFile::obj, and version_.

{
        using namespace edm::es;
        SiPixelCPEGenericErrorParm * obj = new SiPixelCPEGenericErrorParm();
        obj->fillCPEGenericErrorParm(version_, fp_.fullPath());
        //std::cout << *obj << std::endl;

        return std::auto_ptr<SiPixelCPEGenericErrorParm>(obj);
}
void SiPixelFakeCPEGenericErrorParmESSource::setIntervalFor ( const edm::eventsetup::EventSetupRecordKey ,
const edm::IOVSyncValue iosv,
edm::ValidityInterval oValidity 
) [protected, virtual]

Member Data Documentation

Definition at line 29 of file SiPixelFakeCPEGenericErrorParmESSource.h.

Referenced by produce().

Definition at line 30 of file SiPixelFakeCPEGenericErrorParmESSource.h.

Referenced by produce().