ATLAS Offline Software
Public Member Functions | Public Attributes | List of all members
python.samplers.InvSampler Class Reference
Inheritance diagram for python.samplers.InvSampler:
Collaboration diagram for python.samplers.InvSampler:

Public Member Functions

def __init__ (self, low, high)
 
def shoot (self)
 
def __call__ (self)
 

Public Attributes

 low
 
 high
 

Detailed Description

Definition at line 171 of file samplers.py.

Constructor & Destructor Documentation

◆ __init__()

def python.samplers.InvSampler.__init__ (   self,
  low,
  high 
)

Definition at line 174 of file samplers.py.

174  def __init__(self, low, high):
175  self.low = float(low)
176  self.high = float(high)
177 

Member Function Documentation

◆ __call__()

def python.samplers.Sampler.__call__ (   self)
inherited
This is the call method that will actually be used (so that normal
functions can also be passed in as samplers).

Definition at line 17 of file samplers.py.

17  def __call__(self):
18  """This is the call method that will actually be used (so that normal
19  functions can also be passed in as samplers)."""
20  return self.shoot()
21 

◆ shoot()

def python.samplers.InvSampler.shoot (   self)

Reimplemented from python.samplers.Sampler.

Definition at line 178 of file samplers.py.

178  def shoot(self):
179  invx = random.uniform(1/self.high, 1/self.low) #< limit inversion not actually necessary
180  return 1./invx
181 
182 

Member Data Documentation

◆ high

python.samplers.InvSampler.high

Definition at line 176 of file samplers.py.

◆ low

python.samplers.InvSampler.low

Definition at line 175 of file samplers.py.


The documentation for this class was generated from the following file:
python.processes.powheg.ZZ.ZZ.__init__
def __init__(self, base_directory, **kwargs)
Constructor: all process options are set here.
Definition: ZZ.py:18
readCCLHist.float
float
Definition: readCCLHist.py:83