Definition at line 99 of file histsampling.py.
◆ __init__()
def python.histsampling.TH1.__init__ |
( |
|
self, |
|
|
* |
args |
|
) |
| |
Definition at line 102 of file histsampling.py.
104 self.globalbins, self.globalbin_to_axisbin, self.cheights =
None,
None,
None
◆ __getattr__()
def python.histsampling.TH1.__getattr__ |
( |
|
self, |
|
|
|
attr |
|
) |
| |
Definition at line 112 of file histsampling.py.
112 def __getattr__(self, attr):
113 "Forward all attributes to the contained TH1"
114 return getattr(self.th1, attr)
◆ GetRandom()
def python.histsampling.TH1.GetRandom |
( |
|
self | ) |
|
Definition at line 106 of file histsampling.py.
107 "A GetRandom that works for TH1s and uses Python random numbers"
108 if self.globalbins
is None or self.globalbin_to_axisbin
is None or self.cheights
is None:
109 self.globalbins, self.globalbin_to_axisbin, self.cheights =
get_sampling_vars(self.th1)
110 return get_random_x(self.th1, self.globalbins, self.cheights, self.globalbin_to_axisbin)
◆ cheights
python.histsampling.TH1.cheights |
◆ th1
python.histsampling.TH1.th1 |
The documentation for this class was generated from the following file: