Gather conditions data from online DB. More...
#include <HcalDbOnline.h>
Public Types | |
typedef std::pair< IOVTime, IOVTime > | IntervalOV |
typedef unsigned long long | IOVTime |
Public Member Functions | |
std::vector< IntervalOV > | getIOVs (const std::string &fTag) |
bool | getObject (HcalPedestals *fObject, HcalPedestalWidths *fWidths, const std::string &fTag, IOVTime fTime) |
bool | getObject (HcalPedestals *fObject, const std::string &fTag, IOVTime fTime) |
bool | getObject (HcalGains *fObject, HcalGainWidths *fWidths, const std::string &fTag, IOVTime fTime) |
bool | getObject (HcalGains *fObject, const std::string &fTag, IOVTime fTime) |
bool | getObject (HcalPedestalWidths *fObject, const std::string &fTag, IOVTime fTime) |
bool | getObject (HcalGainWidths *fObject, const std::string &fTag, IOVTime fTime) |
bool | getObject (HcalElectronicsMap *fObject, const std::string &fTag, IOVTime fTime) |
bool | getObject (HcalQIEData *fObject, const std::string &fTag, IOVTime fTime) |
bool | getObject (HcalCalibrationQIEData *fObject, const std::string &fTag, IOVTime fTime) |
HcalDbOnline (const std::string &fDb, bool fVerbose=false) | |
std::vector< std::string > | metadataAllTags () |
~HcalDbOnline () | |
Private Member Functions | |
template<class T > | |
bool | getObjectGeneric (T *fObject, const std::string &fTag) |
Private Attributes | |
oracle::occi::Connection * | mConnect |
oracle::occi::Environment * | mEnvironment |
oracle::occi::Statement * | mStatement |
bool | mVerbose |
Gather conditions data from online DB.
Definition at line 34 of file HcalDbOnline.h.
typedef std::pair<IOVTime, IOVTime> HcalDbOnline::IntervalOV |
Definition at line 37 of file HcalDbOnline.h.
typedef unsigned long long HcalDbOnline::IOVTime |
Definition at line 36 of file HcalDbOnline.h.
HcalDbOnline::HcalDbOnline | ( | const std::string & | fDb, |
bool | fVerbose = false |
||
) |
Definition at line 26 of file HcalDbOnline.cc.
References ecal_dqm_sourceclient-live_cfg::cerr, query::host, mConnect, mEnvironment, mStatement, AlCaHLTBitMon_QueryRunRegistry::string, and hcal_dqm_sourceclient-file_cfg::user.
HcalDbOnline::~HcalDbOnline | ( | ) |
std::vector< HcalDbOnline::IntervalOV > HcalDbOnline::getIOVs | ( | const std::string & | fTag | ) |
Definition at line 591 of file HcalDbOnline.cc.
References ecal_dqm_sourceclient-live_cfg::cerr, gather_cfg::cout, bookConverter::max, mStatement, mVerbose, query::result, and AlCaHLTBitMon_QueryRunRegistry::string.
Referenced by copyObject(), and printRuns().
bool HcalDbOnline::getObject | ( | HcalPedestals * | fObject, |
HcalPedestalWidths * | fWidths, | ||
const std::string & | fTag, | ||
IOVTime | fTime | ||
) |
Definition at line 417 of file HcalDbOnline.cc.
References HcalCondObjectContainer< Item >::addValues(), ecal_dqm_sourceclient-live_cfg::cerr, gather_cfg::cout, HLT_25ns14e33_v1_cff::depth, eta(), HcalCondObjectContainer< Item >::exists(), i, cmsHarvester::index, j, mStatement, mVerbose, phi, HcalPedestalWidth::setSigma(), AlCaHLTBitMon_QueryRunRegistry::string, makeHLTPrescaleTable::values, and detailsBasic3DVector::z.
Referenced by copyObject(), and getObject().
bool HcalDbOnline::getObject | ( | HcalPedestals * | fObject, |
const std::string & | fTag, | ||
IOVTime | fTime | ||
) |
Definition at line 488 of file HcalDbOnline.cc.
References getObject().
bool HcalDbOnline::getObject | ( | HcalGains * | fObject, |
HcalGainWidths * | fWidths, | ||
const std::string & | fTag, | ||
IOVTime | fTime | ||
) |
Definition at line 496 of file HcalDbOnline.cc.
References HcalCondObjectContainer< Item >::addValues(), ecal_dqm_sourceclient-live_cfg::cerr, gather_cfg::cout, HLT_25ns14e33_v1_cff::depth, eta(), HcalCondObjectContainer< Item >::exists(), i, cmsHarvester::index, mStatement, mVerbose, phi, AlCaHLTBitMon_QueryRunRegistry::string, makeHLTPrescaleTable::values, and detailsBasic3DVector::z.
Definition at line 563 of file HcalDbOnline.cc.
References getObject().
bool HcalDbOnline::getObject | ( | HcalPedestalWidths * | fObject, |
const std::string & | fTag, | ||
IOVTime | fTime | ||
) |
Definition at line 492 of file HcalDbOnline.cc.
References getObject().
bool HcalDbOnline::getObject | ( | HcalGainWidths * | fObject, |
const std::string & | fTag, | ||
IOVTime | fTime | ||
) |
Definition at line 567 of file HcalDbOnline.cc.
References getObject().
bool HcalDbOnline::getObject | ( | HcalElectronicsMap * | fObject, |
const std::string & | fTag, | ||
IOVTime | fTime | ||
) |
Definition at line 60 of file HcalDbOnline.cc.
References ecal_dqm_sourceclient-live_cfg::cerr, gather_cfg::cout, HLT_25ns14e33_v1_cff::depth, cond::rpcobgas::detid, eta(), cmsHarvester::index, HcalElectronicsMap::mapEId2chId(), mStatement, mVerbose, phi, HcalElectronicsId::setHTR(), HcalElectronicsMap::sort(), AlCaHLTBitMon_QueryRunRegistry::string, GlobalPosition_Frontier_DevDB_cff::tag, and detailsBasic3DVector::z.
bool HcalDbOnline::getObject | ( | HcalQIEData * | fObject, |
const std::string & | fTag, | ||
IOVTime | fTime | ||
) |
Definition at line 122 of file HcalDbOnline.cc.
References HcalQIEData::addCoder(), ecal_dqm_sourceclient-live_cfg::cerr, gather_cfg::cout, HLT_25ns14e33_v1_cff::depth, eta(), i, cmsHarvester::index, mStatement, mVerbose, hltrates_dqm_sourceclient-live_cfg::offset, phi, HcalQIECoder::setOffset(), HcalQIECoder::setSlope(), slope, HcalQIEData::sort(), AlCaHLTBitMon_QueryRunRegistry::string, and detailsBasic3DVector::z.
bool HcalDbOnline::getObject | ( | HcalCalibrationQIEData * | fObject, |
const std::string & | fTag, | ||
IOVTime | fTime | ||
) |
Definition at line 279 of file HcalDbOnline.cc.
References HcalCalibrationQIEData::addCoder(), newFWLiteAna::bin, ecal_dqm_sourceclient-live_cfg::cerr, gather_cfg::cout, HLT_25ns14e33_v1_cff::depth, eta(), i, cmsHarvester::index, mStatement, mVerbose, phi, HcalCalibrationQIECoder::setMinCharges(), HcalCalibrationQIEData::sort(), AlCaHLTBitMon_QueryRunRegistry::string, makeHLTPrescaleTable::values, and detailsBasic3DVector::z.
|
private |
std::vector< std::string > HcalDbOnline::metadataAllTags | ( | ) |
Definition at line 571 of file HcalDbOnline.cc.
References ecal_dqm_sourceclient-live_cfg::cerr, gather_cfg::cout, mStatement, mVerbose, query::result, AlCaHLTBitMon_QueryRunRegistry::string, and GlobalPosition_Frontier_DevDB_cff::tag.
Referenced by printTags().
|
private |
Definition at line 58 of file HcalDbOnline.h.
Referenced by HcalDbOnline(), and ~HcalDbOnline().
|
private |
Definition at line 57 of file HcalDbOnline.h.
Referenced by HcalDbOnline(), and ~HcalDbOnline().
|
private |
Definition at line 59 of file HcalDbOnline.h.
Referenced by getIOVs(), getObject(), HcalDbOnline(), metadataAllTags(), and ~HcalDbOnline().
|
private |
Definition at line 61 of file HcalDbOnline.h.
Referenced by getIOVs(), getObject(), and metadataAllTags().