test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Private Attributes
EcalLaserCorrectionService Class Reference

#include <EcalLaserCorrectionService.h>

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

Public Member Functions

void alphaCallback (const EcalLaserAlphasRcd &fRecord)
 
void apdpnCallback (const EcalLaserAPDPNRatiosRcd &fRecord)
 
void apdpnRefCallback (const EcalLaserAPDPNRatiosRefRcd &fRecord)
 
 EcalLaserCorrectionService (const edm::ParameterSet &)
 
void linearCallback (const EcalLinearCorrectionsRcd &fRecord)
 
boost::shared_ptr
< EcalLaserDbService
produce (const EcalLaserDbRecord &)
 
 ~EcalLaserCorrectionService ()
 
- Public Member Functions inherited from edm::ESProducer
 ESProducer ()
 
virtual ~ESProducer ()
 
- Public Member Functions inherited from edm::ESProxyFactoryProducer
 ESProxyFactoryProducer ()
 
virtual void newInterval (const eventsetup::EventSetupRecordKey &iRecordType, const ValidityInterval &iInterval)
 overrides DataProxyProvider method More...
 
virtual ~ESProxyFactoryProducer ()
 
- Public Member Functions inherited from edm::eventsetup::DataProxyProvider
 DataProxyProvider ()
 
const ComponentDescriptiondescription () const
 
bool isUsingRecord (const EventSetupRecordKey &) const
 
const KeyedProxieskeyedProxies (const EventSetupRecordKey &iRecordKey) const
 
void resetProxies (const EventSetupRecordKey &iRecordType)
 
void resetProxiesIfTransient (const EventSetupRecordKey &iRecordType)
 
void setAppendToDataLabel (const edm::ParameterSet &)
 
void setDescription (const ComponentDescription &iDescription)
 
std::set< EventSetupRecordKeyusingRecords () const
 
virtual ~DataProxyProvider ()
 

Private Attributes

boost::shared_ptr
< EcalLaserDbService
mService_
 

Additional Inherited Members

- Public Types inherited from edm::eventsetup::DataProxyProvider
typedef std::vector< std::pair
< DataKey,
edm::propagate_const
< std::shared_ptr< DataProxy > > > > 
KeyedProxies
 
typedef std::vector
< EventSetupRecordKey
Keys
 
typedef std::map
< EventSetupRecordKey,
KeyedProxies
RecordProxies
 
- Static Public Member Functions inherited from edm::eventsetup::DataProxyProvider
static void prevalidate (ConfigurationDescriptions &)
 
- Protected Member Functions inherited from edm::ESProducer
template<typename T >
void setWhatProduced (T *iThis, const es::Label &iLabel=es::Label())
 
template<typename T >
void setWhatProduced (T *iThis, const char *iLabel)
 
template<typename T >
void setWhatProduced (T *iThis, const std::string &iLabel)
 
template<typename T , typename TDecorator >
void setWhatProduced (T *iThis, const TDecorator &iDec, const es::Label &iLabel=es::Label())
 
template<typename T , typename TReturn , typename TRecord >
void setWhatProduced (T *iThis, TReturn(T::*iMethod)(const TRecord &), const es::Label &iLabel=es::Label())
 
template<typename T , typename TReturn , typename TRecord , typename TArg >
void setWhatProduced (T *iThis, TReturn(T::*iMethod)(const TRecord &), const TArg &iDec, const es::Label &iLabel=es::Label())
 
- Protected Member Functions inherited from edm::ESProxyFactoryProducer
template<class TFactory >
void registerFactory (std::auto_ptr< TFactory > iFactory, const std::string &iLabel=std::string())
 
virtual void registerFactoryWithKey (const eventsetup::EventSetupRecordKey &iRecord, std::auto_ptr< eventsetup::ProxyFactoryBase > &iFactory, const std::string &iLabel=std::string())
 
virtual void registerProxies (const eventsetup::EventSetupRecordKey &iRecord, KeyedProxies &aProxyList)
 override DataProxyProvider method More...
 
- Protected Member Functions inherited from edm::eventsetup::DataProxyProvider
void eraseAll (const EventSetupRecordKey &iRecordKey)
 deletes all the Proxies in aStream More...
 
void invalidateProxies (const EventSetupRecordKey &iRecordKey)
 
template<class T >
void usingRecord ()
 
void usingRecordWithKey (const EventSetupRecordKey &)
 

Detailed Description

Definition at line 22 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(), linearCallback(), and edm::ESProducer::setWhatProduced().

