MPF.labels module

class MPF.labels.ATLASLabel(text='Internal', color=<Mock id='140254957051088'>, scale=1.0, xOffset=0.0, yOffset=0.0)[source]

Bases: object

The ATLAS Label

Parameters:
  • text – Text next to “ATLAS”
  • color – Text color
  • scale – Scale overall text size by this factor
  • xOffset – Shift by this amount in x-Direction
  • yOffset – Shift by this amoutn in y-Direction
draw(*args, **kwargs)[source]
class MPF.labels.CMELabel(cme=13, unit='TeV', scale=1.0, xOffset=0.0, yOffset=0.0)[source]

Bases: object

Label showing the center of mass energy

draw(*args, **kwargs)[source]
class MPF.labels.InfoLabel(text='', scale=1.0, xOffset=0.0, yOffset=0.0)[source]

Bases: object

Label used to provide more information, e.g. ‘Normalized to unity’. Shown underneath the Lumilabel.

draw(*args, **kwargs)[source]
class MPF.labels.LumiLabel(lumi=1.0, unit='fb^{-1}', scale=1.0, xOffset=0.0, yOffset=0.0, cme=13, cmeUnit='TeV')[source]

Bases: object

Label showing the luminosity

draw(*args, **kwargs)[source]
class MPF.labels.ProcessLabel(text='', scale=1.0, xOffset=0.0, yOffset=0.0)[source]

Bases: object

Label shown at the very top of the histogram. Usually used to show the signal process, e.g. #tilde(g)-#tilde(g) #rightarrow qqWW#chi#chi

draw(*args, **kwargs)[source]
MPF.labels.scaleYPosTopMargin(y)[source]

Rescale the y position (NDC) in current pad to have the same distance to the top in different pad heights