pyfeyn2.feynmandiagram.PDG
- class pyfeyn2.feynmandiagram.PDG(*args, **kwargs)[source]
Bases:
PDGMethods
__init__(*args, **kwargs)Deprecated since version 2.2.6.
with_id(value[, k])Set id to value and return self.
with_name(value[, k])Set name to value and return self.
with_particle(value[, k])Set particle to value and return self.
with_pdgid(value[, k])Set pdgid to value and return self.
with_type(value[, k])Set type to value and return self.
Attributes
idName of the particle
Particle object from the particle package
PDG ID of the particle
Type of the particle, e.g.
- name: str | None = None
Name of the particle
- particle: Particle | None = None
Particle object from the particle package
- pdgid: int | None = None
PDG ID of the particle
- type: str | None = None
Type of the particle, e.g. fermion, boson, etc.
- with_id(value, k='id')
Set id to value and return self.
- with_name(value, k='name')
Set name to value and return self.
- with_particle(value, k='particle')
Set particle to value and return self.
- with_pdgid(value, k='pdgid')
Set pdgid to value and return self.
- with_type(value, k='type')
Set type to value and return self.