From 7dcb0bde7f135a849ca6aa1c24f54c9f6f22f1c0 Mon Sep 17 00:00:00 2001 From: ddobrigk Date: Thu, 4 Dec 2014 17:04:04 -0200 Subject: [PATCH] primary particle criteria correction (ESD) --- .../IdentifiedHighPt/train/AliAnalysisTaskHighPtDeDx.cxx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/PWGLF/SPECTRA/IdentifiedHighPt/train/AliAnalysisTaskHighPtDeDx.cxx b/PWGLF/SPECTRA/IdentifiedHighPt/train/AliAnalysisTaskHighPtDeDx.cxx index b6ca7468299..77e0b46f336 100755 --- a/PWGLF/SPECTRA/IdentifiedHighPt/train/AliAnalysisTaskHighPtDeDx.cxx +++ b/PWGLF/SPECTRA/IdentifiedHighPt/train/AliAnalysisTaskHighPtDeDx.cxx @@ -2058,8 +2058,8 @@ void AliAnalysisTaskHighPtDeDx::ProduceArrayTrksAOD( AliAODEvent *AODevent, Anal //if(!aodTrack->PropagateToDCA(vertex, AODevent->GetMagneticField(), kVeryBig, b, cov)) // filterFlag = 32; // propagation failed!!!!! - if(TMath::Abs(aodTrack->Eta()) > fEtaCut) - continue; + if(TMath::Abs(aodTrack->Eta()) > fEtaCut) continue; + if (aodTrack->Pt() < fMinPt) { // Keep small fraction of low pT tracks @@ -3063,7 +3063,7 @@ void AliAnalysisTaskHighPtDeDx::ProduceArrayV0ESD( AliESDEvent *ESDevent, Analys // Check if V0 is primary = first and the same mother of both partciles if(p_mother_label>0 && n_mother_label>0 && p_mother_label == n_mother_label) { pdgV0 = p_pdgMother; - if(p_mother_steps == 1 && n_mother_steps == 1) { + if( fMCStack->IsPhysicalPrimary( p_mother_label ) ) { primaryV0 = 1; } } -- 2.43.0