]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - MONITOR/alionlinemonitor.cxx
Last bunch of changes to the online reco code. In principle we are ready to try the...
[u/mrichter/AliRoot.git] / MONITOR / alionlinemonitor.cxx
index 62acc2b4158e02a6bb91b43d217f90701be6747f..def86579f9b643a259a0f019791783600d94f91e 100644 (file)
@@ -33,6 +33,12 @@ int main(int argc, char **argv)
   }
   else {
 
+    TString baseDir = gSystem->Getenv("ONLINERECO_BASE_DIR");
+    if (baseDir.IsNull()) {
+      printf("ERROR: ONLINERECO_BASE_DIR is not set. Exiting...");
+      return 0;
+    }
+
     const char *dbHost = "aldaqdb";
     Int_t dbPort = 3306;
     const char *dbName = "LOGBOOK";
@@ -47,7 +53,9 @@ int main(int argc, char **argv)
     TString sqlQuery;
     TTimeStamp ts;
     sqlQuery.Form("SELECT run FROM logbook WHERE DAQ_time_start > %u AND DAQ_time_end IS NULL AND partition = 'PHYSICS'",
-                 ts.GetSec()-86400);
+                 ts.GetSec()-86400);
+    //    sqlQuery.Form("SELECT run FROM logbook WHERE DAQ_time_start > %u AND DAQ_time_end IS NULL",
+    //           ts.GetSec()-86400);
     TSQLResult* result = server->Query(sqlQuery);
     if (!result) {
       printf("ERROR: Can't execute query <%s>!", sqlQuery.Data());