]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
move setting of geometry matrices before the filling of the cluster arrays
authorgconesab <gconesab@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 22 Mar 2011 07:50:37 +0000 (07:50 +0000)
committergconesab <gconesab@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 22 Mar 2011 07:50:37 +0000 (07:50 +0000)
PWG4/PartCorrBase/AliAnaPartCorrMaker.cxx

index 670bca60110f936a45ab54974b8a49c5ba35dbcc..ed64ba0e4fbfd6c1e8944119e8cfbc52adb38ec5 100755 (executable)
@@ -299,6 +299,9 @@ void AliAnaPartCorrMaker::ProcessEvent(const Int_t iEntry, const char * currentF
          if(tca) tca->Clear("C");
   }
   
+  //Set geometry matrices before filling arrays, in case recalibration/position calculation etc is needed
+  fCaloUtils->SetGeometryTransformationMatrices(fReader->GetInputEvent());     
+
   //Tell the reader to fill the data in the 3 detector lists
   Bool_t ok = fReader->FillInputEvent(iEntry, currentFileName);
   if(!ok){
@@ -306,12 +309,9 @@ void AliAnaPartCorrMaker::ProcessEvent(const Int_t iEntry, const char * currentF
          return ;
   }
        
-  fCaloUtils->SetGeometryTransformationMatrices(fReader->GetInputEvent());     
-  
   //Magic line to write events to file
   if(fReader->WriteDeltaAODToFile())AliAnalysisManager::GetAnalysisManager()->GetOutputEventHandler()->SetFillAOD(kTRUE);
 
-  
   //printf(">>>>>>>>>> BEFORE >>>>>>>>>>>\n");
   //gObjectTable->Print();
   //Loop on analysis algorithms