BOSS 7.0.5
BESIII Offline Software System
Loading...
Searching...
No Matches
InstallArea/include/MagneticField/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
12namespace FieldDBUtil {
14 public:
15
16#ifndef BEAN
17 /// Constructor keeps track of table of interest
19#else
20 ConnectionDB() {}
21#endif
22
24
25 enum eRet {
26 RETOk = 0,
34 };
35 /// Used to form bit masks for dbs queries
36 enum eLevel {
41 };
42
43 ConnectionDB::eRet getReadSC_MagnetInfo(std::vector<double>& current, int runNo);
44 ConnectionDB::eRet getBeamEnergy( std::vector<double>& beamE, int runNo);
45 bool getReadSC_MagnetInfo(std::map<int, std::vector<double> >& m_mapMagnetInfo, int runFrom, int runTo);
46 bool getBeamEnergy( std::map<int, std::vector<double> >& m_mapBeamEnergy, int runFrom, int runTo);
47#ifndef BEAN
48 private:
49 IDatabaseSvc* m_dbsvc;
50#endif
51 };
52}
53
54#endif
int runNo
Definition: DQA_TO_DB.cxx:12
ConnectionDB()
Constructor keeps track of table of interest.
ConnectionDB::eRet getReadSC_MagnetInfo(std::vector< double > &current, int runNo)
ConnectionDB::eRet getBeamEnergy(std::vector< double > &beamE, int runNo)