]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
replace abort by AliFatal
authorgconesab <gustavo.conesa.balbastre@cern.ch>
Mon, 11 Aug 2014 09:04:14 +0000 (11:04 +0200)
committergconesab <gustavo.conesa.balbastre@cern.ch>
Mon, 11 Aug 2014 17:22:12 +0000 (19:22 +0200)
PWGGA/CaloTrackCorrelations/AliAnaParticleHadronCorrelation.cxx

index b8f0a66149e6420bf14798727a9e7da19296f86e..e6373230530ffe162d41e9e6cfa1a15cdb21b0b3 100755 (executable)
@@ -2775,18 +2775,19 @@ void AliAnaParticleHadronCorrelation::InitParameters()
 //__________________________________________________________
 void  AliAnaParticleHadronCorrelation::MakeAnalysisFillAOD()  
 {  
-  //Particle-Hadron Correlation Analysis, fill AODs
+  // Particle-Hadron Correlation Analysis, fill AODs
   
   if(!GetInputAODBranch())
   {
-    printf("AliAnaParticleHadronCorrelation::MakeAnalysisFillAOD() - No input particles in AOD with name branch < %s >, STOP \n",GetInputAODName().Data());
-    abort();
+    AliFatal(Form("No input particles in AOD with name branch < %s >, STOP \n",GetInputAODName().Data()));
+    return ;
   }
        
   if(strcmp(GetInputAODBranch()->GetClass()->GetName(), "AliAODPWG4ParticleCorrelation"))
   {
-    printf("AliAnaParticleHadronCorrelation::MakeAnalysisFillAOD() - Wrong type of AOD object, change AOD class name in input AOD: It should be <AliAODPWG4ParticleCorrelation> and not <%s> \n",GetInputAODBranch()->GetClass()->GetName());
-    abort();
+    AliFatal(Form("Wrong type of AOD object, change AOD class name in input AOD: It should be <AliAODPWG4ParticleCorrelation> and not <%s> \n",
+                  GetInputAODBranch()->GetClass()->GetName()));
+    return ;
   }
        
   if(GetDebug() > 1)