[Rivet-svn] rivet: Get spacing right in Cutflow output

Rivet Mercurial rivet at projects.hepforge.org
Thu Jun 29 22:30:01 BST 2017


details:   https://rivet.hepforge.org/hg/rivet/rev/a4bc59f4afe6
branches:  
changeset: 5939:a4bc59f4afe6
user:      Andy Buckley <andy at insectnation.org>
date:      Thu Jun 29 22:23:06 2017 +0100
description:
Get spacing right in Cutflow output

diffs (11 lines):

--- a/include/Rivet/Tools/Cutflow.hh	Thu Jun 29 15:06:36 2017 +0100
+++ b/include/Rivet/Tools/Cutflow.hh	Thu Jun 29 22:23:06 2017 +0100
@@ -96,7 +96,7 @@
       size_t maxnamelen = 0;
       for (const string& t : cuts)
         maxnamelen = max(t.length(), maxnamelen);
-      ss << setw(maxnamelen+5) << "   "
+      ss << setw(maxnamelen+5) << "" << "   "
          << setw(count0len) << right << "Count" << "    "
          << setw(6) << right << "A_cumu" << "    "
          << setw(6) << right << "A_incr";


More information about the Rivet-svn mailing list