[Rivet-svn] r1647 - trunk/src/Analyses

blackhole at projects.hepforge.org blackhole at projects.hepforge.org
Sun Jun 28 22:52:50 BST 2009


Author: buckley
Date: Sun Jun 28 22:52:50 2009
New Revision: 1647

Log:
Stop >= 5 jet events from running off the end of the n-jet cross-section histo array. Oops.

Modified:
   trunk/src/Analyses/CDF_2008_S7541902.cc

Modified: trunk/src/Analyses/CDF_2008_S7541902.cc
==============================================================================
--- trunk/src/Analyses/CDF_2008_S7541902.cc	Fri Jun 26 19:08:30 2009	(r1646)
+++ trunk/src/Analyses/CDF_2008_S7541902.cc	Sun Jun 28 22:52:50 2009	(r1647)
@@ -110,8 +110,9 @@
  
     // Jet multiplicity
     _histJetMultNorm->fill(_xpoint, event.weight());
-    for (size_t i = 1; i <= njetsB ; ++i) {
+    for (size_t i = 1; i <= njetsB; ++i) {
       _histJetMult[i-1]->fill(_xpoint, event.weight());
+      if (i == 4) break;
     }
   }
   


More information about the Rivet-svn mailing list