BOSS 7.0.8
BESIII Offline Software System
|
#include <ConnectionDB.h>
Public Types | |
enum | eRet { RETOk = 0 , RETBadCnfFile = 1 , RETBadHost = 2 , RETNoConnect = 3 , RETWrongState = 4 , RETBadValue = 5 , RETMySQLError = 6 , RETNoSchemaMatch = 7 } |
enum | eLevel { LEVELProd = 1 , LEVELDev = 2 , LEVELTest = 4 , LEVELSuperseded = 8 } |
Used to form bit masks for dbs queries. More... | |
Public Member Functions | |
ConnectionDB () | |
Constructor keeps track of table of interest. | |
~ConnectionDB () | |
ConnectionDB::eRet | getReadSC_MagnetInfo (std::vector< double > ¤t, int runNo) |
ConnectionDB::eRet | getBeamEnergy (std::vector< double > &beamE, int runNo) |
bool | getReadSC_MagnetInfo (std::map< int, std::vector< double > > &m_mapMagnetInfo, int runFrom, int runTo) |
bool | getBeamEnergy (std::map< int, std::vector< double > > &m_mapBeamEnergy, int runFrom, int runTo) |
Definition at line 13 of file ConnectionDB.h.
Used to form bit masks for dbs queries.
Enumerator | |
---|---|
LEVELProd | |
LEVELDev | |
LEVELTest | |
LEVELSuperseded |
Definition at line 36 of file ConnectionDB.h.
Enumerator | |
---|---|
RETOk | |
RETBadCnfFile | |
RETBadHost | |
RETNoConnect | |
RETWrongState | |
RETBadValue | |
RETMySQLError | |
RETNoSchemaMatch |
Definition at line 25 of file ConnectionDB.h.
FieldDBUtil::ConnectionDB::ConnectionDB | ( | ) |
Constructor keeps track of table of interest.
Definition at line 24 of file ConnectionDB.cxx.
|
inline |
Definition at line 23 of file ConnectionDB.h.
bool FieldDBUtil::ConnectionDB::getBeamEnergy | ( | std::map< int, std::vector< double > > & | m_mapBeamEnergy, |
int | runFrom, | ||
int | runTo | ||
) |
Definition at line 77 of file ConnectionDB.cxx.
ConnectionDB::eRet FieldDBUtil::ConnectionDB::getBeamEnergy | ( | std::vector< double > & | beamE, |
int | runNo | ||
) |
Definition at line 164 of file ConnectionDB.cxx.
Referenced by MagneticFieldSvc::handle(), and MagneticFieldSvc::initialize().
bool FieldDBUtil::ConnectionDB::getReadSC_MagnetInfo | ( | std::map< int, std::vector< double > > & | m_mapMagnetInfo, |
int | runFrom, | ||
int | runTo | ||
) |
Definition at line 127 of file ConnectionDB.cxx.
ConnectionDB::eRet FieldDBUtil::ConnectionDB::getReadSC_MagnetInfo | ( | std::vector< double > & | current, |
int | runNo | ||
) |
Definition at line 32 of file ConnectionDB.cxx.
Referenced by MagneticFieldSvc::handle(), and MagneticFieldSvc::initialize().