From 3b7c278f7ef89bb67d5d28db3984e4ad848d6007 Mon Sep 17 00:00:00 2001 From: hristov Date: Fri, 15 Jul 2005 10:32:07 +0000 Subject: [PATCH] Skip the indexes of tracks belonging to the underlying event in the signal ESD --- PHOS/AliPHOSRecParticle.cxx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/PHOS/AliPHOSRecParticle.cxx b/PHOS/AliPHOSRecParticle.cxx index 4eee307d314..022ef40d22f 100644 --- a/PHOS/AliPHOSRecParticle.cxx +++ b/PHOS/AliPHOSRecParticle.cxx @@ -188,8 +188,9 @@ const Int_t AliPHOSRecParticle::GetPrimaryIndex() const Int_t trackHadron = -1; for (Int_t iPrim=0; iPrimGetPrimary(iPrim+1); - if (iPrimary == -1) - continue ; + if (iPrimary == -1 || TMath::Abs(iPrimary)>10000000) + continue ; //PH 10000000 is the shift of the track + //PH indexes in the underlying event track = gime->Primary(iPrimary); Int_t pdgCode = track->GetPdgCode(); Double_t energy = track->Energy(); -- 2.39.3