ATLAS Offline Software
Public Member Functions | Static Public Attributes | List of all members
PDGHelpers.ExtraParticle Class Reference
Inheritance diagram for PDGHelpers.ExtraParticle:
Collaboration diagram for PDGHelpers.ExtraParticle:

Public Member Functions

def __init__ (self, **kwargs)
 
def __str__ (self)
 
def __neg__ (self)
 
def getAntiName (self)
 

Static Public Attributes

string name = ""
 
int mass = -1
 
int width = -1
 
int charge = 0
 
int pdg = 0
 
 lifetime = h_Planck / joule
 

Detailed Description

Definition at line 69 of file PDGHelpers.py.

Constructor & Destructor Documentation

◆ __init__()

def PDGHelpers.ExtraParticle.__init__ (   self,
**  kwargs 
)

Definition at line 77 of file PDGHelpers.py.

77  def __init__(self, **kwargs):
78  self.__dict__.update(kwargs)
79 

Member Function Documentation

◆ __neg__()

def PDGHelpers.ExtraParticle.__neg__ (   self)

Definition at line 90 of file PDGHelpers.py.

90  def __neg__(self):
91  antiParticle = ExtraParticle(**self.__dict__)
92  antiParticle.name = self.getAntiName()
93  antiParticle.charge *= -1
94  antiParticle.pdg *= -1
95  return antiParticle
96 

◆ __str__()

def PDGHelpers.ExtraParticle.__str__ (   self)

Definition at line 80 of file PDGHelpers.py.

80  def __str__(self):
81  string = ''
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
88  return string
89 

◆ 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_', '')
101  else:
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('-', '+')
107 
108 

Member Data Documentation

◆ charge

int PDGHelpers.ExtraParticle.charge = 0
static

Definition at line 73 of file PDGHelpers.py.

◆ lifetime

PDGHelpers.ExtraParticle.lifetime = h_Planck / joule
static

Definition at line 75 of file PDGHelpers.py.

◆ mass

int PDGHelpers.ExtraParticle.mass = -1
static

Definition at line 71 of file PDGHelpers.py.

◆ name

string PDGHelpers.ExtraParticle.name = ""
static

Definition at line 70 of file PDGHelpers.py.

◆ pdg

int PDGHelpers.ExtraParticle.pdg = 0
static

Definition at line 74 of file PDGHelpers.py.

◆ width

int PDGHelpers.ExtraParticle.width = -1
static

Definition at line 72 of file PDGHelpers.py.


The documentation for this class was generated from the following file:
replace
std::string replace(std::string s, const std::string &s2, const std::string &s3)
Definition: hcg.cxx:307
python.processes.powheg.ZZ.ZZ.__init__
def __init__(self, base_directory, **kwargs)
Constructor: all process options are set here.
Definition: ZZ.py:18
WriteBchToCool.update
update
Definition: WriteBchToCool.py:67