#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) | |
OMDSReader (const OMDSReader &)=delete | |
const OMDSReader & | operator= (const OMDSReader &)=delete |
template<class T > | |
const QueryResults | singleAttribute (const T &data) const |
~OMDSReader () override | |
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 () |
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 42 of file OMDSReader.h.
OMDSReader::OMDSReader | ( | ) |
Definition at line 36 of file OMDSReader.cc.
OMDSReader::OMDSReader | ( | const std::string & | connectString, |
const std::string & | authenticationPath | ||
) |
Definition at line 38 of file OMDSReader.cc.
References l1t::DataManager::session, cond::persistency::Transaction::start(), and cond::persistency::Session::transaction().
|
delete |
|
override |
Definition at line 53 of file OMDSReader.cc.
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 75 of file OMDSReader.cc.
References l1t::OMDSReader::QueryResults::attributeLists(), l1t::OMDSReader::QueryResults::columnNames(), columnNames(), cond::persistency::Session::coralSession(), l1t::OMDSReader::QueryResults::fillVariable(), ALPAKA_ACCELERATOR_NAMESPACE::vertexFinder::it, l1t::OMDSReader::QueryResults::numberRows(), contentValuesFiles::query, l1t::DataManager::session, AlCaHLTBitMon_QueryRunRegistry::string, TableParser::table, HLT_2024v14_cff::tableName, and createJobs::tmp.
Referenced by L1GtPsbSetupConfigOnlineProd::addPsbFromDb(), basicQuery(), basicQueryView(), l1t::OnlineDBqueryHelper::fetch(), L1TUtmTriggerMenuObjectKeysOnlineProd::fillObjectKeys(), CSCTFObjectKeysOnlineProd::fillObjectKeys(), L1GctTSCObjectKeysOnlineProd::fillObjectKeys(), L1GctRSObjectKeysOnlineProd::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(), L1MuCSCPtLutConfigOnlineProd::newObject(), L1MuGMTChannelMaskOnlineProducer::newObject(), CSCTFConfigOnlineProd::newObject(), L1GctChannelMaskOnlineProd::newObject(), L1GctJetFinderParamsOnlineProd::newObject(), L1TUtmTriggerMenuOnlineProd::newObject(), L1TGlobalPrescalesVetosOnlineProd::newObject(), L1EmEtScaleOnlineProd::newObject(), L1HfRingEtScaleOnlineProd::newObject(), L1HtMissScaleOnlineProd::newObject(), L1JetEtScaleOnlineProd::newObject(), L1MuTriggerPtScaleOnlineProducer::newObject(), DTTFMasksOnlineProd::newObject(), DTTFParametersOnlineProd::newObject(), L1MuTriggerScalesOnlineProducer::newObject(), L1RCTParametersOnlineProd::newObject(), L1GtParametersConfigOnlineProd::newObject(), L1GtPrescaleFactorsAlgoTrigConfigOnlineProd::newObject(), L1GtTriggerMaskTechTrigConfigOnlineProd::newObject(), L1RCTChannelMaskOnlineProd::newObject(), L1GtTriggerMaskAlgoTrigConfigOnlineProd::newObject(), L1CaloEcalScaleConfigOnlineProd::newObject(), L1GtTriggerMaskVetoTechTrigConfigOnlineProd::newObject(), L1GtPrescaleFactorsTechTrigConfigOnlineProd::newObject(), L1GtPsbSetupConfigOnlineProd::newObject(), L1CaloHcalScaleConfigOnlineProd::newObject(), L1SubsystemKeysOnlineProdExt::produce(), 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 127 of file OMDSReader.cc.
References basicQuery(), columnNames(), and HLT_2024v14_cff::tableName.
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 194 of file OMDSReader.h.
References l1t::OMDSReader::QueryResults::attributeLists(), l1t::OMDSReader::QueryResults::columnNames(), columnNames(), cond::persistency::Session::coralSession(), l1t::OMDSReader::QueryResults::fillVariable(), ALPAKA_ACCELERATOR_NAMESPACE::vertexFinder::it, l1t::OMDSReader::QueryResults::numberRows(), contentValuesFiles::query, l1t::DataManager::session, TableParser::table, HLT_2024v14_cff::tableName, and createJobs::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 247 of file OMDSReader.h.
References columnNames(), and HLT_2024v14_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 158 of file OMDSReader.cc.
References l1t::OMDSReader::QueryResults::attributeLists(), l1t::OMDSReader::QueryResults::columnNames(), columnNames(), cond::persistency::Session::coralSession(), l1t::OMDSReader::QueryResults::fillVariable(), l1t::OMDSReader::QueryResults::numberRows(), contentValuesFiles::query, l1t::DataManager::session, AlCaHLTBitMon_QueryRunRegistry::string, and createJobs::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 223 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 138 of file OMDSReader.cc.
References cond::persistency::Session::coralSession(), mps_fire::i, names, l1t::DataManager::session, TableParser::table, and HLT_2024v14_cff::tableName.
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 234 of file OMDSReader.cc.
References cond::persistency::Session::coralSession(), mps_fire::i, names, 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 43 of file OMDSReader.cc.
References CSC_BadChambers_cfi::authenticationPath, l1t::DataManager::connect(), l1t::DataManager::session, cond::persistency::Transaction::start(), and cond::persistency::Session::transaction().
Referenced by L1ConfigOnlineProdBase< L1HtMissScaleRcd, L1CaloEtScale >::L1ConfigOnlineProdBase(), L1ConfigOnlineProdBaseExt< L1TCaloParamsO2ORcd, l1t::CaloParams >::L1ConfigOnlineProdBaseExt(), and o2o_db_cfgmap.DbManagerDAQ::update_hashmap().
|
delete |
const OMDSReader::QueryResults OMDSReader::singleAttribute | ( | const T & | data | ) | const |
Definition at line 259 of file OMDSReader.h.
Referenced by L1GtPsbSetupConfigOnlineProd::addPsbFromDb(), l1t::OnlineDBqueryHelper::fetch(), CSCTFObjectKeysOnlineProd::fillObjectKeys(), L1TUtmTriggerMenuObjectKeysOnlineProd::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(), CSCTFConfigOnlineProd::newObject(), L1GctJetFinderParamsOnlineProd::newObject(), L1MuCSCPtLutConfigOnlineProd::newObject(), L1MuGMTChannelMaskOnlineProducer::newObject(), L1TUtmTriggerMenuOnlineProd::newObject(), L1TGlobalPrescalesVetosOnlineProd::newObject(), L1HfRingEtScaleOnlineProd::newObject(), L1EmEtScaleOnlineProd::newObject(), L1HtMissScaleOnlineProd::newObject(), L1JetEtScaleOnlineProd::newObject(), L1MuTriggerPtScaleOnlineProducer::newObject(), DTTFParametersOnlineProd::newObject(), DTTFMasksOnlineProd::newObject(), L1MuTriggerScalesOnlineProducer::newObject(), L1RCTParametersOnlineProd::newObject(), L1GtParametersConfigOnlineProd::newObject(), L1GtTriggerMaskAlgoTrigConfigOnlineProd::newObject(), L1GtPrescaleFactorsTechTrigConfigOnlineProd::newObject(), L1CaloEcalScaleConfigOnlineProd::newObject(), L1RCTChannelMaskOnlineProd::newObject(), L1GtPrescaleFactorsAlgoTrigConfigOnlineProd::newObject(), L1GtTriggerMaskTechTrigConfigOnlineProd::newObject(), L1GtTriggerMaskVetoTechTrigConfigOnlineProd::newObject(), L1GtPsbSetupConfigOnlineProd::newObject(), L1CaloHcalScaleConfigOnlineProd::newObject(), L1SubsystemKeysOnlineProdExt::produce(), L1SubsystemKeysOnlineProd::produce(), L1GtTriggerMenuConfigOnlineProd::tableMenuAlgoCondFromDB(), L1GtTriggerMenuConfigOnlineProd::tableMenuAlgoFromDB(), L1GtTriggerMenuConfigOnlineProd::tableMenuCondFromDB(), L1GtTriggerMenuConfigOnlineProd::tableMenuGeneralFromDB(), L1GtTriggerMenuConfigOnlineProd::tableMenuObjectParametersFromDB(), and L1GtTriggerMenuConfigOnlineProd::tableMenuTechTrigFromDB().