2 from ..
import Load, DirFromEnv, Nminus1Cut
4 newQuickPlotter =
Load(
'QuickPlot')
9 """A function that sets up a plotter after sourcing a config file. 11 @param aPlotter is the plotter to setup. Defaults to plotter in this module. 13 from ..CommonTools.FileConfigReader
import SetupConfigFromEnv, SetFunctionFromEnv
19 (aPlotter.SetOutDirectory,
'CrombieOutPlotDir'),
23 def SetCuts(category, region, aPlotter = plotter):
24 """ Sets cuts based on category and region. 26 @param category is the category of the analysis being used. 27 @param region is the region of the plot being set. 28 @param aPlotter is the plotter that is having its cuts set. 29 Default is the plotter defined in this module. 31 from ..LoadConfig
import cuts
32 aPlotter.SetDefaultWeight(cuts.cut(category, region))
33 aPlotter.SetMCWeight(cuts.dataMCCuts(region,
False))
34 aPlotter.SetDataWeight(cuts.dataMCCuts(region,
True))