Plotting tasks#
Class diagram of all plotting tasks#
The following tasks are dedicated to plotting. For more information, check out the plotting user guide
PlotVariables*,PlotShiftedVariables*(e.g.PlotVariables1D,PlotVariables2D,PlotShiftedVariables1D): Tasks to plot the histograms created byCreateHistogramsusing 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--variablesfollowed 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--datasetsargument for these tasks by the--processesargument followed by the name of the physical processes to be plotted, as defined in the analysis config. For thePlotShiftedVariables*plots, the argumentshift-sourcesis needed and replaces the argumentshift. The output format for these plots can be given with the--file-typesargument. 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. ThePlotCutflowVariables1Dare 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 inSelectEventsinstead of only after theReduceEventsprocedure. The selection steps to be shown can be chosen with the--selector-stepsargument. 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.