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 21 of file HCALConfigDB.h.
typedef hcal::ConfigurationDatabaseImpl HCALConfigDB::ConfigurationDatabaseImpl |
Definition at line 23 of file HCALConfigDB.h.
HCALConfigDB::HCALConfigDB | ( | void | ) |
Definition at line 27 of file HCALConfigDB.cc.
HCALConfigDB::~HCALConfigDB | ( | void | ) |
Definition at line 41 of file HCALConfigDB.cc.
HCALConfigDB::HCALConfigDB | ( | std::string | _accessor | ) |
Definition at line 33 of file HCALConfigDB.cc.
string HCALConfigDB::clobToString | ( | const oracle::occi::Clob & | _clob | ) |
Definition at line 295 of file HCALConfigDB.cc.
References findQualityFiles::size, and AlCaHLTBitMon_QueryRunRegistry::string.
void HCALConfigDB::connect | ( | std::string | _accessor | ) |
Definition at line 53 of file HCALConfigDB.cc.
References convertSQLitetoXML_cfg::connect, spr::find(), and i.
Referenced by Vispa.Gui.ZoomableScrollArea.ZoomableScrollArea::__init__(), Vispa.Views.PropertyView.BooleanProperty::__init__(), Vispa.Gui.FindDialog.FindDialog::_addScript(), Vispa.Gui.FindDialog.FindDialog::_addStringProperty(), Vispa.Main.Application.Application::_connectSignals(), Vispa.Plugins.ConfigEditor.CodeTableView.CodeTableView::_createItem(), Vispa.Gui.BoxContentDialog.BoxContentDialog::addButton(), Vispa.Gui.ToolBoxContainer.ToolBoxContainer::addWidget(), Vispa.Views.PropertyView.PropertyView::append(), Vispa.Views.PropertyView.PropertyView::appendAddRow(), Vispa.Main.Application.Application::createAction(), Vispa.Views.PropertyView.TextEditWithButtonProperty::createButton(), Vispa.Views.LineDecayView.LineDecayView::createLineDecayContainer(), Vispa.Views.PropertyView.TextEditWithButtonProperty::createLineEdit(), Vispa.Views.LineDecayView.LineDecayContainer::createObject(), Vispa.Views.PropertyView.TextEditWithButtonProperty::createTextEdit(), Vispa.Plugins.Browser.BrowserTabController.BrowserTabController::filterDialog(), Vispa.Plugins.Browser.BrowserTabController.BrowserTabController::find(), Vispa.Gui.PortWidget.PortWidget::mouseMoveEvent(), Vispa.Views.PropertyView.BooleanProperty::setChecked(), Vispa.Main.SplitterTab.SplitterTab::setController(), Vispa.Plugins.Browser.BrowserTab.BrowserTab::setController(), Vispa.Views.PropertyView.BooleanProperty::setReadOnly(), Vispa.Views.PropertyView.DropDownProperty::setReadOnly(), Vispa.Views.PropertyView.TextEditWithButtonProperty::setReadOnly(), Vispa.Plugins.Browser.BrowserTabController.BrowserTabController::setTab(), Vispa.Views.PropertyView.IntegerProperty::setValue(), Vispa.Plugins.Browser.BrowserTabController.BrowserTabController::switchCenterView(), Vispa.Plugins.EdmBrowser.EdmBrowserTabController.EdmBrowserTabController::updateViewMenu(), and Vispa.Plugins.ConfigEditor.ConfigEditorTabController.ConfigEditorTabController::updateViewMenu().
void HCALConfigDB::connect | ( | std::string | _accessor1, |
std::string | _accessor2 | ||
) |
Definition at line 73 of file HCALConfigDB.cc.
References convertSQLitetoXML_cfg::connect, spr::find(), and i.
Referenced by Vispa.Gui.ZoomableScrollArea.ZoomableScrollArea::__init__(), Vispa.Views.PropertyView.BooleanProperty::__init__(), Vispa.Gui.FindDialog.FindDialog::_addScript(), Vispa.Gui.FindDialog.FindDialog::_addStringProperty(), Vispa.Main.Application.Application::_connectSignals(), Vispa.Plugins.ConfigEditor.CodeTableView.CodeTableView::_createItem(), Vispa.Gui.BoxContentDialog.BoxContentDialog::addButton(), Vispa.Gui.ToolBoxContainer.ToolBoxContainer::addWidget(), Vispa.Views.PropertyView.PropertyView::append(), Vispa.Views.PropertyView.PropertyView::appendAddRow(), Vispa.Main.Application.Application::createAction(), Vispa.Views.PropertyView.TextEditWithButtonProperty::createButton(), Vispa.Views.LineDecayView.LineDecayView::createLineDecayContainer(), Vispa.Views.PropertyView.TextEditWithButtonProperty::createLineEdit(), Vispa.Views.LineDecayView.LineDecayContainer::createObject(), Vispa.Views.PropertyView.TextEditWithButtonProperty::createTextEdit(), Vispa.Plugins.Browser.BrowserTabController.BrowserTabController::filterDialog(), Vispa.Plugins.Browser.BrowserTabController.BrowserTabController::find(), Vispa.Gui.PortWidget.PortWidget::mouseMoveEvent(), Vispa.Views.PropertyView.BooleanProperty::setChecked(), Vispa.Main.SplitterTab.SplitterTab::setController(), Vispa.Plugins.Browser.BrowserTab.BrowserTab::setController(), Vispa.Views.PropertyView.BooleanProperty::setReadOnly(), Vispa.Views.PropertyView.DropDownProperty::setReadOnly(), Vispa.Views.PropertyView.TextEditWithButtonProperty::setReadOnly(), Vispa.Plugins.Browser.BrowserTabController.BrowserTabController::setTab(), Vispa.Views.PropertyView.IntegerProperty::setValue(), Vispa.Plugins.Browser.BrowserTabController.BrowserTabController::switchCenterView(), Vispa.Plugins.EdmBrowser.EdmBrowserTabController.EdmBrowserTabController::updateViewMenu(), and Vispa.Plugins.ConfigEditor.ConfigEditorTabController.ConfigEditorTabController::updateViewMenu().
void HCALConfigDB::disconnect | ( | void | ) |
Definition at line 96 of file HCALConfigDB.cc.
References NULL.
Referenced by Vispa.Views.LineDecayView.LineDecayView::createLineDecayContainer(), Vispa.Views.PropertyView.BooleanProperty::setChecked(), Vispa.Views.PropertyView.BooleanProperty::setReadOnly(), Vispa.Views.PropertyView.DropDownProperty::setReadOnly(), Vispa.Views.PropertyView.TextEditWithButtonProperty::setReadOnly(), Vispa.Views.PropertyView.IntegerProperty::setValue(), Vispa.Plugins.EdmBrowser.EdmBrowserTabController.EdmBrowserTabController::updateViewMenu(), and Vispa.Plugins.ConfigEditor.ConfigEditorTabController.ConfigEditorTabController::updateViewMenu().
oracle::occi::Connection * HCALConfigDB::getConnection | ( | void | ) |
Definition at line 284 of file HCALConfigDB.cc.
Referenced by ws_sso_content_reader.HTTPSClientAuthHandler::https_open().
oracle::occi::Environment * HCALConfigDB::getEnvironment | ( | void | ) |
Definition at line 288 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 104 of file HCALConfigDB.cc.
References gather_cfg::cout, alignCSCRings::e, reco::e2, edm::hlt::Exception, cmsRelvalreport::exit, XMLProcessor::getInstance(), query::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 149 of file HCALConfigDB.cc.
References alignCSCRings::e, getInt(), HcalBarrel, HcalEndcap, HcalForward, HcalOuter, phi, o2o::query, query::result, AlCaHLTBitMon_QueryRunRegistry::string, TtFullHadDaughter::Top, and toString().
std::vector< unsigned int > HCALConfigDB::getOnlineLUTFromXML | ( | std::string | tag, |
uint32_t | _rawid, | ||
hcal::ConfigurationDatabase::LUTType | _lt = hcal::ConfigurationDatabase::LinearizerLUT |
||
) |
Definition at line 212 of file HCALConfigDB.cc.
References gather_cfg::cout, alignCSCRings::e, getInt(), HcalBarrel, HcalEndcap, HcalForward, HcalOuter, phi, o2o::query, query::result, AlCaHLTBitMon_QueryRunRegistry::string, TtFullHadDaughter::Top, and toString().
void HCALConfigDB::setAccessor | ( | std::string | _accessor | ) |
Definition at line 48 of file HCALConfigDB.cc.
|
protected |
Definition at line 43 of file HCALConfigDB.h.
|
protected |
Definition at line 50 of file HCALConfigDB.h.
|
protected |
Definition at line 44 of file HCALConfigDB.h.
|
protected |
Definition at line 51 of file HCALConfigDB.h.