Definition at line 99 of file histsampling.py.
◆ result
◆ __init__()
| python.histsampling.TH1.__init__ |
( |
| self, |
|
|
* | args ) |
Definition at line 102 of file histsampling.py.
102 def __init__(self, *args):
103 self.th1 = load_hist(*args)
104 self.globalbins, self.globalbin_to_axisbin, self.cheights = None, None, None
105
◆ __getattr__()
| 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)
115
116
◆ GetRandom()
| python.histsampling.TH1.GetRandom |
( |
| self | ) |
|
Definition at line 106 of file histsampling.py.
106 def GetRandom(self):
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)
111
◆ cheights
◆ globalbin_to_axisbin
| python.histsampling.TH1.globalbin_to_axisbin |
◆ globalbins
| python.histsampling.TH1.globalbins |
◆ th1
| python.histsampling.TH1.th1 = load_hist(*args) |
The documentation for this class was generated from the following file: