pyfeyn2.feynmandiagram.PDG
- class pyfeyn2.feynmandiagram.PDG(*args, **kwargs)[source]
Bases:
PDG
Methods
__init__
(*args, **kwargs)Deprecated since version 2.2.6.
is_anti
()Return True if the particle is an anti particle, False otherwise.
Return True if the particle is an anti fermion, False otherwise.
Return True if the particle is a fermion or anti fermion, False otherwise.
Return True if the particle is a fermion, False otherwise.
with_id
(id)set id
with_name
(value[, k])Set name to value and return self.
generate new id
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
id
Name of the particle
Particle object from the particle package
PDG ID of the particle
Type of the particle, e.g.
- is_any_fermion()[source]
Return True if the particle is a fermion or anti fermion, False otherwise.
- name: str | None = None
Name of the particle
- pdgid: int | None = None
PDG ID of the particle
- type: str | None = None
Type of the particle, e.g. fermion, boson, etc.
- with_id(id: str)
set id
- with_name(value, k='name')
Set name to value and return self.
- with_new_id()
generate new id
- 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.