]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - TPC/AliTPCQADataMakerRec.cxx
AliDebug instead of AliInfo
[u/mrichter/AliRoot.git] / TPC / AliTPCQADataMakerRec.cxx
index 18dbd3d0cf4b71fefc6e2988892bc0cdba9bbd7b..c4d19b47aa188fdff98dd489b54d4b64653dedbd 100644 (file)
@@ -80,7 +80,20 @@ AliTPCQADataMakerRec::AliTPCQADataMakerRec() :
 
 //____________________________________________________________________________ 
 AliTPCQADataMakerRec::AliTPCQADataMakerRec(const AliTPCQADataMakerRec& qadm) :
-  AliQADataMakerRec()
+  AliQADataMakerRec(),
+  fHistESDclusters(0),  //! Clusters per ESD track
+  fHistESDratio(0),     //! Ratio of clusters to findables
+  fHistESDpt(0),        //! Pt spectrum
+  
+  fHistRawsOccupancy(0),//! Pad occupancy (1 entry per pad)
+  
+  fHistRecPointsQmaxShort(0), //! Qmax (short pads)
+  fHistRecPointsQmaxMedium(0),//! Qmax (medium pads)
+  fHistRecPointsQmaxLong(0),  //! Qmax (long pads)
+  fHistRecPointsQShort(0),    //! Q (short pads)
+  fHistRecPointsQMedium(0),   //! Q (medium pads)
+  fHistRecPointsQLong(0),     //! Q (long pads)
+  fHistRecPointsRow(0)       //! Row distribution
 {
   //copy ctor 
   // Does not copy the calibration object, instead InitRaws have to be
@@ -130,11 +143,17 @@ 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
     
+    //Add2RawsList(fTPCdataQA, 0);
     // 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, 1);
+    }
   }
 
   AliQAChecker::Instance()->Run(AliQA::kTPC, task, list) ;  
@@ -166,8 +185,12 @@ void AliTPCQADataMakerRec::InitESDs()
 //____________________________________________________________________________ 
 void AliTPCQADataMakerRec::InitRaws()
 {
+  //
+  // Adding the raw 
+  //
   fTPCdataQA = new AliTPCdataQA();
-  fTPCdataQA->SetRangeTime(0, 999); // take all 1000 time bins
+  fTPCdataQA->SetRangeTime(100, 920); // take all 1000 time bins 
+  Add2RawsList(fTPCdataQA, 0);
 }
 
 //____________________________________________________________________________