|
[Rivet-svn] r2639 - trunk/src/Projectionsblackhole at projects.hepforge.org blackhole at projects.hepforge.orgMon Aug 2 22:08:29 BST 2010
Author: buckley Date: Mon Aug 2 22:08:28 2010 New Revision: 2639 Log: Protecting against mass2() < 0 leading to assert fail/NaNs in mass() calls Modified: trunk/src/Projections/InvMassFinalState.cc Modified: trunk/src/Projections/InvMassFinalState.cc ============================================================================== --- trunk/src/Projections/InvMassFinalState.cc Mon Aug 2 21:52:02 2010 (r2638) +++ trunk/src/Projections/InvMassFinalState.cc Mon Aug 2 22:08:28 2010 (r2639) @@ -88,6 +88,7 @@ foreach (const Particle* i1, type1) { foreach (const Particle* i2, type2) { FourMomentum v4 = i1->momentum() + i2->momentum(); + if (v4.mass2() < 0) continue; if (v4.mass() > _minmass && v4.mass() < _maxmass) { getLog() << Log::DEBUG << "Selecting particles with IDs " << i1->pdgId() << " & " << i2->pdgId()
More information about the Rivet-svn mailing list |