#include <L1TOMDSHelper.h>
Public Types | |
enum | Error { NO_ERROR = 0, WARNING_DB_CONN_FAILED, WARNING_DB_QUERY_FAILED, WARNING_DB_INCORRECT_NBUNCHES } |
Public Member Functions | |
bool | connect (std::string iOracleDB, std::string iPathCondDB, int &error) |
std::string | enumToStringError (int) |
BeamConfiguration | getBeamConfiguration (int lhcFillNumber, int &error) |
std::vector< bool > | getBunchStructure (int lhcFillNumber, int &error) |
std::vector< float > | getInitBunchLumi (int lhcFillNumber, int &error) |
int | getNumberCollidingBunches (int lhcFillNumber, int &error) |
std::vector< double > | getRelativeBunchLumi (int lhcFillNumber, int &error) |
std::map< std::string, WbMTriggerXSecFit > | getWbMAlgoXsecFits (int &error) |
std::map< std::string, WbMTriggerXSecFit > | getWbMTechXsecFits (int &error) |
std::map< std::string, WbMTriggerXSecFit > | getWbMTriggerXsecFits (std::string iTable, int &error) |
L1TOMDSHelper () | |
~L1TOMDSHelper () | |
Private Attributes | |
l1t::OMDSReader * | m_omdsReader |
std::string | m_oracleDB |
std::string | m_pathCondDB |
Definition at line 50 of file L1TOMDSHelper.h.
enum L1TOMDSHelper::Error |
Enumerator | |
---|---|
NO_ERROR | |
WARNING_DB_CONN_FAILED | |
WARNING_DB_QUERY_FAILED | |
WARNING_DB_INCORRECT_NBUNCHES |
Definition at line 52 of file L1TOMDSHelper.h.
L1TOMDSHelper::L1TOMDSHelper | ( | ) |
Definition at line 9 of file L1TOMDSHelper.cc.
L1TOMDSHelper::~L1TOMDSHelper | ( | ) |
Definition at line 12 of file L1TOMDSHelper.cc.
bool L1TOMDSHelper::connect | ( | std::string | iOracleDB, |
std::string | iPathCondDB, | ||
int & | error | ||
) |
Definition at line 15 of file L1TOMDSHelper.cc.
References relativeConstraints::error, and MillePedeFileConverter_cfg::out.
Referenced by L1TRate::getXSexFitsOMDS(), and o2o_db_cfgmap.DbManagerDAQ::update_hashmap().
string L1TOMDSHelper::enumToStringError | ( | int | iObject | ) |
BeamConfiguration L1TOMDSHelper::getBeamConfiguration | ( | int | lhcFillNumber, |
int & | error | ||
) |
Definition at line 143 of file L1TOMDSHelper.cc.
References BeamConfiguration::beam1, BeamConfiguration::beam2, relativeConstraints::error, l1t::OMDSReader::QueryResults::fillVariableFromRow(), mps_fire::i, BeamConfiguration::m_valid, BeamConfiguration::nCollidingBunches, l1t::OMDSReader::QueryResults::numberRows(), l1t::OMDSReader::QueryResults::queryFailed(), and TableParser::table.
vector< bool > L1TOMDSHelper::getBunchStructure | ( | int | lhcFillNumber, |
int & | error | ||
) |
Definition at line 203 of file L1TOMDSHelper.cc.
References relativeConstraints::error, l1t::OMDSReader::QueryResults::fillVariableFromRow(), mps_fire::i, l1t::OMDSReader::QueryResults::numberRows(), l1t::OMDSReader::QueryResults::queryFailed(), and TableParser::table.
vector< float > L1TOMDSHelper::getInitBunchLumi | ( | int | lhcFillNumber, |
int & | error | ||
) |
Definition at line 247 of file L1TOMDSHelper.cc.
References relativeConstraints::error, l1t::OMDSReader::QueryResults::fillVariableFromRow(), mps_fire::i, l1t::OMDSReader::QueryResults::numberRows(), l1t::OMDSReader::QueryResults::queryFailed(), and TableParser::table.
int L1TOMDSHelper::getNumberCollidingBunches | ( | int | lhcFillNumber, |
int & | error | ||
) |
Definition at line 99 of file L1TOMDSHelper.cc.
References relativeConstraints::error, l1t::OMDSReader::QueryResults::fillVariableFromRow(), mps_fire::i, l1t::OMDSReader::QueryResults::numberRows(), l1t::OMDSReader::QueryResults::queryFailed(), and TableParser::table.
vector< double > L1TOMDSHelper::getRelativeBunchLumi | ( | int | lhcFillNumber, |
int & | error | ||
) |
Definition at line 285 of file L1TOMDSHelper.cc.
References relativeConstraints::error, l1t::OMDSReader::QueryResults::fillVariableFromRow(), mps_fire::i, l1t::OMDSReader::QueryResults::numberRows(), l1t::OMDSReader::QueryResults::queryFailed(), and TableParser::table.
map< string, WbMTriggerXSecFit > L1TOMDSHelper::getWbMAlgoXsecFits | ( | int & | error | ) |
Definition at line 89 of file L1TOMDSHelper.cc.
References relativeConstraints::error.
map< string, WbMTriggerXSecFit > L1TOMDSHelper::getWbMTechXsecFits | ( | int & | error | ) |
Definition at line 94 of file L1TOMDSHelper.cc.
References relativeConstraints::error.
map< string, WbMTriggerXSecFit > L1TOMDSHelper::getWbMTriggerXsecFits | ( | std::string | iTable, |
int & | error | ||
) |
Definition at line 44 of file L1TOMDSHelper.cc.
References WbMTriggerXSecFit::bitName, WbMTriggerXSecFit::bitNumber, relativeConstraints::error, l1t::OMDSReader::QueryResults::fillVariableFromRow(), WbMTriggerXSecFit::fitFunction, mps_fire::i, l1t::OMDSReader::QueryResults::numberRows(), MillePedeFileConverter_cfg::out, WbMTriggerXSecFit::p0, WbMTriggerXSecFit::p1, WbMTriggerXSecFit::p2, WbMTriggerXSecFit::pm1, and l1t::OMDSReader::QueryResults::queryFailed().
|
private |
Definition at line 74 of file L1TOMDSHelper.h.
|
private |
Definition at line 71 of file L1TOMDSHelper.h.
|
private |
Definition at line 72 of file L1TOMDSHelper.h.