Scripts for plotting data/MC comparisons. These scripts read in the output of NUISANCE's nuiscomp tool and make overlay comparison plots. Tools are included for 1D distributions and grids of 1D plots for multi-dimensional measurements.
Run make to build plotter.
To run:
$ ./plotter -c config/config.json
Note that you'll need to adjust the config file to set paths to your nuiscomp files.
Plots are configured using a JSON file.
The section generators contains generator settings with the following fields:
filename: ROOT file containing nuiscomp output histogramstitle: Display title for the generator (used in plot legends)color: A ROOT color number for this generator's histograms
The section plots contains plot specifications with the following fields:
sample(required): Name of the NUISANCE samplelegend_pos(optional): Legend positioning. Either a string with upper/ lower and left/right center (one of UL, UC, UR, LL, LC, LR), or an array of four numbers setting the (x1, y1, x2, y2) corners.xrange(optional): A two-element array setting the minimum and maximum x.type: Type of plot (1D, 2DSlice, 2DProjection), defaults to 1Dannotate: A TLatex annotation
For 2D plots, there are extra parameters:
nrowsandncols: Define the 2D plot gridsubplot: Setting that get passed to all the 1D subplotsannotate: An array of TLatex annotations for each plot in the grid
For an example, see config/config.json.