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