mkPlot script#
usage: mkPlot [-h] [--scaleToPlot SCALETOPLOT] [--minLogC MINLOGC]
[--maxLogC MAXLOGC] [--minLogCratio MINLOGCRATIO]
[--maxLogCratio MAXLOGCRATIO] [--maxLinearScale MAXLINEARSCALE]
[--outputDirPlots OUTPUTDIRPLOTS] [--inputFile INPUTFILE]
[--tag TAG] [--nuisancesFile NUISANCESFILE]
[--onlyVariable ONLYVARIABLE] [--onlyCut ONLYCUT]
[--onlyPlot ONLYPLOT] [--linearOnly] [--logOnly]
[--fileFormats FILEFORMATS]
[--plotNormalizedIncludeData PLOTNORMALIZEDINCLUDEDATA]
[--plotNormalizedDistributions]
[--plotNormalizedDistributionsTHstack]
[--showIntegralLegend SHOWINTEGRALLEGEND] [--showRelativeRatio]
[--showDataMinusBkgOnly] [--removeWeight] [--invertXY]
[--postFit POSTFIT] [--skipMissingNuisance] [--removeMCStat]
[--extraLegend EXTRALEGEND] [--customize CUSTOMIZEKEY]
[--plotFancy] [--NoPreliminary] [--RemoveAllMC]
[--parallelPlotting]
Named Arguments#
- --scaleToPlot
scale of maxY to maxHistoY
Default: 3.0
- --minLogC
min Y in log plots
Default: 0.01
- --maxLogC
max Y in log plots
Default: 100
- --minLogCratio
min Y in log ratio plots
Default: 0.001
- --maxLogCratio
max Y in log ratio plots
Default: 10
- --maxLinearScale
scale factor for max Y in linear plots (1.45 magic number as default)
Default: 1.45
- --outputDirPlots
output directory
Default: “./”
- --inputFile
input file with histograms
Default: “input.root”
- --tag
Tag used for the shape file name. Used if inputFile is a directory
- --nuisancesFile
file with nuisances configurations
- --onlyVariable
draw only one variable (may be needed in post-fit plots)
- --onlyCut
draw only one cut phase space (may be needed in post-fit plots)
- --onlyPlot
draw only specified plot type (comma-separated c, cratio, and/or cdifference)
- --linearOnly
Make linear plot only.
Default: False
- --logOnly
Make log plot only.
Default: False
- --fileFormats
Output plot file formats (comma-separated png, pdf, root, C, and/or eps). Default “png,root”
Default: “png,root”
- --plotNormalizedIncludeData
plot also normalized distributions for data, for shape comparison purposes
- --plotNormalizedDistributions
plot also normalized distributions for optimization purposes
- --plotNormalizedDistributionsTHstack
plot also normalized distributions for optimization purposes, with stacked sig and bkg
- --showIntegralLegend
show the integral, the yields, in the legend
Default: 0
- --showRelativeRatio
draw instead of data-expected, (data-expected) / expected
Default: False
- --showDataMinusBkgOnly
draw instead of data-expected, data-expected background only
Default: False
- --removeWeight
Remove weight S/B for PR plots, just do the sum
Default: False
- --invertXY
Invert the weighting for X <-> Y. Instead of slices along Y, do slices along X
Default: False
- --postFit
Plot sum of post-fit backgrounds, and the data/post-fit ratio.
Default: “n”
- --skipMissingNuisance
Do not trigger errors if a nuisance is missing. To be used with absolute care!!!
Default: False
- --removeMCStat
Do not plot the MC statistics contribution in the uncertainty band
Default: False
- --extraLegend
User-specified additional legend
- --customize
Optional parameters for the customizations script
- --plotFancy
Plot fancy data - bkg plot
Default: False
- --NoPreliminary
Remove preliminary status in plots
Default: False
- --RemoveAllMC
Remove all MC in legend
Default: False
- --parallelPlotting
Plot each cut in parallel
Default: False