]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
one more change (from P.Ganoti pganoti@phys.uoa.gr)
authorbhippoly <bhippoly@f7af4fe6-9843-0410-8265-dc069ae4e863>
Fri, 30 Oct 2009 16:50:11 +0000 (16:50 +0000)
committerbhippoly <bhippoly@f7af4fe6-9843-0410-8265-dc069ae4e863>
Fri, 30 Oct 2009 16:50:11 +0000 (16:50 +0000)
PWG2/KINK/AliResonanceKink.cxx

index a6338d357edf851ccc60e165b4bb296f95ea1b1e..965065f1a630f50eccd5ad3952c7204f278c37e2 100644 (file)
@@ -270,16 +270,16 @@ void AliResonanceKink::Analyse(AliESDEvent* esd, AliMCEvent* mcEvent)
          mcDaughter1= (AliMCParticle*) mcEvent->GetTrack(firstD);  
          mcDaughter2= (AliMCParticle*) mcEvent->GetTrack(lastD);         
         }
-        else {
+        else 
            if(fdaughter2pdg==kdaughterKaon) {
               daughterParticle1=stack->Particle(lastD);
               daughterParticle2=stack->Particle(firstD); 
              mcDaughter1= (AliMCParticle*) mcEvent->GetTrack(lastD);
              mcDaughter2= (AliMCParticle*) mcEvent->GetTrack(firstD); 
              }    //to ensure that the first daughter is always the kaon
-            else continue;
-       }      
+            
+       if(TMath::Abs(daughterParticle1->GetPdgCode())!=321) continue;
+       
        TParticle* daughters1Daughter=0;
        TParticle* daughters2Daughter=0;       
        Int_t mcProcessDaughters1Daughter = -999;