pyfeyn2.feynmandiagram.PDG
- class pyfeyn2.feynmandiagram.PDG(*args, **kwargs)[source]
Bases:
PDG
Methods
__init__
(*args, **kwargs)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_pdgid
([pdgid, type, name, feynmodel, sync])with_texname
(value[, k])Set texname to value and return self.
with_type
(value[, k])Set type to value and return self.
Attributes
id
Name of the particle
PDG ID of the particle
LaTeX name of the particle
Type of the particle, e.g. fermion, boson, etc.
- 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
- texname: str | None = None
LaTeX name 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_texname(value, k='texname')
Set texname to value and return self.
- with_type(value, k='type')
Set type to value and return self.