|
[Rivet] rivet-mkhtml only taking certain changes from .plot fileRaghav Kunnawalkam Elayavalli raghav.k.e at cern.chTue May 24 21:12:03 BST 2016
Hi Andy, The plot's data file Z_mass.dat actually contains the old information that i gave in the JEWEL_ZpJet.plot under JEWEL_ZpJet/Z_mass. I rewrote the .plot file today but this plot (and one other amongst a total of 38 plots) somehow retained just the old title but the custom legend somehow managed to sneak through. with regards to the title of the histogram: in the old .plot file i had >> Title=JEWEL Z $\rightarrow \mu^{-} \mu^{+}$ and i changed it to >> Title=JEWEL+PYTHIA PbPb $\sqrt{s}=2.76$ TeV, Z+Jets But the plot somehow still retained the old one which is whats weird. I dont have any other instances of Z_mass histogram in the .plot file. Im not sure i understand what you mean by globbing? Cheers Raghav > On May 24, 2016, at 9:39 PM, Andy Buckley <a.g.buckley at gmail.com> wrote: > > Hmm, > > The pattern matching in the PLOT sections uses regular expression syntax rather than "globbing" as you're using. So "ZpJet/*" will match "ZpJet" followed by any number of "/", including zero. Probably that still matches and works, but maybe a similar regex problem could be making something else override the /JEWEL_ZpJet/Z_mass values? Does the "what you had before" setting come after that in the .plot file, or match more closely? > > Andy > > > > On 24/05/16 14:03, Raghav Kunnawalkam Elayavalli wrote: >> Hi Rivet Experts, >> >> Its me again :) >> >> Im currently having another pretty weird error (I checked with another friend here and we coudnt solve it) with changes to a .plot file and mkhtml command. >> So i have several plots in my analysis and for two particular histograms, any changes i make in the .plot file, only a part of that gets carried over to the actual plot. >> >> Let me give you an example: very simple plot for the Z Mass >> this is what i have in my .plot file: >> # BEGIN PLOT /JEWEL_ZpJet/* >> XTwosidedTicks=1 >> YTwosidedTicks=1 >> RatioPlotYMin=0 >> RatioPlotYMax=2 >> # END PLOT >> >> # BEGIN PLOT /JEWEL_ZpJet/Z_mass >> Title=JEWEL+PYTHIA PbPb $\sqrt{s}=2.76$ TeV, Z+Jets >> XLabel=Z mass [GeV/$c^2$] >> YLabel=$\frac{d^2\sigma}{dm\ d\eta}$ [pb/GeV/$c^2$] >> LogY=1 >> CustomLegend=Z$\rightarrow\mu^{+}\mu^{-}$ >> # END PLOT >> >> Now, I build-plugin, run it over some sample mc events, and do mkhtml and this is what i see in my Z_mass.dat file: >> # BEGIN PLOT >> XTwosidedTicks=1 >> YTwosidedTicks=1 >> Title=JEWEL Z $\rightarrow \mu^{-} \mu^{+}$ >> LogY=0 >> RatioPlotYMax=2 >> CustomLegend=Z$\rightarrow\mu^{+}\mu^{-}$ >> LegendOnly=//afs/cern.ch/work/r/rkunnawa/JEWEL/ANALYSIS/test_zpjet.yoda/JEWEL_ZpJet/Z_mass >> XLabel=Z mass $[GeV/c^2]$ >> YLabel=$d\sigma$ >> DrawOnly=//afs/cern.ch/work/r/rkunnawa/JEWEL/ANALYSIS/test_zpjet.yoda/JEWEL_ZpJet/Z_mass >> Legend=1 >> RatioPlotYMin=0 >> # END PLOT >> >> # BEGIN HISTO1D //afs/cern.ch/work/r/rkunnawa/JEWEL/ANALYSIS/test_zpjet.yoda/JEWEL_ZpJet/Z_mass >> ErrorBars=1 >> LineColor=red >> ... >> >> >> The histogram title and y axis label are different! they are what i have before. But the new custom legend i put in is taken!! >> this is quite bizarre when the other plots in the same analysis have no such problems. >> >> Cheers >> Raghav >> _______________________________________________ >> Rivet mailing list >> Rivet at projects.hepforge.org >> https://www.hepforge.org/lists/listinfo/rivet >> > > > -- > Dr Andy Buckley, Lecturer / Royal Society University Research Fellow > Particle Physics Expt Group, University of Glasgow
More information about the Rivet mailing list |