Back to home page

sPhenix code displayed by LXR

 
 

    


File indexing completed on 2025-08-03 08:20:56

0001 #ifndef ONLMONSTATUSDB_H__
0002 #define ONLMONSTATUSDB_H__
0003 
0004 #include <string>
0005 
0006 class OnlMonStatusDB
0007 {
0008  public:
0009   OnlMonStatusDB(const std::string &tablename = "onlmonstatus");
0010   virtual ~OnlMonStatusDB();
0011   int CheckAndCreateTable();
0012   int CheckAndCreateMonitor(const std::string &name);
0013   int UpdateStatus(const std::string &name, const int runnumber, const int status);
0014   int FindAndInsertRunNum(const int runnumber);
0015   int findRunNumInDB(const int runno);
0016 
0017  private:
0018   int GetConnection();
0019   std::string dbname = "OnlMonDB";
0020   std::string dbowner = "phnxrc";
0021   std::string dbpasswd = "";
0022   std::string table;
0023 };
0024 
0025 #endif