BOSS 6.6.4.p03
BESIII Offline Software System
Loading...
Searching...
No Matches
Emc/EmcCalib/EmcBhaCalib/EmcBhaCalib-00-00-26/EmcBhaCalib/ReadBeamInfFromDb.h
Go to the documentation of this file.
1// thanks chunlei
2#ifndef DQADtagAlg_ReadBeamInfFromDb_H
3#define DQADtagAlg_ReadBeamInfFromDb_H
4
5#include <iostream>
6#include <mysql.h>
7
8
10
11 public:
12
15
16 bool isRunValid(int run);
17 double getbeamE(int run);
18
19 private:
20 MYSQL* OpenDb() const;
21 void ReadDb(int run);
22 void CloseDb(MYSQL* mysql) const;
23
24
25 int m_run;
26 bool m_isRunValid;
27 double m_beamE;
28
29};
30
31
32#endif
struct st_mysql MYSQL
double getbeamE(int run)
bool isRunValid(int run)