[Rivet-svn] r2362 - trunk/bin

blackhole at projects.hepforge.org blackhole at projects.hepforge.org
Thu Mar 25 13:33:16 GMT 2010


Author: buckley
Date: Thu Mar 25 13:33:16 2010
New Revision: 2362

Log:
Fixing extraction of expt name in data label to remove the leading slash from the AIDA path if present

Modified:
   trunk/bin/compare-histos

Modified: trunk/bin/compare-histos
==============================================================================
--- trunk/bin/compare-histos	Thu Mar 25 13:32:47 2010	(r2361)
+++ trunk/bin/compare-histos	Thu Mar 25 13:33:16 2010	(r2362)
@@ -332,7 +332,10 @@
             if HISTOS[hfile][name].isdata:
                 histstr += "ErrorBars=1\n"
                 histstr += "PolyMarker=*\n"
-                histstr += "Title=%s data\n" % HISTOS[hfile][name].histoPath().split("_")[0]
+                expname = HISTOS[hfile][name].histoPath().split("_")[0]
+                if expname.startswith("/"):
+                    expname = expname[1:]
+                histstr += "Title=%s data\n" % expname
             else:
                 color, style = STYLES[i % len(STYLES)]
                 if opts.MC_ERRS:


More information about the Rivet-svn mailing list