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 &)
 
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, boost::shared_ptr
< DataProxy > > > 
KeyedProxies
 
typedef std::vector
< EventSetupRecordKey
Keys
 
typedef std::map
< EventSetupRecordKey,
KeyedProxies
RecordProxies
 
- 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 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().

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 
31  );
32 
33  //now do what ever other initialization is needed
34 
35  // mDumpRequest = fConfig.getUntrackedParameter <std::vector <std::string> > ("dump", std::vector<std::string>());
36  // if (!mDumpRequest.empty()) {
37  // std::string otputFile = fConfig.getUntrackedParameter <std::string> ("file", "");
38  // mDumpStream = otputFile.empty () ? &std::cout : new std::ofstream (otputFile.c_str());
39  // }
40 }
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 43 of file EcalLaserCorrectionService.cc.

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

Member Function Documentation

void EcalLaserCorrectionService::alphaCallback ( const EcalLaserAlphasRcd fRecord)

Definition at line 62 of file EcalLaserCorrectionService.cc.

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

Referenced by EcalLaserCorrectionService().

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

Definition at line 74 of file EcalLaserCorrectionService.cc.

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

Referenced by EcalLaserCorrectionService().

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

Definition at line 68 of file EcalLaserCorrectionService.cc.

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

Referenced by EcalLaserCorrectionService().

68  {
70  fRecord.get (item);
71  mService_->setAPDPNRefData (item.product ());
72 }
void get(HolderT &iHolder) const
boost::shared_ptr< EcalLaserDbService > mService_
T const * product() const
Definition: ESHandle.h:62
boost::shared_ptr< EcalLaserDbService > EcalLaserCorrectionService::produce ( const EcalLaserDbRecord )

Definition at line 57 of file EcalLaserCorrectionService.cc.

References mService_.

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

58 {
59  return mService_;
60 }
boost::shared_ptr< EcalLaserDbService > mService_

Member Data Documentation

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