]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
primary particle criteria correction (ESD)
authorddobrigk <david.dobrigkeit.chinellato@cern.ch>
Thu, 4 Dec 2014 19:04:04 +0000 (17:04 -0200)
committerddobrigk <david.dobrigkeit.chinellato@cern.ch>
Thu, 4 Dec 2014 19:06:41 +0000 (17:06 -0200)
PWGLF/SPECTRA/IdentifiedHighPt/train/AliAnalysisTaskHighPtDeDx.cxx

index b6ca746829940051b33266a5cd6364402ce521a9..77e0b46f3362db80e60d628e32b2078f7e76ae72 100755 (executable)
@@ -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;
          }
        }