|
[Rivet-svn] r3700 - trunk/binblackhole at projects.hepforge.org blackhole at projects.hepforge.orgSun Apr 22 10:22:20 BST 2012
Author: hoeth Date: Sun Apr 22 10:22:20 2012 New Revision: 3700 Log: allow zero-width bins in rivet-rmgaps. Please shout if this change breaks anything. Modified: trunk/bin/rivet-rmgaps Modified: trunk/bin/rivet-rmgaps ============================================================================== --- trunk/bin/rivet-rmgaps Sun Apr 22 10:20:06 2012 (r3699) +++ trunk/bin/rivet-rmgaps Sun Apr 22 10:22:20 2012 (r3700) @@ -99,10 +99,11 @@ self.write_datapointset_header(f) for bin, bindata in enumerate(self.data): xval = 0.5*(bindata['UpEdge'] + bindata['LowEdge']) - if bindata['UpEdge'] == bindata['LowEdge']: - xerr = 0.5 - else: - xerr = 0.5*(bindata['UpEdge'] - bindata['LowEdge']) + #if bindata['UpEdge'] == bindata['LowEdge']: + # xerr = 0.5 + #else: + # xerr = 0.5*(bindata['UpEdge'] - bindata['LowEdge']) + xerr = 0.5*(bindata['UpEdge'] - bindata['LowEdge']) yval = bindata['Content'] yerr = bindata['Error'] self.write_datapoint(f, xval, xerr, yval, yerr)
More information about the Rivet-svn mailing list |