From 521ef81fcfc83bae595591eed5a85275a9740849 Mon Sep 17 00:00:00 2001 From: gconesab Date: Wed, 13 Aug 2014 15:38:43 +0200 Subject: [PATCH] avoid auto correlation in case of neutral triggers --- .../AliAnaParticleHadronCorrelation.cxx | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/PWGGA/CaloTrackCorrelations/AliAnaParticleHadronCorrelation.cxx b/PWGGA/CaloTrackCorrelations/AliAnaParticleHadronCorrelation.cxx index 960b25f013c..7d38cdc8b2c 100755 --- a/PWGGA/CaloTrackCorrelations/AliAnaParticleHadronCorrelation.cxx +++ b/PWGGA/CaloTrackCorrelations/AliAnaParticleHadronCorrelation.cxx @@ -3574,6 +3574,13 @@ void AliAnaParticleHadronCorrelation::MakeNeutralCorrelation(AliAODPWG4ParticleC if(pt < fMinAssocPt || pt > fMaxAssocPt) continue ; + //remove trigger itself for correlation when use charged triggers + if(aodParticle->GetCaloLabel(0) >= 0 && + (pi0->GetCaloLabel(0) == aodParticle->GetCaloLabel(0) || pi0->GetCaloLabel(1) == aodParticle->GetCaloLabel(0))) continue ; + + if( aodParticle->GetCaloLabel(1) >= 0 && + (pi0->GetCaloLabel(0) == aodParticle->GetCaloLabel(1) || pi0->GetCaloLabel(1) == aodParticle->GetCaloLabel(1))) continue ; + // // Angular correlations // -- 2.43.0