]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
add protection in case of not exiting mix buffer
authorgconesab <gconesab@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 25 Jul 2013 13:18:48 +0000 (13:18 +0000)
committergconesab <gconesab@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 25 Jul 2013 13:18:48 +0000 (13:18 +0000)
PWGGA/CaloTrackCorrelations/AliAnaPi0.cxx

index d3a869152e7149c5f5d5ccb6c7a0704097bd1d20..185d4f2e89ff941ba3d4fe831dcbe1aaa59d5b96 100755 (executable)
@@ -2155,6 +2155,13 @@ void AliAnaPi0::MakeAnalysisFillHistograms()
     if(eventbin < 0) return ;
     
     TList * evMixList=fEventsList[eventbin] ;
+    
+    if(!evMixList)
+    {
+      printf("AliAnaPi0::MakeAnalysisFillHistograms() - Mix event list not available, bin %d \n",eventbin);
+      return;
+    }
+    
     Int_t nMixed = evMixList->GetSize() ;
     for(Int_t ii=0; ii<nMixed; ii++)
     {