MPF.pad module

class MPF.pad.Pad(name, size=(0, 0, 1, 1), logy=False, xTitle=None, yTitle=None, xTitleOffset=1, yTitleOffset=1.6, yMinimum=None, yMaximum=None, yAxisNDivisions=None, gridy=None, removeXLabels=False, setNoExponent=False, xTitleScale=1, yTitleScale=1, xAxisLabelsOption=None, insideTopMargin=None, debugText=[], customTexts=None)[source]

Bases: ROOT.TPad

addReferenceHist(hist)[source]
addVertLine(cutValue, **kwargs)[source]
decorateDrawable(drawable)[source]
draw(rangeErrors=False, printOverflowBins=False)[source]
drawText()[source]
getHistograms()[source]
getHistogramsMaximum(errors=False)[source]

Get the maximum of all histogram-like objects

getHistogramsMinimum()[source]

Get the minimum of all histogram-like objects

getMaximum(errors=False)[source]

Get the maximum which is going to be used for the actual plot

getMinimum(errors=False)[source]

Get the minimum which is going to be used for the actual plot

getXTitle()[source]

algorithm to get our xTitle for the pad

getYTitle()[source]

algorithm to get our yTitle for the pad Currently - this is exactly the same function as for the xTitle - maybe generalise this

printOverflow(printOverflowBins)[source]
reDrawAxes()[source]
setMinMax()[source]

Set Minimum and maximum calculated from all histogram-like objects