// otherwise label remains '-1' --> fake V0
if (pp->GetFirstMother() == pn->GetFirstMother() && pp->GetFirstMother() >= 0) {
out.SetLabel(pp->GetFirstMother());
+ //patch for k0s/k0l
+ TParticle *mom = mc->Stack()->Particle(pn->GetFirstMother());
+ if(mom->GetPdgCode() == 310) {
+ //take the mother of the k0s which is a k0 (311)
+ out.SetLabel(mom->GetFirstMother());
+ }
SetMCInfoESD(out);
}
}