Analysis Software
Documentation for sPHENIX simulation software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
OnlMonStatusDB.h
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file OnlMonStatusDB.h
1 #ifndef ONLMONSTATUSDB_H__
2 #define ONLMONSTATUSDB_H__
3 
4 #include <string>
5 
7 {
8  public:
9  OnlMonStatusDB(const std::string &tablename = "onlmonstatus");
10  virtual ~OnlMonStatusDB();
11  int CheckAndCreateTable();
13  int UpdateStatus(const std::string &name, const int runnumber, const int status);
14  int FindAndInsertRunNum(const int runnumber);
15  int findRunNumInDB(const int runno);
16 
17  private:
18  int GetConnection();
19  std::string dbname = "OnlMonDB";
20  std::string dbowner = "phnxrc";
23 };
24 
25 #endif