19  : ESProducer(),
21  // mDumpRequest (),
22  // mDumpStream(0)
23 {
24  //the following line is needed to tell the framework what
25  // data is being produced
26  // setWhatProduced (this, (dependsOn (&EcalLaserCorrectionService::apdpnCallback)));
27 
32  )
33  );
34 
35  //now do what ever other initialization is needed
36 
37  // mDumpRequest = fConfig.getUntrackedParameter <std::vector <std::string> > ("dump", std::vector<std::string>());
38  // if (!mDumpRequest.empty()) {
39  // std::string otputFile = fConfig.getUntrackedParameter <std::string> ("file", "");
40  // mDumpStream = otputFile.empty () ? &std::cout : new std::ofstream (otputFile.c_str());
41  // }
42 }
void linearCallback(const EcalLinearCorrectionsRcd &fRecord)
depends_on::OneHolder< T, TDependsOnRecord > dependsOn(void(T::*iT)(const TDependsOnRecord &))
void setWhatProduced(T *iThis, const es::Label &iLabel=es::Label())
Definition: ESProducer.h:115
boost::shared_ptr< EcalLaserDbService > mService_
void alphaCallback(const EcalLaserAlphasRcd &fRecord)
void apdpnRefCallback(const EcalLaserAPDPNRatiosRefRcd &fRecord)
void apdpnCallback(const EcalLaserAPDPNRatiosRcd &fRecord)
EcalLaserCorrectionService::~EcalLaserCorrectionService ( )

Definition at line 45 of file EcalLaserCorrectionService.cc.

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

Member Function Documentation

void EcalLaserCorrectionService::alphaCallback ( const EcalLaserAlphasRcd fRecord)

Definition at line 64 of file EcalLaserCorrectionService.cc.

References edm::eventsetup::EventSetupRecord::get(), mService_, and edm::ESHandle< class >::product().

Referenced by EcalLaserCorrectionService().

64  {
66  fRecord.get (item);
67  mService_->setAlphaData (item.product ());
68 }
void get(HolderT &iHolder) const
boost::shared_ptr< EcalLaserDbService > mService_
T const * product() const
Definition: ESHandle.h:86
void EcalLaserCorrectionService::apdpnCallback ( const EcalLaserAPDPNRatiosRcd fRecord)

Definition at line 76 of file EcalLaserCorrectionService.cc.

References edm::eventsetup::EventSetupRecord::get(), mService_, and edm::ESHandle< class >::product().

Referenced by EcalLaserCorrectionService().

76  {
78  fRecord.get (item);
79  mService_->setAPDPNData (item.product ());
80 }
void get(HolderT &iHolder) const
boost::shared_ptr< EcalLaserDbService > mService_
T const * product() const
Definition: ESHandle.h:86
void EcalLaserCorrectionService::apdpnRefCallback ( const EcalLaserAPDPNRatiosRefRcd fRecord)

Definition at line 70 of file EcalLaserCorrectionService.cc.

References edm::eventsetup::EventSetupRecord::get(), mService_, and edm::ESHandle< class >::product().

Referenced by EcalLaserCorrectionService().

70  {
72  fRecord.get (item);
73  mService_->setAPDPNRefData (item.product ());
74 }
void get(HolderT &iHolder) const
boost::shared_ptr< EcalLaserDbService > mService_
T const * product() const
Definition: ESHandle.h:86
void EcalLaserCorrectionService::linearCallback ( const EcalLinearCorrectionsRcd fRecord)

Definition at line 82 of file EcalLaserCorrectionService.cc.

References edm::eventsetup::EventSetupRecord::get(), mService_, and edm::ESHandle< class >::product().

Referenced by EcalLaserCorrectionService().

82  {
84  fRecord.get (item);
85  mService_->setLinearCorrectionsData (item.product ());
86 }
void get(HolderT &iHolder) const
boost::shared_ptr< EcalLaserDbService > mService_
T const * product() const
Definition: ESHandle.h:86
boost::shared_ptr< EcalLaserDbService > EcalLaserCorrectionService::produce ( const EcalLaserDbRecord )

Definition at line 59 of file EcalLaserCorrectionService.cc.

References mService_.

Referenced by JSONExport.JsonExport::export(), HTMLExport.HTMLExport::export(), and HTMLExport.HTMLExportStatic::export().

60 {
61  return mService_;
62 }
boost::shared_ptr< EcalLaserDbService > mService_

Member Data Documentation

boost::shared_ptr<EcalLaserDbService> EcalLaserCorrectionService::mService_
private