Definition at line 69 of file PDGHelpers.py.
◆ __init__()
def PDGHelpers.ExtraParticle.__init__ |
( |
|
self, |
|
|
** |
kwargs |
|
) |
| |
◆ __neg__()
def PDGHelpers.ExtraParticle.__neg__ |
( |
|
self | ) |
|
Definition at line 90 of file PDGHelpers.py.
91 antiParticle = ExtraParticle(**self.__dict__)
92 antiParticle.name = self.getAntiName()
93 antiParticle.charge *= -1
94 antiParticle.pdg *= -1
◆ __str__()
def PDGHelpers.ExtraParticle.__str__ |
( |
|
self | ) |
|
Definition at line 80 of file PDGHelpers.py.
82 string +=
'name: %s\n' % self.name
83 string +=
' mass: %s\n' % self.mass
84 string +=
' width: %s\n' % self.width
85 string +=
' charge: %s\n' % self.charge
86 string +=
' pdg: %s\n' % self.pdg
87 string +=
' lifetime: %s\n' % self.lifetime
◆ getAntiName()
def PDGHelpers.ExtraParticle.getAntiName |
( |
|
self | ) |
|
Definition at line 97 of file PDGHelpers.py.
97 def getAntiName(self):
98 if self.name[-1] ==
'0':
99 if 'anti_' in self.name:
100 return self.name.
replace(
'anti_',
'')
102 return 'anti_' + self.name
103 elif self.name[-1] ==
'+':
104 return self.name.
replace(
'+',
'-')
105 elif self.name[-1] ==
'-':
106 return self.name.
replace(
'-',
'+')
◆ charge
int PDGHelpers.ExtraParticle.charge = 0 |
|
static |
◆ lifetime
PDGHelpers.ExtraParticle.lifetime = h_Planck / joule |
|
static |
◆ mass
int PDGHelpers.ExtraParticle.mass = -1 |
|
static |
◆ name
string PDGHelpers.ExtraParticle.name = "" |
|
static |
◆ pdg
int PDGHelpers.ExtraParticle.pdg = 0 |
|
static |
◆ width
int PDGHelpers.ExtraParticle.width = -1 |
|
static |
The documentation for this class was generated from the following file: