ATLAS Offline Software
Loading...
Searching...
No Matches
python.histsampling.TH2 Class Reference
Inheritance diagram for python.histsampling.TH2:
Collaboration diagram for python.histsampling.TH2:

Public Types

typedef HLT::TypeInformation::for_each_type_c< typenameEDMLIST::map, my_functor, my_result<>, my_arg< HLT::TypeInformation::get_cont, CONTAINER > >::type result

Public Member Functions

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

Public Attributes

 th2 = load_hist(*args)
 globalbins
 globalbin_to_axisbin
 cheights = None, None, None

Detailed Description

Definition at line 117 of file histsampling.py.

Member Typedef Documentation

◆ result

Definition at line 90 of file EDM_MasterSearch.h.

Constructor & Destructor Documentation

◆ __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

Member Function Documentation

◆ __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

Member Data Documentation

◆ cheights

python.histsampling.TH2.cheights = None, None, None

Definition at line 122 of file histsampling.py.

◆ globalbin_to_axisbin

python.histsampling.TH2.globalbin_to_axisbin

Definition at line 122 of file histsampling.py.

◆ globalbins

python.histsampling.TH2.globalbins

Definition at line 122 of file histsampling.py.

◆ th2

python.histsampling.TH2.th2 = load_hist(*args)

Definition at line 121 of file histsampling.py.


The documentation for this class was generated from the following file: