CMS 3D CMS Logo

Public Member Functions | Private Attributes

EcalLaserCorrectionService Class Reference

#include <EcalLaserCorrectionService.h>

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

List of all members.

Public Member Functions

void alphaCallback (const EcalLaserAlphasRcd &fRecord)
void apdpnCallback (const EcalLaserAPDPNRatiosRcd &fRecord)
void apdpnRefCallback (const EcalLaserAPDPNRatiosRefRcd &fRecord)
 EcalLaserCorrectionService (const edm::ParameterSet &)
boost::shared_ptr
< EcalLaserDbService
produce (const EcalLaserDbRecord &)
 ~EcalLaserCorrectionService ()

Private Attributes

boost::shared_ptr
< EcalLaserDbService
mService_

Detailed Description

Definition at line 21 of file EcalLaserCorrectionService.h.


Constructor & Destructor Documentation

EcalLaserCorrectionService::EcalLaserCorrectionService ( const edm::ParameterSet fConfig)

Definition at line 18 of file EcalLaserCorrectionService.cc.

References alphaCallback(), apdpnCallback(), apdpnRefCallback(), edm::eventsetup::dependsOn(), and edm::ESProducer::setWhatProduced().

  : ESProducer(),
    mService_ ( new EcalLaserDbService ())
    //    mDumpRequest (),
    //    mDumpStream(0)
{
  //the following line is needed to tell the framework what
  // data is being produced
  //  setWhatProduced (this, (dependsOn (&EcalLaserCorrectionService::apdpnCallback)));

  setWhatProduced (this, (dependsOn (&EcalLaserCorrectionService::alphaCallback) &
                          (&EcalLaserCorrectionService::apdpnRefCallback) &
                          (&EcalLaserCorrectionService::apdpnCallback) )
                   );

  //now do what ever other initialization is needed

  //  mDumpRequest = fConfig.getUntrackedParameter <std::vector <std::string> > ("dump", std::vector<std::string>());
  //  if (!mDumpRequest.empty()) {
  //    std::string otputFile = fConfig.getUntrackedParameter <std::string> ("file", "");
  //    mDumpStream = otputFile.empty () ? &std::cout : new std::ofstream (otputFile.c_str());
  //  }
}
EcalLaserCorrectionService::~EcalLaserCorrectionService ( )

Definition at line 43 of file EcalLaserCorrectionService.cc.

{
 
   // do anything here that needs to be done at desctruction time
   // (e.g. close files, deallocate resources etc.)
  //  if (mDumpStream != &std::cout) delete mDumpStream;
}

Member Function Documentation

void EcalLaserCorrectionService::alphaCallback ( const EcalLaserAlphasRcd fRecord)
void EcalLaserCorrectionService::apdpnCallback ( const EcalLaserAPDPNRatiosRcd fRecord)
void EcalLaserCorrectionService::apdpnRefCallback ( const EcalLaserAPDPNRatiosRefRcd fRecord)
boost::shared_ptr< EcalLaserDbService > EcalLaserCorrectionService::produce ( const EcalLaserDbRecord )

Definition at line 57 of file EcalLaserCorrectionService.cc.

References mService_.

{
  return mService_;
}

Member Data Documentation