system_control¶
Deprecated since version 0.1.3: Use QRules, AmpForm, and TensorWaves instead.
import pycompwa.expertsystem.ui.system_control
- class GammaCheck[source]¶
Bases:
pycompwa.expertsystem.ui.system_control.InteractionDeterminationFunctorInterface
- name_label = '@Name'¶
- class LeptonCheck[source]¶
Bases:
pycompwa.expertsystem.ui.system_control.InteractionDeterminationFunctorInterface
- lepton_flavor_labels = [<StateQuantumNumberNames.ElectronLN: 12>, <StateQuantumNumberNames.MuonLN: 13>, <StateQuantumNumberNames.TauLN: 14>]¶
- name_label = '@Name'¶
- qns_label = 'QuantumNumber'¶
- class StateTransitionManager(initial_state, final_state, allowed_intermediate_particles=[], interaction_type_settings={}, formalism_type='helicity', topology_building='isobar', number_of_threads=4, propagation_mode='fast')[source]¶
Bases:
object
- check_equal_ignoring_qns(ref_graph, solutions, ignored_qn_list)[source]¶
defines the equal operator for the graphs ignoring certain quantum numbers.
- filter_graphs(graphs, filters)[source]¶
Implements filtering of a list of
StateTransitionGraph
‘s.This function can be used to select a subset of
StateTransitionGraph
‘s from a list. Only the graphs passing all supplied filters will be returned.Note
For the more advanced user, lambda functions can be used as filters.
- Parameters
graphs ([
StateTransitionGraph
]) – list of graphs to be filteredfilters ([function]) – list of functions, which take a single
StateTransitionGraph
as an argument
- Returns
filtered list of graphs
- Return type
Example
Selecting only the solutions, in which the \(\rho\) decays via p-wave:
>>> my_filter = require_interaction_property( 'rho', InteractionQuantumNumberNames.L, create_spin_domain([1], True)) >>> filtered_solutions = filter_graphs(solutions, [my_filter])
- perform_external_edge_identical_particle_combinatorics(graph)[source]¶
Creates combinatorics clones of the StateTransitionGraph in case of identical particles in the initial or final state.
Only identical particles, which do not enter or exit the same node allow for combinatorics!
- require_interaction_property(ingoing_particle_name, interaction_qn, allowed_values)[source]¶
Closure, which can be used as a filter function in
filter_graphs()
.It selects graphs based on a requirement on the property of specific interaction nodes.
- Parameters
ingoing_particle_name (str) – name of particle, used to find nodes which have a particle with this name as “ingoing”
interaction_qn (
InteractionQuantumNumberNames
) – interaction quantum numberallowed_values (list) – list of allowed values, that the interaction quantum number may take
- Returns
True if the graph has nodes with an ingoing particle of the given name, and the graph fullfills the quantum number requirement
False otherwise
- Return type