Belle II Software development
|
Public Member Functions | |
def | __init__ (self, module, storearray_name, storearray_durability=0) |
def | initialize (self) |
def | condition (self) |
Public Attributes | |
storearray_name | |
Name of the StoreArray to be checked (str). | |
storearray_durability | |
Durability of the StoreArray to be checked (int). | |
storearray_is_present | |
Flag that the StoreArray is present (bool). | |
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.
def __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.
Reimplemented from IfModule.
Reimplemented in IfMCParticlesPresentModule.
Definition at line 245 of file metamodules.py.
def 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.
def initialize | ( | self | ) |
Initialize the contained module (only if the condition is true).
Reimplemented from WrapperModule.
Definition at line 267 of file metamodules.py.
storearray_durability |
Durability of the StoreArray to be checked (int).
Definition at line 262 of file metamodules.py.
storearray_is_present |
Flag that the StoreArray is present (bool).
Definition at line 265 of file metamodules.py.
storearray_name |
Name of the StoreArray to be checked (str).
Definition at line 259 of file metamodules.py.