ignoring runs with start == endtime
authorjgrosseo <jgrosseo@f7af4fe6-9843-0410-8265-dc069ae4e863>
Mon, 9 Nov 2009 14:40:51 +0000 (14:40 +0000)
committerjgrosseo <jgrosseo@f7af4fe6-9843-0410-8265-dc069ae4e863>
Mon, 9 Nov 2009 14:40:51 +0000 (14:40 +0000)
SHUTTLE/AliShuttle.cxx

index 83cfa10..354ff8a 100644 (file)
@@ -2044,28 +2044,33 @@ AliShuttleLogbookEntry* AliShuttle::QueryRunParameters(Int_t run)
        //   a) runType is PHYSICS and ecsSuccess is set
        //   b) runType is not PHYSICS and (ecsSuccess is set or DAQ_time_start is non-0)
        // effectively this means that all runs are processed that started properly (ecsSucess behaviour is different for PHYSICS and non-PHYSICS runs (check with ECS!)
-       if (startTime != 0 && endTime != 0 && endTime > startTime) { 
-         if (endTime >= now - dcsDelay) {
-           Log("SHUTTLE", Form("Skipping run %d for now, because DCS buffer time is not yet expired", run));
-         } else {
-           if (runType == "PHYSICS") {
-             if (ecsSuccess) {
-               return entry;
-             } else {
-               Log("SHUTTLE", Form("QueryRunParameters - Run type for run %d is PHYSICS but ECS success flag not set (Reason = %s) - Skipping!", run, entry->GetRunParameter("eor_reason")));
-               skip = kTRUE;
-             } 
-           } else {
-             if (ecsSuccess || daqstartTime > 0) {
-               if (ecsSuccess == kFALSE)
-                 Log("SHUTTLE", Form("Processing run %d although in status ECS failure (Reason: %s), since run type != PHYSICS and DAQ_time_start != 0", run, entry->GetRunParameter("eor_reason")));
-               return entry;
-             } else {
-               Log("SHUTTLE", Form("QueryRunParameters - Run type for run %d is %s, ECS success flag was not set (Reason = %s) and DAQ_time_start was NULL - Skipping!", run, runType.Data(), entry->GetRunParameter("eor_reason")));
-               skip = kTRUE;
-             }
-           }
-         }
+       if (startTime != 0 && endTime != 0) {
+               if (endTime > startTime) { 
+                       if (endTime >= now - dcsDelay) {
+                               Log("SHUTTLE", Form("Skipping run %d for now, because DCS buffer time is not yet expired", run));
+                       } else {
+                               if (runType == "PHYSICS") {
+                                       if (ecsSuccess) {
+                                               return entry;
+                                       } else {
+                                               Log("SHUTTLE", Form("QueryRunParameters - Run type for run %d is PHYSICS but ECS success flag not set (Reason = %s) - Skipping!", run, entry->GetRunParameter("eor_reason")));
+                                               skip = kTRUE;
+                                       } 
+                               } else {
+                                       if (ecsSuccess || daqstartTime > 0) {
+                                               if (ecsSuccess == kFALSE)
+                                                       Log("SHUTTLE", Form("Processing run %d although in status ECS failure (Reason: %s), since run type != PHYSICS and DAQ_time_start != 0", run, entry->GetRunParameter("eor_reason")));
+                                               return entry;
+                                       } else {
+                                               Log("SHUTTLE", Form("QueryRunParameters - Run type for run %d is %s, ECS success flag was not set (Reason = %s) and DAQ_time_start was NULL - Skipping!", run, runType.Data(), entry->GetRunParameter("eor_reason")));
+                                               skip = kTRUE;
+                                       }
+                               }
+                       }
+               } else {
+                       Log("SHUTTLE", Form("QueryRunParameters - Invalid parameters for run %d: startTime equal to endTime: %d %d - Skipping!", run, startTime, endTime));
+                       skip = kTRUE;
+               }
        } else {
          Log("SHUTTLE", Form("QueryRunParameters - Invalid parameters for Run %d: "
                              "startTime = %d, endTime = %d. Skipping (Shuttle won't be marked as DONE)!",