data¶
A collection of data containers.
-
class
ParticleCollection(particles: Optional[Dict[str, expertsystem.data.Particle]] = None)[source]¶ Bases:
collections.abc.MappingSafe,
dict-like collection ofParticleinstances.-
find_subset(search_term: Union[int, str]) → expertsystem.data.ParticleCollection[source]¶ Perform a ‘fuzzy’ search for a particle by name or PID.
Like
find, but returns several results in the form of a newParticleCollection.
-
-
class
Particle(name: str, pid: int, state: expertsystem.data.QuantumState[float][float], mass: float, width: float = 0.0)[source]¶ Bases:
expertsystem.data.ComplexEnergyImmutable container of data defining a physical particle.
Can only contain info that the PDG would list.
-
property
name¶
-
property
pid¶
-
property
-
class
ComplexEnergyState(energy: complex, state: expertsystem.data.QuantumState[expertsystem.data.Spin][expertsystem.data.Spin])[source]¶ Bases:
expertsystem.data.ComplexEnergyPole in the complex energy plane, with quantum numbers.
-
class
QuantumState(spin: _T, charge: int = 0, isospin: Optional[expertsystem.data.Spin] = None, strangeness: int = 0, charmness: int = 0, bottomness: int = 0, topness: int = 0, baryon_number: int = 0, electron_lepton_number: int = 0, muon_lepton_number: int = 0, tau_lepton_number: int = 0, parity: Optional[expertsystem.data.Parity] = None, c_parity: Optional[expertsystem.data.Parity] = None, g_parity: Optional[expertsystem.data.Parity] = None)[source]¶ Bases:
typing.GenericSet of quantum numbers with a generic type spin.
This is to make spin projection required in
QuantumStateand unavailable inParticle.-
__eq__(other)¶
-
baryon_number: int = 0¶
-
bottomness: int = 0¶
-
c_parity: Optional[expertsystem.data.Parity] = None¶
-
charge: int = 0¶
-
charmness: int = 0¶
-
electron_lepton_number: int = 0¶
-
g_parity: Optional[expertsystem.data.Parity] = None¶
-
isospin: Optional[expertsystem.data.Spin] = None¶
-
muon_lepton_number: int = 0¶
-
parity: Optional[expertsystem.data.Parity] = None¶
-
spin: _T = None¶
-
strangeness: int = 0¶
-
tau_lepton_number: int = 0¶
-
topness: int = 0¶
-
-
class
Parity(value: Union[float, int, str])[source]¶ Bases:
objectSafe, immutable data container for parity.
-
property
value¶
-
property
-
class
Spin(magnitude: float, projection: float)[source]¶ Bases:
collections.abc.HashableSafe, immutable data container for spin with projection.
-
property
magnitude¶
-
property
projection¶
-
property