Init fCaloUtils and fReader pointer at least once if not done before in the configura...
authorgconesab <gconesab@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 15 Jul 2010 13:24:12 +0000 (13:24 +0000)
committergconesab <gconesab@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 15 Jul 2010 13:24:12 +0000 (13:24 +0000)
PWG4/PartCorrBase/AliAnaPartCorrMaker.cxx

index 41c40d8..75af2aa 100755 (executable)
@@ -174,8 +174,8 @@ TList *AliAnaPartCorrMaker::GetOutputContainer()
   }
 
   //Initialize calorimeters  geometry pointers
-  fCaloUtils->InitPHOSGeometry();
-  fCaloUtils->InitEMCALGeometry();
+  GetCaloUtils()->InitPHOSGeometry();
+  GetCaloUtils()->InitEMCALGeometry();
 
   char newname[128];
   for(Int_t iana = 0; iana <  fAnalysisContainer->GetEntries(); iana++){
@@ -222,8 +222,8 @@ void AliAnaPartCorrMaker::Init()
   //GetCaloUtils()->InitEMCALGeometry();
        
   //Initialize reader
-  fReader->Init();
-  fReader->SetCaloUtils(fCaloUtils); // pass the calo utils pointer to the reader
+  GetReader()->Init();
+  GetReader()->SetCaloUtils(GetCaloUtils()); // pass the calo utils pointer to the reader
        
   //fCaloUtils->Init();
   for(Int_t iana = 0; iana <  fAnalysisContainer->GetEntries(); iana++){