Trigger on particle and antiparticle separately.
authormorsch <morsch@f7af4fe6-9843-0410-8265-dc069ae4e863>
Mon, 20 Mar 2006 09:18:07 +0000 (09:18 +0000)
committermorsch <morsch@f7af4fe6-9843-0410-8265-dc069ae4e863>
Mon, 20 Mar 2006 09:18:07 +0000 (09:18 +0000)
PYTHIA6/AliGenPythia.cxx

index 8f3958e..d60a161 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;