Trigger on particle and antiparticle separately.
[u/mrichter/AliRoot.git] / PYTHIA6 / AliGenPythia.cxx
index 8f3958ed4562e5c652acaade10d60a7ba01b073f..d60a161704caa863979ce88d269350cd39902272 100644 (file)
@@ -730,7 +730,7 @@ Int_t  AliGenPythia::GenerateMB()
        for (i = 0; i < np; i++) {
            TParticle *  iparticle = (TParticle *) fParticles->At(i);
            kf = CheckPDGCode(iparticle->GetPdgCode());
-           if (TMath::Abs(kf) != fTriggerParticle) continue;
+           if (kf != fTriggerParticle) continue;
            if (iparticle->Pt() == 0.) continue;
            if (TMath::Abs(iparticle->Eta()) > fTriggerEta) continue;
            triggered = kTRUE;