]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - TRD/AliTRDPreprocessor.cxx
First V0 MC Analysis from H.Ricaud
[u/mrichter/AliRoot.git] / TRD / AliTRDPreprocessor.cxx
index d97a072ccaea2f62c8404cac5cb951a7b9af64cc..fd6205c23d42ec64b9675538472f460a9745a7a7 100644 (file)
@@ -99,22 +99,18 @@ UInt_t AliTRDPreprocessor::Process(TMap* dcsAliasMap)
     return 0;
   } 
 
-  //
-  // DCS
-  //
-  
-  if(ProcessDCS(dcsAliasMap)) return 1;
-
-  //
-  // Process the calibration data for the HLT and DAQ part
-  //
   
   if (runType=="PHYSICS"){
-    //TString runPar = GetRunParameter("HLTStatus")
+    // DCS
+    if(ProcessDCS(dcsAliasMap)) return 1;
+    // HLT if On
+    //TString runPar = GetRunParameter("HLTStatus");
     //if(runPar=="1") {
-    if(ExtractHLT()) return 1;
-    //if (fResult > 0) return fResult;
-    //} 
+    if(GetHLTStatus()) {
+      if(ExtractHLT()) return 1;
+    } 
+    // DAQ if HLT failed
     if(!fVdriftHLT) {
       if(ExtractDriftVelocityDAQ()) return 1;
     }
@@ -122,6 +118,16 @@ UInt_t AliTRDPreprocessor::Process(TMap* dcsAliasMap)
   
   return 0;  
   
+}
+//______________________________________________________________________________
+Bool_t AliTRDPreprocessor::ProcessDCS()
+{
+
+  TString runType = GetRunType();
+  if(runType == "PHYSICS") return kTRUE;
+
+  return kFALSE;
+
 }
 
 //______________________________________________________________________________
@@ -169,6 +175,7 @@ Bool_t AliTRDPreprocessor::ProcessDCS(TMap * dcsAliasMap)
     if (nGraph [iAlias] == 0) {
       Log("No TGraph for this dcsDatapointAlias : not stored");
       results [iAlias] = kFALSE;
+      error  = kTRUE;
       continue;
     }
                
@@ -299,6 +306,14 @@ Bool_t AliTRDPreprocessor::ExtractPedestals()
            if ( rocRMS )  {
              calPedSum.SetCalRocRMS(rocRMS,idet);
            }
+           AliTRDCalROC *rocMeand  = calPed->GetCalRocMeand(idet, kFALSE);
+           if ( rocMeand )  {
+             calPedSum.SetCalRocMeand(rocMeand,idet);
+           }
+           AliTRDCalROC *rocRMSd = calPed->GetCalRocRMSd(idet, kFALSE);
+           if ( rocRMSd )  {
+             calPedSum.SetCalRocRMSd(rocRMSd,idet);
+           }
          }// det loop
 
          // store as reference data
@@ -484,7 +499,7 @@ Bool_t AliTRDPreprocessor::ExtractHLT()
 {
   //
   // Gain, vdrift and PRF calibration running on HLT
-  // return kFALSE if NULL pointer to the list
+  // return kTRUE if NULL pointer to the list
   //
 
   Bool_t error = kFALSE;