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

Public Member Functions

def __init__ (self, *args)
 
def shoot (self)
 
def __call__ (self)
 

Public Attributes

 sequence
 

Detailed Description

Definition at line 208 of file samplers.py.

Constructor & Destructor Documentation

◆ __init__()

def python.samplers.RandomSeqSampler.__init__ (   self,
args 
)

Definition at line 211 of file samplers.py.

211  def __init__(self, *args):
212  if len(args) == 1:
213  self.sequence = args[0]
214  else:
215  self.sequence = args
216 

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.RandomSeqSampler.shoot (   self)

Reimplemented from python.samplers.Sampler.

Definition at line 217 of file samplers.py.

217  def shoot(self):
218  return random.choice(self.sequence)
219 # Alias:

Member Data Documentation

◆ sequence

python.samplers.RandomSeqSampler.sequence

Definition at line 213 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