afw.common#

A utility module containing commonly-plotted things

Functions

create_single_axis_histogram(axis)

Creates a hist.Hist with a dataset axis and weights, alongside a given axis

plot_thing(histogram, title, units)

A convenience function used to generate a bar graph and Data/MC agreement plot, as well as plot signal

stacked_colors(num)

Returns a list of colors consistent with the CMS Analysis Guidelines (https://cms-analysis.docs.cern.ch/guidelines/plotting/colors/)

Classes

DileptonMassToPlot(title, first_lepton_name, ...)

Plot the dilepton mass of two leptons.

DiscriminantToPlot(title)

Plot a discriminant (a float ranging from 0 to 1) such as DeepJet Score

EtaToPlot(title, lepton_name, index)

Plot the eta of a given lepton.

NJetToPlot()

Plot a the number of jets in each event

PtToPlot(title, lepton_name, index)

Plot the pT of a given lepton.