![]() |
Belle II Software light-2609-luna
|


Public Member Functions | |
| __init__ (self, bp_list, b0_list, gen_dmid_variable=DEFAULT_GEN_DMID_VARIABLE, weight_variable=DEFAULT_WEIGHT_VARIABLE, rest_dmid=REST_DMID, use_calibrated_dmids_only=True, store_btag_candidate_signature=False) | |
| initialize (self) | |
| event (self) | |
Public Attributes | |
| bp_list = bp_list | |
| B+ particle list name. | |
| b0_list = b0_list | |
| B0 particle list name. | |
| gen_dmid_variable = gen_dmid_variable | |
| ExtraInfo key name for the generated decay mode ID. | |
| weight_variable = weight_variable | |
| ExtraInfo key name for the calibration weight. | |
| rest_dmid = rest_dmid | |
| Decay mode ID used for the rest (non-calibrated) category. | |
| use_calibrated_dmids_only = use_calibrated_dmids_only | |
| Whether to restrict to calibrated decay mode IDs only. | |
| store_btag_candidate_signature = store_btag_candidate_signature | |
| Whether to store the full btag candidate signature as ExtraInfo. | |
Protected Member Functions | |
| _validate_configuration (self) | |
| _annotate_list (self, list_name, truth_cache) | |
Static Protected Member Functions | |
| _normalize_int (value) | |
| _set_extra_info (particle, key, value) | |
| _is_non_continuum_event (particle) | |
| _report_missing_truth_annotation (list_name, particle, reason) | |
Protected Attributes | |
| bool | _validated = False |
| Internal flag: True after configuration has been validated. | |
Assign generated-decay dmIDs and calibration weights to FEI candidates.
Definition at line 417 of file generatedDecayWeights.py.
| __init__ | ( | self, | |
| bp_list, | |||
| b0_list, | |||
| gen_dmid_variable = DEFAULT_GEN_DMID_VARIABLE, | |||
| weight_variable = DEFAULT_WEIGHT_VARIABLE, | |||
| rest_dmid = REST_DMID, | |||
| use_calibrated_dmids_only = True, | |||
| store_btag_candidate_signature = False ) |
Initialise module parameters.
Definition at line 422 of file generatedDecayWeights.py.
|
protected |
Annotate all candidates in list_name using the pre-built truth_cache.
Definition at line 506 of file generatedDecayWeights.py.
|
staticprotected |
Return True if the event is not a continuum event.
Definition at line 493 of file generatedDecayWeights.py.
|
staticprotected |
Return int(value), or None if value is NaN.
Definition at line 480 of file generatedDecayWeights.py.
|
staticprotected |
Emit a B2ERROR for a non-continuum candidate missing its truth annotation.
Definition at line 499 of file generatedDecayWeights.py.
|
staticprotected |
Set or add an ExtraInfo entry on a particle.
Definition at line 485 of file generatedDecayWeights.py.
|
protected |
Raise a fatal error if any module parameter is invalid.
Definition at line 455 of file generatedDecayWeights.py.
| event | ( | self | ) |
Annotate all B candidates with generated decay mode IDs and calibration weights.
Definition at line 558 of file generatedDecayWeights.py.
| initialize | ( | self | ) |
Validate configuration once at the start of processing.
Definition at line 451 of file generatedDecayWeights.py.
|
protected |
Internal flag: True after configuration has been validated.
Definition at line 449 of file generatedDecayWeights.py.
| b0_list = b0_list |
B0 particle list name.
Definition at line 437 of file generatedDecayWeights.py.
| bp_list = bp_list |
B+ particle list name.
Definition at line 435 of file generatedDecayWeights.py.
| gen_dmid_variable = gen_dmid_variable |
ExtraInfo key name for the generated decay mode ID.
Definition at line 439 of file generatedDecayWeights.py.
| rest_dmid = rest_dmid |
Decay mode ID used for the rest (non-calibrated) category.
Definition at line 443 of file generatedDecayWeights.py.
| store_btag_candidate_signature = store_btag_candidate_signature |
Whether to store the full btag candidate signature as ExtraInfo.
Definition at line 447 of file generatedDecayWeights.py.
| use_calibrated_dmids_only = use_calibrated_dmids_only |
Whether to restrict to calibrated decay mode IDs only.
Definition at line 445 of file generatedDecayWeights.py.
| weight_variable = weight_variable |
ExtraInfo key name for the calibration weight.
Definition at line 441 of file generatedDecayWeights.py.