From 3769241d22c5c6bb1fd1b3d478765e933f3a1a32 Mon Sep 17 00:00:00 2001 From: gconesab Date: Thu, 15 Jul 2010 13:24:12 +0000 Subject: [PATCH] Init fCaloUtils and fReader pointer at least once if not done before in the configuration macro --- PWG4/PartCorrBase/AliAnaPartCorrMaker.cxx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/PWG4/PartCorrBase/AliAnaPartCorrMaker.cxx b/PWG4/PartCorrBase/AliAnaPartCorrMaker.cxx index 41c40d88365..75af2aa5fe2 100755 --- a/PWG4/PartCorrBase/AliAnaPartCorrMaker.cxx +++ b/PWG4/PartCorrBase/AliAnaPartCorrMaker.cxx @@ -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++){ -- 2.43.0