]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - TPC/AliTPCQADataMakerRec.cxx
bugfix: offline sink components were lacking registration; code cleanup
[u/mrichter/AliRoot.git] / TPC / AliTPCQADataMakerRec.cxx
index 18dbd3d0cf4b71fefc6e2988892bc0cdba9bbd7b..674a55d0fd556d62f8e7cb0fe906e7fdcb851585 100644 (file)
@@ -130,11 +130,16 @@ void AliTPCQADataMakerRec::EndOfDetectorCycle(AliQA::TASKINDEX task, TObjArray *
 
   if(fTPCdataQA) { // do the final step of the QA for Raw data
 
-    fTPCdataQA->Analyse();
+    fTPCdataQA->Analyse(); // 31/1-08 Analyse is now protected against
+                           //         RAW data files with no TPC data
     
     // get the histograms and add them to the output
-    fHistRawsOccupancy = fTPCdataQA->GetNoThreshold()->MakeHisto1D(0, 1, -1);
-    Add2RawsList(fHistRawsOccupancy, 0);
+    // 31/8-08 Histogram is only added if the Calibration class 
+    //         receives TPC data 
+    if(fTPCdataQA->GetNoThreshold()) { 
+      fHistRawsOccupancy = fTPCdataQA->GetNoThreshold()->MakeHisto1D(0, 1, -1);
+      Add2RawsList(fHistRawsOccupancy, 0);
+    }
   }
 
   AliQAChecker::Instance()->Run(AliQA::kTPC, task, list) ;