]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
fix check of pointer existence
authorgconesab <gconesab@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 20 Jun 2012 06:17:43 +0000 (06:17 +0000)
committergconesab <gconesab@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 20 Jun 2012 06:17:43 +0000 (06:17 +0000)
PWGGA/CaloTrackCorrelations/AliAnaParticleIsolation.cxx

index 088f3ad65f5a1d6c60216a5afee21847aeca522c..6d3b08fe60cddc00a2734b9c91058ddbba25d315 100755 (executable)
@@ -247,7 +247,7 @@ void AliAnaParticleIsolation::FillTrackMatchingShowerShapeControlHistograms(cons
       }
       
       //printf("ParticleIsolation: dPhi %f, dEta %f\n",dR,dZ);
-      if(fhTrackMatchedDEta && TMath::Abs(dR) < 999)
+      if(fhTrackMatchedDEta[isolated] && TMath::Abs(dR) < 999)
       {
         fhTrackMatchedDEta[isolated]->Fill(energy,dZ);
         fhTrackMatchedDPhi[isolated]->Fill(energy,dR);