Plotting tasks#
The following tasks are dedicated to plotting. For more information, check out the plotting user guide
Plotting.
PlotVariables*
,PlotShiftedVariables*
(e.g.PlotVariables1D
,PlotVariables2D
,PlotShiftedVariables1D
): Tasks to plot the histograms created byCreateHistograms
using the python package matplotlib with mplhep style. Several plot types are possible, including plots of variables for different physical processes or plots of variables for a single physical process but different shifts (e.g. jet-energy correction variations). The argument--variables
followed by the name of the variables defined in the analysis config, separated by a comma, is needed for these tasks to run. It is also possible to replace the--datasets
argument for these tasks by the--processes
argument followed by the name of the physical processes to be plotted, as defined in the analysis config. For thePlotShiftedVariables*
plots, the argumentshift-sources
is needed and replaces the argumentshift
. The output format for these plots can be given with the--file-types
argument. It is possible to set a default for the variables in the analysis config.PlotCutflow*
(e.g.PlotCutflow
,PlotCutflowVariables1D
): Tasks to plot the histograms created byCreateCutflowHistograms
. ThePlotCutflowVariables1D
are plotted in a similar way to the “PlotVariables*” tasks. The difference is that these plots show the selection yields of the different selection steps defined inSelectEvents
instead of only after theReduceEvents
procedure. The selection steps to be shown can be chosen with the--selector-steps
argument. Without further argument, the outputs are as much plots as the number of selector steps given. On the other hand, the PlotCutflow task gives a single histograms containing only the total event yields for each selection step given.