particle¶
Deprecated since version 0.1.3: Use QRules, AmpForm, and TensorWaves instead.
import pycompwa.expertsystem.state.particle
This module defines a particle as a collection of quantum numbers and things related to this.
- class FloatQNConverter[source]¶
Bases:
pycompwa.expertsystem.state.particle.AbstractQNConverter
- class_label = '@Class'¶
- type_label = '@Type'¶
- value_label = '@Value'¶
- class IntQNConverter[source]¶
Bases:
pycompwa.expertsystem.state.particle.AbstractQNConverter
- class_label = '@Class'¶
- type_label = '@Type'¶
- value_label = '@Value'¶
- class InteractionQuantumNumberNames(value)¶
Bases:
enum.Enum
An enumeration.
- L = 1¶
- ParityPrefactor = 3¶
- S = 2¶
- class ParticleDecayPropertyNames(value)¶
Bases:
enum.Enum
definition of quantum number names for interaction nodes
- Width = 1¶
- class ParticlePropertyNames(value)¶
Bases:
enum.Enum
definition of decay properties names of particles
- Mass = 2¶
- Pid = 1¶
- class QuantumNumberClasses(value)¶
Bases:
enum.Enum
definition of quantum number names for states
- Float = 2¶
- Int = 1¶
- Spin = 3¶
- class Spin(mag, proj)[source]¶
Bases:
object
Simple struct-like class defining spin as a magnitude plus the projection.
- class SpinQNConverter(parse_projection=True)[source]¶
Bases:
pycompwa.expertsystem.state.particle.AbstractQNConverter
- class_label = '@Class'¶
- proj_label = '@Projection'¶
- type_label = '@Type'¶
- value_label = '@Value'¶
- class StateQuantumNumberNames(value)¶
Bases:
enum.Enum
definition of properties names of particles
- BaryonNumber = 11¶
- Bottomness = 9¶
- Charge = 1¶
- Charm = 8¶
- Cparity = 4¶
- ElectronLN = 12¶
- Gparity = 5¶
- IsoSpin = 6¶
- MuonLN = 13¶
- Parity = 3¶
- Spin = 2¶
- Strangeness = 7¶
- TauLN = 14¶
- Topness = 10¶
- class XMLLabelConstants(value)¶
Bases:
enum.Enum
An enumeration.
- Class = 6¶
- Component = 8¶
- DecayInfo = 11¶
- Name = 1¶
- Parameter = 9¶
- Pid = 2¶
- PreFactor = 10¶
- Projection = 7¶
- QuantumNumber = 5¶
- Type = 3¶
- Value = 4¶
- add_to_particle_list(particle)[source]¶
Add a particle dictionary object to the
particle_list
dictionary.The key will be extracted from the
particle
name (XML tag@Name
). If the key already exists, the entry inparticle_list
will be overwritten by this one.
- calculate_combinatorics(edges, state_particles, attached_external_edges_per_node, allowed_particle_groupings=[])[source]¶
- get_particle_copy_by_name(particle_name)[source]¶
Get a
deepcopy
of a particle from theparticle_list
dictionary so you can manipulate it and add it to the particle data base.
- get_particle_with_name(particle_name)[source]¶
Deprecated since version 0.2.0:
particle_list
has become a dictionary, so you can already access its entries with a string index.
- get_xml_label(enum)[source]¶
Return the the correctly formatted XML label as required by ComPWA and
xmltodict
.
- load_particle_list_from_xml(file_path)[source]¶
By default, the expert system loads the
particle_list
from the XML fileparticle_list.xml
located in the ComPWA module. Useload_particle_list_from_xml
to append to theparticle_list
.Note
If a particle name in the loaded XML file already exists in the
particle_list
, the one in theparticle_list
will be overwritten.