![]() |
Belle II Software release-09-00-03
|


Public Member Functions | |
| def | __init__ (self, generator) |
| def | event (self) |
| def | terminate (self) |
Public Attributes | |
| generator | |
| The generator: alignment.Constraints. | |
| consts | |
| 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.
| def __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.
| def 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.
| def terminate | ( | self | ) |
Terminate: write-down collect constraint data to file
Definition at line 55 of file constraints_generator.py.
| consts |
Generated constraints (key is constraint checksum)
Definition at line 41 of file constraints_generator.py.
| generator |
The generator: alignment.Constraints.
Definition at line 39 of file constraints_generator.py.