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 Member Functions | Private Attributes
HcalDbPoolOCCI Class Reference

Gather conditions data from online DB. More...

#include <HcalDbPoolOCCI.h>

Public Member Functions

bool getObject (HcalPedestals *fObject, const std::string &fTag, unsigned long fRun)
 
bool getObject (HcalGains *fObject, const std::string &fTag, unsigned long fRun)
 
bool getObject (HcalElectronicsMap *fObject, const std::string &fTag, unsigned long fRun)
 
 HcalDbPoolOCCI (const std::string &fDb)
 
 ~HcalDbPoolOCCI ()
 

Private Member Functions

std::string getDataToken (const std::string &fIov, unsigned long fRun)
 
std::string getMetadataToken (const std::string &fTag)
 
template<class T , class S >
bool getObjectGeneric (T *fObject, S *fCondObject, const std::string &fTag, unsigned long fRun)
 

Private Attributes

oracle::occi::Connection * mConnect
 
oracle::occi::Environment * mEnvironment
 
oracle::occi::Statement * mStatement
 

Detailed Description

Gather conditions data from online DB.

Author
Fedor Ratnikov

Definition at line 33 of file HcalDbPoolOCCI.h.

Constructor & Destructor Documentation

HcalDbPoolOCCI::HcalDbPoolOCCI ( const std::string &  fDb)

Definition at line 39 of file HcalDbPoolOCCI.cc.

HcalDbPoolOCCI::~HcalDbPoolOCCI ( )

Definition at line 66 of file HcalDbPoolOCCI.cc.

Member Function Documentation

std::string HcalDbPoolOCCI::getDataToken ( const std::string &  fIov,
unsigned long  fRun 
)
private

Definition at line 112 of file HcalDbPoolOCCI.cc.

std::string HcalDbPoolOCCI::getMetadataToken ( const std::string &  fTag)
private

Definition at line 88 of file HcalDbPoolOCCI.cc.

bool HcalDbPoolOCCI::getObject ( HcalPedestals fObject,
const std::string &  fTag,
unsigned long  fRun 
)

Definition at line 72 of file HcalDbPoolOCCI.cc.

bool HcalDbPoolOCCI::getObject ( HcalGains fObject,
const std::string &  fTag,
unsigned long  fRun 
)

Definition at line 77 of file HcalDbPoolOCCI.cc.

bool HcalDbPoolOCCI::getObject ( HcalElectronicsMap fObject,
const std::string &  fTag,
unsigned long  fRun 
)

Definition at line 82 of file HcalDbPoolOCCI.cc.

template<class T , class S >
bool HcalDbPoolOCCI::getObjectGeneric ( T fObject,
S fCondObject,
const std::string &  fTag,
unsigned long  fRun 
)
private

Definition at line 141 of file HcalDbPoolOCCI.cc.

Member Data Documentation

oracle::occi::Connection* HcalDbPoolOCCI::mConnect
private

Definition at line 43 of file HcalDbPoolOCCI.h.

oracle::occi::Environment* HcalDbPoolOCCI::mEnvironment
private

Definition at line 42 of file HcalDbPoolOCCI.h.

oracle::occi::Statement* HcalDbPoolOCCI::mStatement
private

Definition at line 44 of file HcalDbPoolOCCI.h.