BOSS 8.0.0
BESIII Offline Software System
Loading...
Searching...
No Matches
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#endif
10
11namespace FieldDBUtil {
13 public:
14#ifndef BEAN
15 /// Constructor keeps track of table of interest
17#else
18 ConnectionDB() {}
19#endif
20
22
33 /// Used to form bit masks for dbs queries
34 enum eLevel { LEVELProd = 1, LEVELDev = 2, LEVELTest = 4, LEVELSuperseded = 8 };
35
36 ConnectionDB::eRet getReadSC_MagnetInfo( std::vector<double>& current, int runNo );
37 ConnectionDB::eRet getBeamEnergy( std::vector<double>& beamE, int runNo );
38 bool getReadSC_MagnetInfo( std::map<int, std::vector<double>>& m_mapMagnetInfo,
39 int runFrom, int runTo );
40 bool getBeamEnergy( std::map<int, std::vector<double>>& m_mapBeamEnergy, int runFrom,
41 int runTo );
42#ifndef BEAN
43 private:
44 IDatabaseSvc* m_dbsvc;
45#endif
46 };
47} // namespace FieldDBUtil
48
49#endif
int runNo
Definition DQA_TO_DB.cxx:13
eLevel
Used to form bit masks for dbs queries.
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)