Change in the monitoring policy. Use the DATE monitoring feature which takes events...
authorcvetan <cvetan@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 2 Sep 2009 16:08:25 +0000 (16:08 +0000)
committercvetan <cvetan@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 2 Sep 2009 16:08:25 +0000 (16:08 +0000)
MONITOR/onlineReco.C
STEER/AliGRPPreprocessor.cxx

index 18cd693..312ea24 100644 (file)
@@ -30,7 +30,9 @@ UInt_t onlineReco(const char* param = "listen",const char *recMacroPath = "$ALIC
 
       if (!gdc.IsNull()) {
 
-       TString dataSource = gdc;
+       gSystem->Setenv("DATE_RUN_NUMBER",Form("%d",run));
+
+       TString dataSource = "*";
        dataSource.Prepend("mem://@");
        dataSource.Append(":");
 
index 7c4653e..245553f 100644 (file)
@@ -1701,18 +1701,20 @@ Int_t AliGRPPreprocessor::ReceivePromptRecoParameters(UInt_t run, const char* db
                        delete result;
                        return -25;
                }
-       
-       row = result->Next();
-       if (!row)
-               {
-                       Printf("ERROR: Could not receive logbook_stats_GDC data from run %d", run);
-                       delete result;
-                       return -26;
-               }
-       
-       // For the moment take the first GDC in the list
-       gdc = row->GetField(0);
-       
+
+       gdc = "";
+       for (Int_t iGDC = 0; iGDC < result->GetRowCount(); iGDC++) {
+         row = result->Next();
+         if (!row)
+           {
+             Printf("ERROR: Could not receive logbook_stats_GDC data from run %d", run);
+             delete result;
+             return -26;
+           }
+         gdc += row->GetField(0);
+         gdc += " ";
+       }
+
        delete row;
        row = 0;