ATLAS Offline Software
Loading...
Searching...
No Matches
python.UnbinnedHist Namespace Reference

Classes

class  UnbinnedHist

Functions

 unbinned_hist (tree, expression, selection='', options='', hist=None, create_hist=False, **kwargs)
 group_eqbin (hist_list, bins=100, range=None, inplace=True)

Function Documentation

◆ group_eqbin()

python.UnbinnedHist.group_eqbin ( hist_list,
bins = 100,
range = None,
inplace = True )

Definition at line 39 of file UnbinnedHist.py.

39def group_eqbin(hist_list, bins=100, range=None, inplace=True):
40 if not range:
41 lowerbound = min(hist.lowerbound() for hist in hist_list)
42 upperbound = max(hist.upperbound() for hist in hist_list)
43 range = (lowerbound, upperbound)
44 hist_list = [hist.refill(bins, range, inplace) for hist in hist_list]
45 if not inplace:
46 return hist_list
47
#define min(a, b)
Definition cfImp.cxx:40
#define max(a, b)
Definition cfImp.cxx:41

◆ unbinned_hist()

python.UnbinnedHist.unbinned_hist ( tree,
expression,
selection = '',
options = '',
hist = None,
create_hist = False,
** kwargs )

Definition at line 35 of file UnbinnedHist.py.

35def unbinned_hist(tree, expression, selection='', options='', hist=None, create_hist=False, **kwargs):
36 obj = UnbinnedHist(tree, expression, selection, options, hist, create_hist, **kwargs)
37 obj.__class__ = UnbinnedHist
38 return obj