[Rivet-svn] r2738 - trunk/src/Projections

blackhole at projects.hepforge.org blackhole at projects.hepforge.org
Fri Oct 29 17:10:19 BST 2010


Author: hoeth
Date: Fri Oct 29 17:10:18 2010
New Revision: 2738

Log:
Fix NeutralFinalState projection. It selected charged particles before.

Modified:
   trunk/src/Projections/NeutralFinalState.cc

Modified: trunk/src/Projections/NeutralFinalState.cc
==============================================================================
--- trunk/src/Projections/NeutralFinalState.cc	Fri Oct 29 14:10:07 2010	(r2737)
+++ trunk/src/Projections/NeutralFinalState.cc	Fri Oct 29 17:10:18 2010	(r2738)
@@ -18,7 +18,7 @@
     const FinalState& fs = applyProjection<FinalState>(e, "FS");
     _theParticles.clear();
     foreach (const Particle& p, fs.particles()){
-      if ((PID::threeCharge(p.pdgId()) != 0) && (p.momentum().Et() > _Etmin)) {
+      if ((PID::threeCharge(p.pdgId()) == 0) && (p.momentum().Et() > _Etmin)) {
         _theParticles.push_back(p);
         if (getLog().isActive(Log::TRACE)) {
           getLog() << Log::TRACE


More information about the Rivet-svn mailing list