MPF.process module¶
-
class
MPF.process.
Process
(name, **kwargs)[source]¶ Create a process to be used with
ProcessProjector()
Parameters to be used for
registerHist()
for histograms created from the process:Parameters: - style – (default: “background”)
- color – (default: None)
- lineColor – (default: None)
- markerColor – (default: None)
- fillColor – (default: None)
- lineStyle – (default: None)
- lineWidth – (default: None)
- fillStyle – (default: None)
- markerStyle – (default: None)
- drawErrorBand – (default: False)
- drawString – (default: None)
- legendTitle – (default: None)
- drawLegend – (default: True)
- ratioDenominatorProcess – (default: None)
- stackOnTop – (default: False)
The other parameters:
Parameters: - cut – cut/weight expression to be used only for this process
- norm – normalise the resulting histograms to unity?
- scale – scale resulting histogram by this factor
- varexp – use this varexp for this process instead of the one used for all the other processes
- normToProcess – normalise the histogram to the same
integral as the given process (by name) before plotting (only
used for hists of style “systematic” in
TreePlotter
) - sysTag – name of the systematic variation (mainly for internal use in
ProcessProjector
andTreePlotter
) - noLumiNorm – don’t normalise this process to the luminosity configured
-
addTree
(filename, treename, cut=None)[source]¶ Add a tree to the process.
Parameters: - filename – path to the root file that contains the tree
- treename – name of the tree
- cut – optional cut/weight expression to be applied only for this tree
-
defaults
= {'color': None, 'customLabel': None, 'cut': None, 'drawErrorBand': False, 'drawLegend': True, 'drawString': '', 'fillColor': None, 'fillStyle': None, 'legendTitle': None, 'lineColor': None, 'lineStyle': None, 'lineWidth': None, 'markerColor': None, 'markerStyle': None, 'multiRatio': False, 'noLumiNorm': False, 'norm': False, 'normToProcess': None, 'ratioDenominatorProcess': None, 'scale': None, 'stackOnTop': False, 'style': 'background', 'sysTag': None, 'varexp': None}¶
-
setAttributes
(optDict, **kwargs)¶
-
updateAttributes
(optDict, **kwargs)¶