ATLAS Offline Software
Public Member Functions | Public Attributes | List of all members
python.histsampling.TH2 Class Reference
Inheritance diagram for python.histsampling.TH2:
Collaboration diagram for python.histsampling.TH2:

Public Member Functions

def __init__ (self, *args)
 
def GetRandom (self)
 
def __getattr__ (self, attr)
 

Public Attributes

 th2
 
 cheights
 

Detailed Description

Definition at line 117 of file histsampling.py.

Constructor & Destructor Documentation

◆ __init__()

def python.histsampling.TH2.__init__ (   self,
args 
)

Definition at line 120 of file histsampling.py.

120  def __init__(self, *args):
121  self.th2 = load_hist(*args)
122  self.globalbins, self.globalbin_to_axisbin, self.cheights = None, None, None
123 

Member Function Documentation

◆ __getattr__()

def python.histsampling.TH2.__getattr__ (   self,
  attr 
)

Definition at line 130 of file histsampling.py.

130  def __getattr__(self, attr):
131  "Forward other attributes to the contained TH2"
132  return getattr(self.th2, attr)

◆ GetRandom()

def python.histsampling.TH2.GetRandom (   self)

Definition at line 124 of file histsampling.py.

124  def GetRandom(self):
125  "A GetRandom that works for TH2s"
126  if self.globalbins is None or self.globalbin_to_axisbin is None or self.cheights is None:
127  self.globalbins, self.globalbin_to_axisbin, self.cheights = get_sampling_vars(self.th2)
128  return get_random_xy(self.th2, self.globalbins, self.cheights, self.globalbin_to_axisbin)
129 

Member Data Documentation

◆ cheights

python.histsampling.TH2.cheights

Definition at line 122 of file histsampling.py.

◆ th2

python.histsampling.TH2.th2

Definition at line 121 of file histsampling.py.


The documentation for this class was generated from the following file:
python.histsampling.get_random_xy
def get_random_xy(h2, globalbins, cheights, globalbin_to_axisbin)
Definition: histsampling.py:86
python.processes.powheg.ZZ.ZZ.__init__
def __init__(self, base_directory, **kwargs)
Constructor: all process options are set here.
Definition: ZZ.py:18
python.histsampling.load_hist
def load_hist(*args)
Definition: histsampling.py:13
python.histsampling.get_sampling_vars
def get_sampling_vars(h)
Definition: histsampling.py:33