![]() |
Belle II Software development
|
Public Member Functions | |
__init__ (self, generator) | |
event (self) | |
terminate (self) | |
Public Attributes | |
generator = generator | |
The generator: alignment.Constraints. | |
consts = dict() | |
Generated constraints (key is constraint checksum) | |
basf2 python module to generate a file with a single set of constraints (Needed especially for time-dependent constraints)
Definition at line 19 of file constraints_generator.py.
__init__ | ( | self, | |
generator ) |
Constructor Parameters ---------- generator : alignment.Constraints Set of constraints to be generated (defines also filename)
Definition at line 26 of file constraints_generator.py.
event | ( | self | ) |
Event: attempt to add constraints At each event, attempt to generate the constraints and add them to the dict (same checksum - using only labels - means it gets overridden!) Thus is only works if the time-dependence is set (otherwise you always get the same labels and only the last constraint coefficients will be stored)
Definition at line 44 of file constraints_generator.py.
terminate | ( | self | ) |
Terminate: write-down collect constraint data to file
Definition at line 55 of file constraints_generator.py.
consts = dict() |
Generated constraints (key is constraint checksum)
Definition at line 41 of file constraints_generator.py.
generator = generator |
The generator: alignment.Constraints.
Definition at line 39 of file constraints_generator.py.