[Rivet-svn] r3699 - trunk/bin

blackhole at projects.hepforge.org blackhole at projects.hepforge.org
Sun Apr 22 10:20:06 BST 2012


Author: hoeth
Date: Sun Apr 22 10:20:06 2012
New Revision: 3699

Log:
fix crash in rivet-rmgaps when MC extends beyond upper edge of reference histogram

Modified:
   trunk/bin/rivet-rmgaps

Modified: trunk/bin/rivet-rmgaps
==============================================================================
--- trunk/bin/rivet-rmgaps	Thu Apr 19 15:05:42 2012	(r3698)
+++ trunk/bin/rivet-rmgaps	Sun Apr 22 10:20:06 2012	(r3699)
@@ -125,6 +125,8 @@
             logging.info("Stripping %d bin%s from %s" % (numrm, plural, self.description['AidaPath']))
             newdata = []
             for i in xrange(len(self.data)):
+                if (len(refhist.data) == i):  ## MC has additional bins above the upper edge of the refdata
+                    break
                 if self.data[i]['LowEdge'] == refhist.data[i]['LowEdge'] and \
                    self.data[i]['UpEdge'] == refhist.data[i]['UpEdge']:
                     newdata.append(self.data[i])


More information about the Rivet-svn mailing list