CGEM BOSS
6.6.5.f
BESIII Offline Software System
Loading...
Searching...
No Matches
MagneticField/MagneticField-00-01-38/MagneticField/ConnectionDB.h
Go to the documentation of this file.
1
#ifndef FIELDDBUTIL_CONNECTIONDB_H
2
#define FIELDDBUTIL_CONNECTIONDB_H
3
4
#include <string>
5
#include <vector>
6
7
#ifndef BEAN
8
#include "DatabaseSvc/IDatabaseSvc.h"
9
#include "DatabaseSvc/DatabaseSvc.h"
10
#endif
11
12
namespace
FieldDBUtil
{
13
class
ConnectionDB {
14
public
:
15
16
#ifndef BEAN
17
/// Constructor keeps track of table of interest
18
ConnectionDB
();
19
#else
20
ConnectionDB
() {}
21
#endif
22
23
~ConnectionDB
() {}
24
25
enum
eRet
{
26
RETOk
= 0,
27
RETBadCnfFile
= 1,
28
RETBadHost
= 2,
29
RETNoConnect
= 3,
30
RETWrongState
= 4,
31
RETBadValue
= 5,
32
RETMySQLError
= 6,
33
RETNoSchemaMatch
= 7
34
};
35
/// Used to form bit masks for dbs queries
36
enum
eLevel
{
37
LEVELProd
= 1,
38
LEVELDev
= 2,
39
LEVELTest
= 4,
40
LEVELSuperseded
= 8
41
};
42
43
ConnectionDB::eRet
getReadSC_MagnetInfo
(std::vector<double>& current,
int
runNo
);
44
ConnectionDB::eRet
getBeamEnergy
( std::vector<double>& beamE,
int
runNo
);
45
46
#ifndef BEAN
47
private
:
48
IDatabaseSvc
* m_dbsvc;
49
#endif
50
};
51
}
52
53
#endif
runNo
int runNo
Definition:
DedxCalibRunByRun.cxx:14
FieldDBUtil::ConnectionDB::eLevel
eLevel
Used to form bit masks for dbs queries.
Definition:
InstallArea/include/MagneticField/MagneticField/ConnectionDB.h:36
FieldDBUtil::ConnectionDB::LEVELProd
@ LEVELProd
Definition:
InstallArea/include/MagneticField/MagneticField/ConnectionDB.h:37
FieldDBUtil::ConnectionDB::LEVELTest
@ LEVELTest
Definition:
InstallArea/include/MagneticField/MagneticField/ConnectionDB.h:39
FieldDBUtil::ConnectionDB::LEVELDev
@ LEVELDev
Definition:
InstallArea/include/MagneticField/MagneticField/ConnectionDB.h:38
FieldDBUtil::ConnectionDB::LEVELSuperseded
@ LEVELSuperseded
Definition:
InstallArea/include/MagneticField/MagneticField/ConnectionDB.h:40
FieldDBUtil::ConnectionDB::eRet
eRet
Definition:
InstallArea/include/MagneticField/MagneticField/ConnectionDB.h:25
FieldDBUtil::ConnectionDB::RETOk
@ RETOk
Definition:
InstallArea/include/MagneticField/MagneticField/ConnectionDB.h:26
FieldDBUtil::ConnectionDB::RETMySQLError
@ RETMySQLError
Definition:
InstallArea/include/MagneticField/MagneticField/ConnectionDB.h:32
FieldDBUtil::ConnectionDB::RETBadValue
@ RETBadValue
Definition:
InstallArea/include/MagneticField/MagneticField/ConnectionDB.h:31
FieldDBUtil::ConnectionDB::RETWrongState
@ RETWrongState
Definition:
InstallArea/include/MagneticField/MagneticField/ConnectionDB.h:30
FieldDBUtil::ConnectionDB::RETNoSchemaMatch
@ RETNoSchemaMatch
Definition:
InstallArea/include/MagneticField/MagneticField/ConnectionDB.h:33
FieldDBUtil::ConnectionDB::RETBadCnfFile
@ RETBadCnfFile
Definition:
InstallArea/include/MagneticField/MagneticField/ConnectionDB.h:27
FieldDBUtil::ConnectionDB::RETBadHost
@ RETBadHost
Definition:
InstallArea/include/MagneticField/MagneticField/ConnectionDB.h:28
FieldDBUtil::ConnectionDB::RETNoConnect
@ RETNoConnect
Definition:
InstallArea/include/MagneticField/MagneticField/ConnectionDB.h:29
FieldDBUtil::ConnectionDB::~ConnectionDB
~ConnectionDB()
Definition:
MagneticField/MagneticField-00-01-38/MagneticField/ConnectionDB.h:23
FieldDBUtil::ConnectionDB::ConnectionDB
ConnectionDB()
Constructor keeps track of table of interest.
FieldDBUtil::ConnectionDB::getReadSC_MagnetInfo
ConnectionDB::eRet getReadSC_MagnetInfo(std::vector< double > ¤t, int runNo)
FieldDBUtil::ConnectionDB::getBeamEnergy
ConnectionDB::eRet getBeamEnergy(std::vector< double > &beamE, int runNo)
IDatabaseSvc
Definition:
Database/DatabaseSvc/DatabaseSvc-00-00-24/DatabaseSvc/IDatabaseSvc.h:15
FieldDBUtil
Definition:
InstallArea/include/MagneticField/MagneticField/ConnectionDB.h:12
source
MagneticField
MagneticField-00-01-38
MagneticField
ConnectionDB.h
Generated by
1.9.6