Plot the systematic variation histograms from a model.
+PlotSystematicsHistograms.inputs {
+HWWRun2GGF{
<outputDir = "./workspaces/run2-ggf-$(fitLabel)/systematicsInputs">
<showInputs=true, warnMissing=false, printSummary=true, exportSummary="summary.txt">
<variationFilter="*">
# (optional)
+CompareToModels {
+HWWVBFSimple {
+Plotter{
+Up {
<color=80, title="Raw Up", sub.drawOption="hist", .isData=true, histFillColor=0, histMarkerStyle=20>
}
+Down {
<color=30, title="Raw Down", sub.drawOption="hist", .isData=true, histFillColor=0, histMarkerStyle=20>
}
}
}
}
+Plotter {
<style.subPlot="ratio", geometry.sub.height=0.55, style.sub.min=0.75, style.sub.max=1.25>
<ensureDirectory=true, style.showTotalBkg=false, style.nLegendCols=1, style.ratio.title = "Variation / Nominal">
+Up {
<color=kRed, title="Up", .isData=true, histMarkerStyle=20>
}
+Down {
<color=kBlue, title="Down", .isData=true, histMarkerStyle=20>
}
+Nominal {
<color=kBlack, title="Nominal", .isBackground=true, histFillStyle=0>
}
}
}
}
+PlotSystematicsHistograms.outputs {
+HWWRun2GGF{
<outputDir = "./workspaces/run2-ggf-$(fitLabel)/systematicsOutputs">
<showInputs=false, warnMissing=false>
<variationFilter="*WW*,*ttbar*,*ggf*,*Wt*">
<variationFilter="theo_*">
<sampleFilter="qqWW*jet,ttbar*jet,singletop*jet,sigGGF*jet,sigVBF*jet">
<channelFilter="*SR*">
+Plotter {
<style.subPlot="ratio", geometry.sub.height=0.55>
<ensureDirectory=true, style.showTotalBkg=false, style.nLegendCols=1, style.ratio.title = "Variation / Nominal">
+Up {
<color=kRed, title="Up", .isData=true>
}
+Down {
<color=kBlue, title="Down", .isData=true>
}
}
}
}
This action supports a wealth of options:
outputDir="somedir"
defines the directory to which the plots will be writtenshowInputs=true/false
define whether the systemtics inputs (before pruning/sanitization) or outputs (after pruning/sanitization) should be shownvarationFilter
, sampleFilter
, channelFilter
: select which histograms to show in terms of variations, samples and channelswarnMissing=true/false
select whether to emit a warning about missing systematic histograms+CompareToModels
can be used to configure other models to compare to. The name of the folder inside corresponds to the model name.
The contents of the plots can be controlled with a subfolder
Plotter
. Subfolders to this define the contents of the plots in
terms of processes, where the histograms Up
, Down
and Nominal
are available. The Plotter
folder accepts any and all plotting
style options.