Definition at line 117 of file histsampling.py.
◆ __init__()
def python.histsampling.TH2.__init__ |
( |
|
self, |
|
|
* |
args |
|
) |
| |
Definition at line 120 of file histsampling.py.
122 self.globalbins, self.globalbin_to_axisbin, self.cheights =
None,
None,
None
◆ __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.
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)
◆ cheights
python.histsampling.TH2.cheights |
◆ th2
python.histsampling.TH2.th2 |
The documentation for this class was generated from the following file: