#include <OMDSReader.h>
Classes | |
class | QueryResults |
Public Member Functions | |
const QueryResults | basicQuery (const std::vector< std::string > &columnNames, const std::string &schemaName, const std::string &tableName, const std::string &conditionLHS="", const QueryResults conditionRHS=QueryResults(), const std::string &conditionRHSName="") |
const QueryResults | basicQuery (const std::string &columnName, const std::string &schemaName, const std::string &tableName, const std::string &conditionLHS="", const QueryResults conditionRHS=QueryResults(), const std::string &conditionRHSName="") |
template<class T > | |
const QueryResults | basicQueryGenericKey (const std::vector< std::string > &columnNames, const std::string &schemaName, const std::string &tableName, const std::string &conditionLHS="", const QueryResults conditionRHS=QueryResults(), const std::string &conditionRHSName="") |
template<class T > | |
const QueryResults | basicQueryGenericKey (const std::string &columnName, const std::string &schemaName, const std::string &tableName, const std::string &conditionLHS="", const QueryResults conditionRHS=QueryResults(), const std::string &conditionRHSName="") |
const QueryResults | basicQueryView (const std::vector< std::string > &columnNames, const std::string &schemaName, const std::string &viewName, const std::string &conditionLHS="", const QueryResults conditionRHS=QueryResults(), const std::string &conditionRHSName="") |
const QueryResults | basicQueryView (const std::string &columnName, const std::string &schemaName, const std::string &viewName, const std::string &conditionLHS="", const QueryResults conditionRHS=QueryResults(), const std::string &conditionRHSName="") |
std::vector< std::string > | columnNames (const std::string &schemaName, const std::string &tableName) |
std::vector< std::string > | columnNamesView (const std::string &schemaName, const std::string &viewName) |
void | connect (const std::string &connectString, const std::string &authenticationPath) |
OMDSReader () | |
OMDSReader (const std::string &connectString, const std::string &authenticationPath) | |
template<class T > | |
const QueryResults | singleAttribute (const T &data) const |
virtual | ~OMDSReader () |
Public Member Functions inherited from l1t::DataManager | |
void | connect (const std::string &connectString, const std::string &authenticationPath, bool isOMDS=false) |
DataManager () | |
DataManager (const std::string &connectString, const std::string &authenticationPath, bool isOMDS=false) | |
cond::persistency::Session | dbSession () |
void | setDebug (bool debug) |
virtual | ~DataManager () |
Private Member Functions | |
OMDSReader (const OMDSReader &) | |
const OMDSReader & | operator= (const OMDSReader &) |
Additional Inherited Members | |
Protected Member Functions inherited from l1t::DataManager | |
edm::eventsetup::TypeTag | findType (const std::string &type) |
Protected Attributes inherited from l1t::DataManager | |
cond::persistency::Session | session |
Definition at line 44 of file OMDSReader.h.
OMDSReader::OMDSReader | ( | ) |
Definition at line 37 of file OMDSReader.cc.
OMDSReader::OMDSReader | ( | const std::string & | connectString, |
const std::string & | authenticationPath | ||
) |
Definition at line 41 of file OMDSReader.cc.
References l1t::DataManager::session, cond::persistency::Transaction::start(), and cond::persistency::Session::transaction().
|
virtual |
Definition at line 61 of file OMDSReader.cc.
|
private |
const OMDSReader::QueryResults OMDSReader::basicQuery | ( | const std::vector< std::string > & | columnNames, |
const std::string & | schemaName, | ||
const std::string & | tableName, | ||
const std::string & | conditionLHS = "" , |
||
const QueryResults | conditionRHS = QueryResults() , |
||
const std::string & | conditionRHSName = "" |
||
) |
Definition at line 86 of file OMDSReader.cc.
References l1t::OMDSReader::QueryResults::attributeLists(), l1t::OMDSReader::QueryResults::columnNames(), cond::persistency::Session::coralSession(), end, l1t::OMDSReader::QueryResults::fillVariable(), l1t::OMDSReader::QueryResults::numberRows(), o2o::query, dataDML::schema, l1t::DataManager::session, AlCaHLTBitMon_QueryRunRegistry::string, TableParser::table, and tmp.
Referenced by L1GtPsbSetupConfigOnlineProd::addPsbFromDb(), basicQuery(), basicQueryView(), CSCTFObjectKeysOnlineProd::fillObjectKeys(), L1GctRSObjectKeysOnlineProd::fillObjectKeys(), L1GctTSCObjectKeysOnlineProd::fillObjectKeys(), L1MuGMTRSKeysOnlineProd::fillObjectKeys(), L1MuGMTParametersKeysOnlineProd::fillObjectKeys(), L1MuTriggerScaleKeysOnlineProd::fillObjectKeys(), DTTFRSKeysOnlineProd::fillObjectKeys(), DTTFTSCObjectKeysOnlineProd::fillObjectKeys(), RCTObjectKeysOnlineProd::fillObjectKeys(), L1RCT_RSKeysOnlineProd::fillObjectKeys(), L1GtTscObjectKeysOnlineProd::keyL1GtParameters(), L1GtRsObjectKeysOnlineProd::keyL1GtTriggerMaskAlgoTrig(), L1GtRsObjectKeysOnlineProd::keyL1GtTriggerMaskTechTrig(), L1GtRsObjectKeysOnlineProd::keyL1GtTriggerMaskVetoTechTrig(), L1GtTscObjectKeysOnlineProd::keyL1GtTriggerMenu(), CSCTFAlignmentOnlineProd::newObject(), L1MuGMTChannelMaskOnlineProducer::newObject(), CSCTFConfigOnlineProd::newObject(), L1GctChannelMaskOnlineProd::newObject(), L1GctJetFinderParamsOnlineProd::newObject(), L1MuCSCPtLutConfigOnlineProd::newObject(), L1MuTriggerPtScaleOnlineProducer::newObject(), L1JetEtScaleOnlineProd::newObject(), DTTFMasksOnlineProd::newObject(), DTTFParametersOnlineProd::newObject(), L1HfRingEtScaleOnlineProd::newObject(), L1EmEtScaleOnlineProd::newObject(), L1HtMissScaleOnlineProd::newObject(), L1MuTriggerScalesOnlineProducer::newObject(), L1RCTParametersOnlineProd::newObject(), L1CaloEcalScaleConfigOnlineProd::newObject(), L1RCTChannelMaskOnlineProd::newObject(), L1GtPrescaleFactorsTechTrigConfigOnlineProd::newObject(), L1GtParametersConfigOnlineProd::newObject(), L1GtTriggerMaskAlgoTrigConfigOnlineProd::newObject(), L1GtTriggerMaskVetoTechTrigConfigOnlineProd::newObject(), L1GtPrescaleFactorsAlgoTrigConfigOnlineProd::newObject(), L1GtTriggerMaskTechTrigConfigOnlineProd::newObject(), L1GtPsbSetupConfigOnlineProd::newObject(), L1CaloHcalScaleConfigOnlineProd::newObject(), and L1SubsystemKeysOnlineProd::produce().
const OMDSReader::QueryResults OMDSReader::basicQuery | ( | const std::string & | columnName, |
const std::string & | schemaName, | ||
const std::string & | tableName, | ||
const std::string & | conditionLHS = "" , |
||
const QueryResults | conditionRHS = QueryResults() , |
||
const std::string & | conditionRHSName = "" |
||
) |
Definition at line 150 of file OMDSReader.cc.
References basicQuery(), and columnNames().
const OMDSReader::QueryResults OMDSReader::basicQueryGenericKey | ( | const std::vector< std::string > & | columnNames, |
const std::string & | schemaName, | ||
const std::string & | tableName, | ||
const std::string & | conditionLHS = "" , |
||
const QueryResults | conditionRHS = QueryResults() , |
||
const std::string & | conditionRHSName = "" |
||
) |
Definition at line 217 of file OMDSReader.h.
References l1t::OMDSReader::QueryResults::attributeLists(), l1t::OMDSReader::QueryResults::columnNames(), cond::persistency::Session::coralSession(), end, l1t::OMDSReader::QueryResults::fillVariable(), l1t::OMDSReader::QueryResults::numberRows(), o2o::query, dataDML::schema, l1t::DataManager::session, TableParser::table, and tmp.
Referenced by L1GtRsObjectKeysOnlineProd::keyL1GtPrescaleFactorsAlgoTrig(), L1GtRsObjectKeysOnlineProd::keyL1GtPrescaleFactorsTechTrig(), L1GtRsObjectKeysOnlineProd::keyL1GtTriggerMaskAlgoTrig(), L1GtRsObjectKeysOnlineProd::keyL1GtTriggerMaskTechTrig(), and L1GtRsObjectKeysOnlineProd::keyL1GtTriggerMaskVetoTechTrig().
const OMDSReader::QueryResults OMDSReader::basicQueryGenericKey | ( | const std::string & | columnName, |
const std::string & | schemaName, | ||
const std::string & | tableName, | ||
const std::string & | conditionLHS = "" , |
||
const QueryResults | conditionRHS = QueryResults() , |
||
const std::string & | conditionRHSName = "" |
||
) |
Definition at line 281 of file OMDSReader.h.
References columnNames(), and HLT_Fake_cff::tableName.
const OMDSReader::QueryResults OMDSReader::basicQueryView | ( | const std::vector< std::string > & | columnNames, |
const std::string & | schemaName, | ||
const std::string & | viewName, | ||
const std::string & | conditionLHS = "" , |
||
const QueryResults | conditionRHS = QueryResults() , |
||
const std::string & | conditionRHSName = "" |
||
) |
Definition at line 192 of file OMDSReader.cc.
References l1t::OMDSReader::QueryResults::attributeLists(), l1t::OMDSReader::QueryResults::columnNames(), cond::persistency::Session::coralSession(), l1t::OMDSReader::QueryResults::fillVariable(), l1t::OMDSReader::QueryResults::numberRows(), o2o::query, dataDML::schema, l1t::DataManager::session, AlCaHLTBitMon_QueryRunRegistry::string, and tmp.
Referenced by L1GtPrescaleFactorsAlgoTrigConfigOnlineProd::newObject(), L1GtPrescaleFactorsTechTrigConfigOnlineProd::newObject(), L1CaloHcalScaleConfigOnlineProd::newObject(), L1GtTriggerMenuConfigOnlineProd::tableMenuAlgoCondFromDB(), L1GtTriggerMenuConfigOnlineProd::tableMenuAlgoFromDB(), L1GtTriggerMenuConfigOnlineProd::tableMenuCondFromDB(), L1GtTriggerMenuConfigOnlineProd::tableMenuGeneralFromDB(), L1GtTriggerMenuConfigOnlineProd::tableMenuObjectParametersFromDB(), and L1GtTriggerMenuConfigOnlineProd::tableMenuTechTrigFromDB().
const OMDSReader::QueryResults OMDSReader::basicQueryView | ( | const std::string & | columnName, |
const std::string & | schemaName, | ||
const std::string & | viewName, | ||
const std::string & | conditionLHS = "" , |
||
const QueryResults | conditionRHS = QueryResults() , |
||
const std::string & | conditionRHSName = "" |
||
) |
Definition at line 265 of file OMDSReader.cc.
References basicQuery(), and columnNames().
std::vector< std::string > OMDSReader::columnNames | ( | const std::string & | schemaName, |
const std::string & | tableName | ||
) |
Definition at line 165 of file OMDSReader.cc.
References cond::persistency::Session::coralSession(), i, cscdqm::h::names, dataDML::schema, l1t::DataManager::session, and TableParser::table.
Referenced by basicQuery(), basicQueryGenericKey(), basicQueryView(), L1GtTriggerMaskAlgoTrigConfigOnlineProd::newObject(), L1GtTriggerMaskVetoTechTrigConfigOnlineProd::newObject(), L1GtPrescaleFactorsTechTrigConfigOnlineProd::newObject(), L1GtPrescaleFactorsAlgoTrigConfigOnlineProd::newObject(), L1GtTriggerMaskTechTrigConfigOnlineProd::newObject(), and L1GtPsbSetupConfigOnlineProd::newObject().
std::vector< std::string > OMDSReader::columnNamesView | ( | const std::string & | schemaName, |
const std::string & | viewName | ||
) |
Definition at line 280 of file OMDSReader.cc.
References cond::persistency::Session::coralSession(), i, cscdqm::h::names, dataDML::schema, and l1t::DataManager::session.
Referenced by L1GtTriggerMenuConfigOnlineProd::tableMenuAlgoCondFromDB(), L1GtTriggerMenuConfigOnlineProd::tableMenuAlgoFromDB(), L1GtTriggerMenuConfigOnlineProd::tableMenuCondFromDB(), L1GtTriggerMenuConfigOnlineProd::tableMenuGeneralFromDB(), L1GtTriggerMenuConfigOnlineProd::tableMenuObjectParametersFromDB(), and L1GtTriggerMenuConfigOnlineProd::tableMenuTechTrigFromDB().
void OMDSReader::connect | ( | const std::string & | connectString, |
const std::string & | authenticationPath | ||
) |
Definition at line 49 of file OMDSReader.cc.
References l1t::DataManager::connect(), l1t::DataManager::session, cond::persistency::Transaction::start(), and cond::persistency::Session::transaction().
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(), L1ConfigOnlineProdBase< TRcd, TData >::L1ConfigOnlineProdBase(), 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().
|
private |
const OMDSReader::QueryResults OMDSReader::singleAttribute | ( | const T & | data | ) | const |
Definition at line 296 of file OMDSReader.h.
References cscdqm::h::names.
Referenced by L1GtPsbSetupConfigOnlineProd::addPsbFromDb(), CSCTFObjectKeysOnlineProd::fillObjectKeys(), L1GctTSCObjectKeysOnlineProd::fillObjectKeys(), L1MuGMTParametersKeysOnlineProd::fillObjectKeys(), L1MuTriggerScaleKeysOnlineProd::fillObjectKeys(), DTTFTSCObjectKeysOnlineProd::fillObjectKeys(), RCTObjectKeysOnlineProd::fillObjectKeys(), L1GtTscObjectKeysOnlineProd::keyL1GtParameters(), L1GtRsObjectKeysOnlineProd::keyL1GtPrescaleFactorsAlgoTrig(), L1GtRsObjectKeysOnlineProd::keyL1GtPrescaleFactorsTechTrig(), L1GtRsObjectKeysOnlineProd::keyL1GtTriggerMaskAlgoTrig(), L1GtRsObjectKeysOnlineProd::keyL1GtTriggerMaskTechTrig(), L1GtRsObjectKeysOnlineProd::keyL1GtTriggerMaskVetoTechTrig(), L1GtTscObjectKeysOnlineProd::keyL1GtTriggerMenu(), CSCTFAlignmentOnlineProd::newObject(), L1GctChannelMaskOnlineProd::newObject(), L1GctJetFinderParamsOnlineProd::newObject(), L1MuCSCPtLutConfigOnlineProd::newObject(), CSCTFConfigOnlineProd::newObject(), L1MuGMTChannelMaskOnlineProducer::newObject(), L1MuTriggerPtScaleOnlineProducer::newObject(), L1JetEtScaleOnlineProd::newObject(), L1EmEtScaleOnlineProd::newObject(), L1HtMissScaleOnlineProd::newObject(), L1HfRingEtScaleOnlineProd::newObject(), DTTFMasksOnlineProd::newObject(), DTTFParametersOnlineProd::newObject(), L1MuTriggerScalesOnlineProducer::newObject(), L1RCTParametersOnlineProd::newObject(), L1CaloEcalScaleConfigOnlineProd::newObject(), L1RCTChannelMaskOnlineProd::newObject(), L1GtPrescaleFactorsTechTrigConfigOnlineProd::newObject(), L1GtPrescaleFactorsAlgoTrigConfigOnlineProd::newObject(), L1GtTriggerMaskTechTrigConfigOnlineProd::newObject(), L1GtTriggerMaskAlgoTrigConfigOnlineProd::newObject(), L1GtTriggerMaskVetoTechTrigConfigOnlineProd::newObject(), L1GtParametersConfigOnlineProd::newObject(), L1GtPsbSetupConfigOnlineProd::newObject(), L1CaloHcalScaleConfigOnlineProd::newObject(), L1SubsystemKeysOnlineProd::produce(), L1GtTriggerMenuConfigOnlineProd::tableMenuAlgoCondFromDB(), L1GtTriggerMenuConfigOnlineProd::tableMenuAlgoFromDB(), L1GtTriggerMenuConfigOnlineProd::tableMenuCondFromDB(), L1GtTriggerMenuConfigOnlineProd::tableMenuGeneralFromDB(), L1GtTriggerMenuConfigOnlineProd::tableMenuObjectParametersFromDB(), and L1GtTriggerMenuConfigOnlineProd::tableMenuTechTrigFromDB().