[Rivet-svn] r2898 - trunk/bin

blackhole at projects.hepforge.org blackhole at projects.hepforge.org
Thu Jan 27 18:21:18 GMT 2011


Author: hoeth
Date: Thu Jan 27 18:21:17 2011
New Revision: 2898

Log:
let the lighthisto Bin take care of its string representation itself,
rather than messing manually with its internal variables.

Modified:
   trunk/bin/compare-histos

Modified: trunk/bin/compare-histos
==============================================================================
--- trunk/bin/compare-histos	Thu Jan 27 02:01:31 2011	(r2897)
+++ trunk/bin/compare-histos	Thu Jan 27 18:21:17 2011	(r2898)
@@ -454,7 +454,7 @@
                         numskipped += 1
                         assert(numskipped <= (HISTOS[hfile][name].numBins() - HISTOS[ref][name].numBins()))
                         continue
-                histstr += '%e\t%e\t%e\t%e\n' % (xmin, xmax, bin.yval, bin.yerr)
+                histstr += '%s\n' % (bin.asFlat())
             histstr += "# END HISTOGRAM\n"
             histstrs.append(histstr)
 


More information about the Rivet-svn mailing list