|
[Rivet] [Rivet-svn] r2362 - trunk/binAndy Buckley andy.buckley at ed.ac.ukThu Mar 25 14:10:19 GMT 2010
Worked for the CDF and D0 plots I was making for today's H++ validation talk! It checks to see if the leading / is there, so you won't accidentally get the first letter of the expt chopped off: hope that's good enough. One thing I didn't check: is it still possible to override the data label from the command line if desired? Andy On 25/03/10 13:39, Frank Siegert wrote: > Hi Andy, > > Thanks for fixing this, one shouldn't change things last-minute before a > commit ;-) > Does this work properly now, or should I debug it further? > > Thanks, > Frank > > blackhole at projects.hepforge.org, Thursday 25 March 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: >> _______________________________________________ >> Rivet-svn mailing list >> Rivet-svn at projects.hepforge.org >> http://www.hepforge.org/lists/listinfo/rivet-svn >> > _______________________________________________ > Rivet mailing list > Rivet at projects.hepforge.org > http://www.hepforge.org/lists/listinfo/rivet > -- Dr Andy Buckley SUPA Advanced Research Fellow Particle Physics Experiment Group, University of Edinburgh
More information about the Rivet mailing list |