]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - TPC/AliTPCQADataMakerRec.cxx
Transfer of the initialisation of the QA Data objects in the framework; clean the...
[u/mrichter/AliRoot.git] / TPC / AliTPCQADataMakerRec.cxx
index 9f805784e2be4405b8a580b6936064a423a51b6d..6d9c19e4436c4a3280964c2c81f3dbb09516a03f 100644 (file)
@@ -378,10 +378,6 @@ void AliTPCQADataMakerRec::MakeESDs(AliESDEvent * esd)
 {
   // make QA data from ESDs
  
-  // Check id histograms already created for this Event Specie
-  if ( ! GetESDsData(KClusters) )
-    InitESDs() ;
-  
   const Int_t nESDTracks = esd->GetNumberOfTracks();
   Int_t nTPCtracks = 0; 
   for(Int_t i = 0; i < nESDTracks; i++) {
@@ -409,21 +405,19 @@ void AliTPCQADataMakerRec::MakeRaws(AliRawReader* rawReader)
   // To make QA for the RAW data we use the TPC Calibration framework 
   // to handle the data and then in the end extract the data
   //
-  if ( ! GetRawsData(kOccupancy) )
-    InitRaws() ;
   
   rawReader->Reset() ; 
-  fTPCdataQA[AliRecoParam::AConvert(fEventSpecie)]->ProcessEvent(rawReader);  
- }
+  if (! fTPCdataQA[AliRecoParam::AConvert(fEventSpecie)] ) {
+    AliError("Something unexpected here!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!") ; 
+  } else {  
+    fTPCdataQA[AliRecoParam::AConvert(fEventSpecie)]->ProcessEvent(rawReader);  
+  }
+}
 
 //____________________________________________________________________________
 void AliTPCQADataMakerRec::MakeDigits(TTree* digitTree)
 {
-
-  // Check id histograms already created for this Event Specie
-  if ( ! GetDigitsData(kDigitsADC) )
-    InitDigits() ;
-  
   TBranch* branch = digitTree->GetBranch("Segment");
   AliSimDigits* digArray = 0;
   branch->SetAddress(&digArray);
@@ -446,9 +440,6 @@ void AliTPCQADataMakerRec::MakeDigits(TTree* digitTree)
 //____________________________________________________________________________
 void AliTPCQADataMakerRec::MakeRecPoints(TTree* recTree)
 {
-  // Check id histograms already created for this Event Specie
-  if ( ! GetRecPointsData(kQmaxShort) )
-    InitRecPoints() ;
 
   AliTPCClustersRow *clrow = new AliTPCClustersRow();
   clrow->SetClass("AliTPCclusterMI");