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)