|
[Rivet] rivet-mkhtml config fileFrank Siegert frank.siegert at cern.chMon Mar 5 11:45:14 GMT 2018
Hi Giancarlo, I think it wouldn't work like this, but please correct me if you have tested this and I misremember. The config files used by rivet-mkhtml and rivet-cmphistos are similar to the ones we have in the distribution, i.e. they contain blocks like: # BEGIN PLOT /MC_ZINC/Z_pT$ Title=Z $p_\perp$ XLabel=$p_\perp^{\text{Z}}$ [GeV] YLabel=$\text{d}\sigma/\text{d}p_\perp^{\text{Z}}$ [pb/GeV] LogX=1 LegendXPos=0.05 LegendYPos=0.5 # END PLOT The ones used by make-plots are meant to allow overwriting properties within a "final" .dat file, i.e. they contain blocks like (https://rivet.hepforge.org/make-plots.html#_configuration_files): # BEGIN PLOT figures/MC_WJETS/W_mass.dat XMin=60.0 XMax=100.0 LegendXPos=0.65 # END PLOT .*myLOrun.yoda/D0_2008_S7554427/d01-x01-y01::Scale=1.0 (where the first would be on the plot level, and the second on the line level) It would be nice to streamline all of this in the future, and there are efforts to rewrite make-plots etc. also to make use of matplotlib or similar. But I don't think this is very advanced yet, because there is not enough person power to drive it forward. Do let us know if you want to get involved in that area! Best, Frank On 28 February 2018 at 11:15, Giancarlo Panizzo <giancarlo.panizzo at cern.ch> wrote: > Dear rivet authors, > > I would like to let rivet-mkhtml pass a config file to make-plots through the "-c" command line option. > > While the option is correctly passed to cmp-histos, this seems not to be the case for the last make-plots command, launched internally by rivet-mkhtml. This in turn seems to basically cause rivet-mkhtml to ignore such config file parameter. > > What I would propose is to replicate somehow the lines > > ## Pass rivet-mkhtml -c args to rivet-cmphistos > 261 for configfile in opts.CONFIGFILES: > 262 configfile = os.path.abspath(os.path.expanduser(configfile)) > 263 if os.access(configfile, os.R_OK): > 264 ch_cmd += ["-c", configfile] > > > also after line 452, of course replacing ch_cmd -> mp_cmd. > > I hope this will help (at least it fixes the issue for me), and of course thanks for your efforts in developing such a successfull project! > > Best > > Giancarlo Panizzo > > > > > > > > > > _______________________________________________ > Rivet mailing list > Rivet at projects.hepforge.org > https://www.hepforge.org/lists/listinfo/rivet
More information about the Rivet mailing list |