]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
Small update to have a validity range for the DCS datapoints only for the given run
authorcblume <cblume@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 1 Oct 2009 07:35:10 +0000 (07:35 +0000)
committercblume <cblume@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 1 Oct 2009 07:35:10 +0000 (07:35 +0000)
TRD/AliTRDPreprocessor.cxx

index 8b2bf56a9c85f677f73c553f1606cd5ef2428df3..b2a6bec9e76c6a76d60b3eb33ca61b99ce0920e8 100644 (file)
@@ -197,19 +197,19 @@ Bool_t AliTRDPreprocessor::ProcessDCS(TMap *dcsAliasMap)
     if (nGraph [iAlias] == 0) {
       Log("No TGraph for this dcsDatapointAlias : not stored");
       results [iAlias] = kFALSE;
-      error  = kTRUE;
+      //error  = kTRUE;
       continue;
     }
                
     oneTRDDCS->SetGraph(map);
-    results[iAlias]=Store("Calib", oneTRDDCS->GetStoreName().Data(), oneTRDDCS, &metaData, 0, kTRUE); 
+    results[iAlias]=Store("Calib", oneTRDDCS->GetStoreName().Data(), oneTRDDCS, &metaData, 0, kFALSE); 
     delete map;                
 
     //results [iAlias] = StoreReferenceData("Calib", oneTRDDCS->GetStoreName ().Data (), oneTRDDCS, &metaData); 
 
     if (!results[iAlias]) {
       AliError("Problem during StoreRef DCS");
-      error=kTRUE;
+      //error=kTRUE;
     }
 
     //BEGIN TEST (should not be removed ...)
@@ -245,6 +245,16 @@ Bool_t AliTRDPreprocessor::ProcessDCS(TMap *dcsAliasMap)
     //END TEST
 
   }
+
+  // Check errors
+  Int_t nbCount = 0;
+  for (Int_t iAlias = 0; iAlias < nEntries; iAlias++) {
+    if (results[iAlias]) {
+      nbCount++;
+    }
+  }
+  if(nbCount == 0) error = kTRUE;
+
                
   Log ("         Summury of DCS :\n");
   Log (Form("%30s %10s %10s", "dcsDatapointAlias", "Stored ?", "# graph"));
@@ -1051,4 +1061,4 @@ UInt_t AliTRDPreprocessor::ProcessDCSConfigData()
 
   Log("Processing of the DCS config summary file DONE.");  
   return 0;
-}
+}
\ No newline at end of file