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)

set_pdgig(*args, **kwargs)

set_type(*args, **kwargs)

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

id

name

Name of the particle

particle

Particle object from the particle package

pdgid

PDG ID of the particle

type

Type of the particle, e.g.

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

type: Optional[str] = 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.