pyfeyn2.feynmandiagram.PDG
- class pyfeyn2.feynmandiagram.PDG(id: Optional[str] = None, pdgid: Optional[int] = None, name: Optional[str] = None, type: Optional[str] = None, particle: Optional[particle.particle.particle.Particle] = None)[source]
Bases:
Identifiable- __init__(id: Optional[str] = None, pdgid: Optional[int] = None, name: Optional[str] = None, type: Optional[str] = None, particle: Optional[Particle] = None) None
Methods
__init__([id, pdgid, name, type, particle])set_name(*args, **kwargs)Deprecated since version 2.0.7.1.
set_pdgig(*args, **kwargs)Deprecated since version 2.0.7.1.
set_type(*args, **kwargs)Deprecated since version 2.0.7.1.
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- name: Optional[str] = None
Name of the particle
- particle: Optional[Particle] = None
Particle object from the particle package
- pdgid: Optional[int] = None
PDG ID of the particle
- set_name(*args, **kwargs)[source]
Deprecated since version 2.0.7.1: This will be removed in 2.2. Use with…().
- set_pdgig(*args, **kwargs)[source]
Deprecated since version 2.0.7.1: This will be removed in 2.2. Use with…().
- set_type(*args, **kwargs)[source]
Deprecated since version 2.0.7.1: This will be removed in 2.2. Use with…().
- 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.