ATLAS Offline Software
Classes | Functions
python.UnbinnedHist Namespace Reference

Classes

class  UnbinnedHist
 

Functions

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

Function Documentation

◆ group_eqbin()

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

Definition at line 39 of file UnbinnedHist.py.

39 def 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 

◆ unbinned_hist()

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

Definition at line 35 of file UnbinnedHist.py.

35 def 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
max
#define max(a, b)
Definition: cfImp.cxx:41
python.UnbinnedHist.unbinned_hist
def unbinned_hist(tree, expression, selection='', options='', hist=None, create_hist=False, **kwargs)
Definition: UnbinnedHist.py:35
min
#define min(a, b)
Definition: cfImp.cxx:40
python.UnbinnedHist.group_eqbin
def group_eqbin(hist_list, bins=100, range=None, inplace=True)
Definition: UnbinnedHist.py:39