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

blackhole at projects.hepforge.org blackhole at projects.hepforge.org
Tue Aug 24 13:23:01 BST 2010


Author: buckley
Date: Tue Aug 24 13:23:01 2010
New Revision: 2676

Log:
Be a little bit more explicit about negative mass2 inv final states

Modified:
   trunk/src/Projections/InvMassFinalState.cc

Modified: trunk/src/Projections/InvMassFinalState.cc
==============================================================================
--- trunk/src/Projections/InvMassFinalState.cc	Mon Aug 23 21:51:09 2010	(r2675)
+++ trunk/src/Projections/InvMassFinalState.cc	Tue Aug 24 13:23:01 2010	(r2676)
@@ -88,7 +88,10 @@
     foreach (const Particle* i1, type1) {
       foreach (const Particle* i2, type2) {
         FourMomentum v4 = i1->momentum() + i2->momentum();
-        if (v4.mass2() < 0) continue;
+        if (v4.mass2() < 0) {
+          getLog() << Log::DEBUG << "Constructed negative inv mass2: skipping!" << endl;
+          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