Gather config data from online DB. More...
#include <HCALConfigDB.h>
Public Types | |
typedef hcal::ConfigurationDatabaseImpl | ConfigurationDatabaseImpl |
Public Member Functions | |
std::string | clobToString (const oracle::occi::Clob &) |
void | connect (std::string _accessor) |
void | connect (std::string _accessor1, std::string _accessor2) |
void | disconnect (void) |
oracle::occi::Connection * | getConnection (void) |
oracle::occi::Environment * | getEnvironment (void) |
std::vector< unsigned int > | getOnlineLUT (std::string tag, int crate, int slot, int topbottom, int fiber, int channel, int luttype) |
std::vector< unsigned int > | getOnlineLUT (std::string tag, uint32_t _rawid, hcal::ConfigurationDatabase::LUTType _lt=hcal::ConfigurationDatabase::LinearizerLUT) |
std::vector< unsigned int > | getOnlineLUTFromXML (std::string tag, uint32_t _rawid, hcal::ConfigurationDatabase::LUTType _lt=hcal::ConfigurationDatabase::LinearizerLUT) |
HCALConfigDB () | |
HCALConfigDB (std::string _accessor) | |
void | setAccessor (std::string _accessor) |
~HCALConfigDB () | |
Protected Attributes | |
std::string | accessor |
std::string | accessor2 |
ConfigurationDatabaseImpl * | database |
ConfigurationDatabaseImpl * | database2 |
Gather config data from online DB.
Definition at line 20 of file HCALConfigDB.h.
typedef hcal::ConfigurationDatabaseImpl HCALConfigDB::ConfigurationDatabaseImpl |
Definition at line 22 of file HCALConfigDB.h.
HCALConfigDB::HCALConfigDB | ( | void | ) |
Definition at line 30 of file HCALConfigDB.cc.
HCALConfigDB::~HCALConfigDB | ( | void | ) |
Definition at line 41 of file HCALConfigDB.cc.
HCALConfigDB::HCALConfigDB | ( | std::string | _accessor | ) |
Definition at line 35 of file HCALConfigDB.cc.
string HCALConfigDB::clobToString | ( | const oracle::occi::Clob & | _clob | ) |
Definition at line 297 of file HCALConfigDB.cc.
References findQualityFiles::size, str, and AlCaHLTBitMon_QueryRunRegistry::string.
Referenced by HcalLutManager::get_brickSet_from_oracle().
void HCALConfigDB::connect | ( | std::string | _accessor | ) |
Definition at line 48 of file HCALConfigDB.cc.
References mps_fire::i.
Referenced by HcalLutManager::get_brickSet_from_oracle(), HcalQIEManager::getHfQieTable(), HcalQIEManager::getTableFromDb(), and o2o_db_cfgmap.DbManagerDAQ::update_hashmap().
void HCALConfigDB::connect | ( | std::string | _accessor1, |
std::string | _accessor2 | ||
) |
Definition at line 61 of file HCALConfigDB.cc.
References convertSQLitetoXML_cfg::connect, and mps_fire::i.
Referenced by o2o_db_cfgmap.DbManagerDAQ::update_hashmap().
void HCALConfigDB::disconnect | ( | void | ) |
Definition at line 76 of file HCALConfigDB.cc.
Referenced by HcalLutManager::get_brickSet_from_oracle(), HcalQIEManager::getHfQieTable(), and HcalQIEManager::getTableFromDb().
oracle::occi::Connection * HCALConfigDB::getConnection | ( | void | ) |
Definition at line 292 of file HCALConfigDB.cc.
Referenced by HcalLutManager::get_brickSet_from_oracle(), HcalQIEManager::getHfQieTable(), HcalQIEManager::getTableFromDb(), and ws_sso_content_reader.HTTPSClientAuthHandler::https_open().
oracle::occi::Environment * HCALConfigDB::getEnvironment | ( | void | ) |
Definition at line 294 of file HCALConfigDB.cc.
std::vector< unsigned int > HCALConfigDB::getOnlineLUT | ( | std::string | tag, |
int | crate, | ||
int | slot, | ||
int | topbottom, | ||
int | fiber, | ||
int | channel, | ||
int | luttype | ||
) |
Definition at line 83 of file HCALConfigDB.cc.
References gather_cfg::cout, alignCSCRings::e, Exception, beamvalidation::exit(), XMLProcessor::getInstance(), mps_fire::result, and TtFullHadDaughter::Top.
std::vector< unsigned int > HCALConfigDB::getOnlineLUT | ( | std::string | tag, |
uint32_t | _rawid, | ||
hcal::ConfigurationDatabase::LUTType | _lt = hcal::ConfigurationDatabase::LinearizerLUT |
||
) |
Definition at line 129 of file HCALConfigDB.cc.
References HcalDetId::depth(), HLT_FULL_cff::depth, alignCSCRings::e, HcalBarrel, HcalEndcap, HcalForward, HcalOuter, HcalDetId::ietaAbs(), HcalDetId::iphi(), phi, contentValuesFiles::query, mps_fire::result, AlCaHLTBitMon_QueryRunRegistry::string, HcalDetId::subdet(), subdetector, TtFullHadDaughter::Top, toolbox::toString(), and HcalDetId::zside().
std::vector< unsigned int > HCALConfigDB::getOnlineLUTFromXML | ( | std::string | tag, |
uint32_t | _rawid, | ||
hcal::ConfigurationDatabase::LUTType | _lt = hcal::ConfigurationDatabase::LinearizerLUT |
||
) |
Definition at line 207 of file HCALConfigDB.cc.
References gather_cfg::cout, HcalDetId::depth(), HLT_FULL_cff::depth, alignCSCRings::e, HcalBarrel, HcalEndcap, HcalForward, HcalOuter, HcalDetId::ietaAbs(), HcalDetId::iphi(), phi, contentValuesFiles::query, mps_fire::result, AlCaHLTBitMon_QueryRunRegistry::string, HcalDetId::subdet(), subdetector, TtFullHadDaughter::Top, toolbox::toString(), and HcalDetId::zside().
void HCALConfigDB::setAccessor | ( | std::string | _accessor | ) |
Definition at line 46 of file HCALConfigDB.cc.
|
protected |
Definition at line 48 of file HCALConfigDB.h.
|
protected |
Definition at line 55 of file HCALConfigDB.h.
|
protected |
Definition at line 49 of file HCALConfigDB.h.
|
protected |
Definition at line 56 of file HCALConfigDB.h.