![]() |
Belle II Software development
|
Public Member Functions | |
__init__ (self, module, storearray_name, storearray_durability=0) | |
initialize (self) | |
condition (self) | |
event (self) | |
wrapper_name (self) | |
param (self) | |
available_params (self) | |
compose_wrapped_module_name (self, module) | |
get_name (self) | |
beginRun (self) | |
endRun (self) | |
terminate (self) | |
Public Attributes | |
storearray_name = storearray_name | |
Name of the StoreArray to be checked (str). | |
storearray_durability = storearray_durability | |
Durability of the StoreArray to be checked (int). | |
storearray_is_present = None | |
Flag that the StoreArray is present (bool). | |
module = module | |
The wrapped module. | |
Conditional execution of the wrapped module if a StoreArray is present. Attributes: storearray_name (str): The name of the StoreArray which presence has to be checked. storearray_durability (int): The durability of the StoreArray storearray_is_present (bool): The flag whether the StoreArray is present. Set during initialisation.
Definition at line 234 of file metamodules.py.
__init__ | ( | self, | |
module, | |||
storearray_name, | |||
storearray_durability = 0 ) |
Args: module (basf2.Module): The module executed, if the condition is met. storearray_name (str): The name of the StoreArray which presence has to be checked. storearray_durability (int, optional): The durability of the StoreArray. Default 0.
Definition at line 245 of file metamodules.py.
|
inherited |
Forwards the available parameters
Definition at line 78 of file metamodules.py.
|
inherited |
Begin run method of the module
Definition at line 94 of file metamodules.py.
|
inherited |
Compose a name that indicates the wrapped module.
Definition at line 82 of file metamodules.py.
condition | ( | self | ) |
Returns true if the StoreArray is present. Checks presence of the StoreArray once and remembers the result for all following events.
Reimplemented from IfModule.
Reimplemented in IfStoreArrayNotPresentModule.
Definition at line 272 of file metamodules.py.
|
inherited |
End run method of the module
Definition at line 102 of file metamodules.py.
|
inherited |
Event method of the module Evaluates the condition and sets the return value of this module to trigger the execution of the wrapped module.
Reimplemented from WrapperModule.
Definition at line 212 of file metamodules.py.
|
inherited |
Forwards the name().
Definition at line 86 of file metamodules.py.
initialize | ( | self | ) |
Initialize the contained module (only if the condition is true).
Reimplemented from WrapperModule.
Definition at line 267 of file metamodules.py.
|
inherited |
Forwards the parameters
Definition at line 73 of file metamodules.py.
|
inherited |
Terminate method of the module
Reimplemented in PyProfilingModule.
Definition at line 106 of file metamodules.py.
|
inherited |
Name of the wrapper class.
Definition at line 68 of file metamodules.py.
|
inherited |
The wrapped module.
Definition at line 53 of file metamodules.py.
storearray_durability = storearray_durability |
Durability of the StoreArray to be checked (int).
Definition at line 262 of file metamodules.py.
storearray_is_present = None |
Flag that the StoreArray is present (bool).
Definition at line 265 of file metamodules.py.
storearray_name = storearray_name |
Name of the StoreArray to be checked (str).
Definition at line 259 of file metamodules.py.