particle¶
This module defines a particle as a collection of quantum numbers and things related to this
-
class
FloatQNConverter
[source]¶ Bases:
expertsystem.state.particle.AbstractQNConverter
-
class_label
= 'Class'¶
-
type_label
= 'Type'¶
-
value_label
= 'Value'¶
-
-
class
IntQNConverter
[source]¶ Bases:
expertsystem.state.particle.AbstractQNConverter
-
class_label
= 'Class'¶
-
type_label
= 'Type'¶
-
value_label
= 'Value'¶
-
-
class
InteractionQuantumNumberNames
¶ Bases:
enum.Enum
An enumeration.
-
L
= 1¶
-
ParityPrefactor
= 3¶
-
S
= 2¶
-
-
class
LABELS
¶ Bases:
enum.Enum
An enumeration.
-
Class
= 1¶
-
Component
= 2¶
-
DecayInfo
= 3¶
-
Name
= 4¶
-
Parameter
= 5¶
-
Pid
= 6¶
-
PreFactor
= 7¶
-
Projection
= 8¶
-
QuantumNumber
= 9¶
-
Type
= 10¶
-
Value
= 11¶
-
-
class
ParticleDecayPropertyNames
¶ Bases:
enum.Enum
definition of quantum number names for interaction nodes
-
Width
= 1¶
-
-
class
ParticlePropertyNames
¶ Bases:
enum.Enum
definition of decay properties names of particles
-
Mass
= 2¶
-
Pid
= 1¶
-
-
class
QuantumNumberClasses
¶ 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:
expertsystem.state.particle.AbstractQNConverter
-
class_label
= 'Class'¶
-
proj_label
= 'Projection'¶
-
type_label
= 'Type'¶
-
value_label
= 'Value'¶
-
-
class
StateQuantumNumberNames
¶ Bases:
enum.Enum
definition of properties names of particles
-
BaryonNumber
= 1¶
-
Bottomness
= 2¶
-
Charge
= 3¶
-
Charm
= 4¶
-
Cparity
= 5¶
-
ElectronLN
= 6¶
-
Gparity
= 7¶
-
IsoSpin
= 8¶
-
MuonLN
= 9¶
-
Parity
= 10¶
-
Spin
= 11¶
-
Strangeness
= 12¶
-
TauLN
= 13¶
-
Topness
= 14¶
-
-
add_to_particle_list
(particle)[source]¶ Add a particle dictionary object to the
particle_list
dictionary. The key will be extracted from theparticle
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.
-
load_particle_list_from_xml
(file_path)[source]¶ Add entries to the
particle_list
from definitions in an XML file.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.- Return type
None
-
load_particle_list_from_yaml
(file_path)[source]¶ Use
load_particle_list_from_yaml
to append to theparticle_list
from a YAML file.Note
If a particle name in the YAML file already exists in the
particle_list
instance, the one inparticle_list
will be overwritten.- Return type
None