quantum_numbers¶
import expertsystem.reaction.quantum_numbers
Definitions used internally for type hints and signatures.
The expertsystem is strictly typed (enforced through mypy). This module bundles structures and definitions that don’t serve
as data containers but only as type hints. EdgeQuantumNumbers and
NodeQuantumNumbers are the main structures and serve as a bridge between the
reaction.particle and the reaction module.
-
class
EdgeQuantumNumbers[source]¶ Bases:
objectDefinition of quantum numbers for edges.
This class defines the types that are used in the
conservation_rules, for instance inadditive_quantum_number_rule. You can also create data classes (seeattr.s) with data members that are typed as the data members ofEdgeQuantumNumbers(see for exampleHelicityParityEdgeInput) and use them in conservation rules that satisfy the appropriate rule protocol (seeConservationRule,EdgeQNConservationRule).-
__eq__(other)¶ Method generated by attrs for class EdgeQuantumNumbers.
-
baryon_number()¶
-
bottomness()¶
-
c_parity()¶
-
charge()¶
-
charmness()¶
-
electron_lepton_number()¶
-
g_parity()¶
-
isospin_magnitude()¶
-
isospin_projection()¶
-
mass()¶
-
muon_lepton_number()¶
-
parity()¶
-
pid()¶
-
spin_magnitude()¶
-
spin_projection()¶
-
strangeness()¶
-
tau_lepton_number()¶
-
topness()¶
-
width()¶
-
-
class
InteractionProperties(l_magnitude=None, l_projection=None, s_magnitude=None, s_projection=None, parity_prefactor=None)[source]¶ Bases:
objectImmutable data structure containing interaction properties.
Note
As opposed to
NodeQuantumNumbers, theInteractionPropertiesclass serves as an interface to the user.-
__eq__(other)¶ Method generated by attrs for class InteractionProperties.
-
-
class
NodeQuantumNumbers[source]¶ Bases:
objectDefinition of quantum numbers for interaction nodes.
-
__eq__(other)¶ Method generated by attrs for class NodeQuantumNumbers.
-
l_magnitude()¶
-
l_projection()¶
-
parity_prefactor()¶
-
s_magnitude()¶
-
s_projection()¶
-
-
edge_qn_type(self)¶ Method generated by attrs for class EdgeQuantumNumbers.
-
node_qn_type(self)¶ Method generated by attrs for class NodeQuantumNumbers.