5 '''@file TrigEgammaMonitoringConfigRun3.py
8 @brief Run 3 configuration builder. Histograms definitions taken from TrigEgammaPlotTool
24 def TH1F(name, title, nxbins, bins_par2, bins_par3=None, path='', **kwargs):
30 if isinstance(bins_par2, (list, tuple) ):
31 res[
'xbins'] = bins_par2
34 res[
'xmin'] = bins_par2
35 res[
'xmax'] = bins_par3
38 res.kwargs.update(kwargs)
45 def TH2F(name, title, nxbins, bins_par2, bins_par3, bins_par4, bins_par5=None, bins_par6=None, path='', **kwargs):
51 if isinstance(bins_par2, (list, tuple) ):
52 res[
'xbins'] = bins_par2
53 if isinstance(bins_par4, (list, tuple) ):
54 res[
'ybins'] = bins_par4
56 res[
'ybins'] = bins_par3
57 res[
'ymin'] = bins_par4
58 res[
'ymax'] = bins_par5
62 res[
'xmin'] = bins_par2
63 res[
'xmax'] = bins_par3
64 if isinstance(bins_par5, (list, tuple) ):
65 res[
'ybins'] = bins_par5
67 res[
'ybins'] = bins_par4
68 res[
'ymin'] = bins_par5
69 res[
'ymax'] = bins_par6
72 res.kwargs.update(kwargs)
82 res =
TH1F(*args, **kwargs)
84 res[
'type'] =
'TProfile'