ATLAS Offline Software
Classes | Functions
python.TrigEgammaMonitorHelper Namespace Reference

Classes

class  THWrapper
 

Functions

def TH1F (name, title, nxbins, bins_par2, bins_par3=None, path='', **kwargs)
 
def TH2F (name, title, nxbins, bins_par2, bins_par3, bins_par4, bins_par5=None, bins_par6=None, path='', **kwargs)
 
def TProfile (*args, **kwargs)
 

Function Documentation

◆ TH1F()

def python.TrigEgammaMonitorHelper.TH1F (   name,
  title,
  nxbins,
  bins_par2,
  bins_par3 = None,
  path = '',
**  kwargs 
)

Definition at line 24 of file TrigEgammaMonitorHelper.py.

24 def TH1F(name, title, nxbins, bins_par2, bins_par3=None, path='', **kwargs):
25 
26  res = THWrapper(name)
27  res['type'] = 'TH1F'
28  res['title'] = title
29 
30  if isinstance(bins_par2, (list, tuple) ): # signature 2
31  res['xbins'] = bins_par2
32  else: # signature 1
33  res['xbins'] = nxbins
34  res['xmin'] = bins_par2
35  res['xmax'] = bins_par3
36 
37  res['path'] = path
38  res.kwargs.update(kwargs)
39  return res
40 
41 
42 
43 
44 

◆ TH2F()

def python.TrigEgammaMonitorHelper.TH2F (   name,
  title,
  nxbins,
  bins_par2,
  bins_par3,
  bins_par4,
  bins_par5 = None,
  bins_par6 = None,
  path = '',
**  kwargs 
)

Definition at line 45 of file TrigEgammaMonitorHelper.py.

45 def TH2F(name, title, nxbins, bins_par2, bins_par3, bins_par4, bins_par5=None, bins_par6=None, path='', **kwargs):
46 
47  res = THWrapper(name)
48  res['type'] = 'TH2F'
49  res['title'] = title
50 
51  if isinstance(bins_par2, (list, tuple) ): # signature 2 or 4
52  res['xbins'] = bins_par2
53  if isinstance(bins_par4, (list, tuple) ): # signature 4
54  res['ybins'] = bins_par4
55  else: # signature 2
56  res['ybins'] = bins_par3
57  res['ymin'] = bins_par4
58  res['ymax'] = bins_par5
59 
60  else: # signature 1 or 3
61  res['xbins'] = nxbins
62  res['xmin'] = bins_par2
63  res['xmax'] = bins_par3
64  if isinstance(bins_par5, (list, tuple) ): # signature 3
65  res['ybins'] = bins_par5
66  else: # signature 1
67  res['ybins'] = bins_par4
68  res['ymin'] = bins_par5
69  res['ymax'] = bins_par6
70 
71  res['path'] = path
72  res.kwargs.update(kwargs)
73  return res
74 
75 
76 
77 
78 
79 
80 

◆ TProfile()

def python.TrigEgammaMonitorHelper.TProfile ( args,
**  kwargs 
)

Definition at line 81 of file TrigEgammaMonitorHelper.py.

81 def TProfile(*args, **kwargs):
82  res = TH1F(*args, **kwargs)
83  res.name = res.name
84  res['type'] = 'TProfile'
85  return res
86 
87 
88 
89 
90 
python.TrigEgammaMonitorHelper.TH2F
def TH2F(name, title, nxbins, bins_par2, bins_par3, bins_par4, bins_par5=None, bins_par6=None, path='', **kwargs)
Definition: TrigEgammaMonitorHelper.py:45
python.TrigEgammaMonitorHelper.TProfile
def TProfile(*args, **kwargs)
Definition: TrigEgammaMonitorHelper.py:81
python.TrigEgammaMonitorHelper.TH1F
def TH1F(name, title, nxbins, bins_par2, bins_par3=None, path='', **kwargs)
Definition: TrigEgammaMonitorHelper.py:24