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

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, val)
 shoot (self)
 __repr__ (self)
 __call__ (self)

Public Attributes

 val = val

Detailed Description

Definition at line 25 of file samplers.py.

Member Typedef Documentation

◆ result

Definition at line 90 of file EDM_MasterSearch.h.

Constructor & Destructor Documentation

◆ __init__()

python.samplers.ConstSampler.__init__ ( self,
val )

Definition at line 28 of file samplers.py.

28 def __init__(self, val):
29 self.val = val
30

Member Function Documentation

◆ __call__()

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

◆ __repr__()

python.samplers.ConstSampler.__repr__ ( self)

Definition at line 34 of file samplers.py.

34 def __repr__(self):
35 return "ConstSampler[%s]" % str(self.val)
36
37

◆ shoot()

python.samplers.ConstSampler.shoot ( self)

Reimplemented from python.samplers.Sampler.

Definition at line 31 of file samplers.py.

31 def shoot(self):
32 return self.val
33

Member Data Documentation

◆ val

python.samplers.ConstSampler.val = val

Definition at line 29 of file samplers.py.


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