|
[Rivet-svn] r3152 - trunk/src/Projectionsblackhole at projects.hepforge.org blackhole at projects.hepforge.orgSat Jun 11 15:52:28 BST 2011
Author: richardn Date: Sat Jun 11 15:52:28 2011 New Revision: 3152 Log: fix for antiparticles in WFinder Modified: trunk/src/Projections/WFinder.cc Modified: trunk/src/Projections/WFinder.cc ============================================================================== --- trunk/src/Projections/WFinder.cc Sat Jun 11 13:35:03 2011 (r3151) +++ trunk/src/Projections/WFinder.cc Sat Jun 11 15:52:28 2011 (r3152) @@ -106,7 +106,7 @@ Particle p1,p2; p1 = imfs.particles()[0]; p2 = imfs.particles()[1]; - if (p1.pdgId() == ELECTRON || p1.pdgId() == MUON) { + if (abs(p1.pdgId()) == ELECTRON || abs(p1.pdgId()) == MUON) { return p1; } else { @@ -122,7 +122,7 @@ Particle p1,p2; p1 = imfs.particles()[0]; p2 = imfs.particles()[1]; - if (p1.pdgId() == ELECTRON || p1.pdgId() == MUON) { + if (abs(p1.pdgId()) == ELECTRON || abs(p1.pdgId()) == MUON) { return p2; } else {
More information about the Rivet-svn mailing list |