Package madgraph :: Package core :: Module base_objects :: Class Particle
[hide private]
[frames] | no frames]

Class Particle

source code

object --+        
         |        
      dict --+    
             |    
 PhysicsObject --+
                 |
                Particle

The particle object containing the whole set of information required to univocally characterize a given type of physical particle: name, spin, color, mass, width, charge,... The is_part flag tells if the considered particle object is a particle or an antiparticle. The self_antipart flag tells if the particle is its own antiparticle.

Nested Classes [hide private]

Inherited from PhysicsObject: PhysicsObjectError

Instance Methods [hide private]
 
default_setup(self)
Default values for all properties
source code
D[k] if k in D, else d
get(self, name)
Get the value of the property name.
source code
 
set(self, name, value, force=False)
Set the value of the property name.
source code
 
filter(self, name, value)
Filter for valid particle property values.
source code
 
get_sorted_keys(self)
Return particle property names as a nicely sorted list.
source code
 
is_perturbating(self, order, model)
Returns wether this particle contributes in perturbation of the order passed in argument given the model specified.
source code
 
get_pdg_code(self)
Return the PDG code with a correct minus sign if the particle is its own antiparticle
source code
 
get_anti_pdg_code(self)
Return the PDG code of the antiparticle with a correct minus sign if the particle is its own antiparticle
source code
 
get_color(self)
Return the color code with a correct minus sign
source code
 
get_anti_color(self)
Return the color code of the antiparticle with a correct minus sign
source code
 
get_charge(self)
Return the charge code with a correct minus sign
source code
 
get_anti_charge(self)
Return the charge code of the antiparticle with a correct minus sign
source code
 
get_name(self)
Return the name if particle, antiname if antiparticle
source code
 
get_helicity_states(self, allow_reverse=True)
Return a list of the helicity states for the onshell particle
source code
 
is_fermion(self)
Returns True if this is a fermion, False if boson
source code
 
is_boson(self)
Returns True if this is a boson, False if fermion
source code

Inherited from PhysicsObject: __getitem__, __init__, __repr__, __str__, is_valid_prop

Inherited from dict: __cmp__, __contains__, __delitem__, __eq__, __ge__, __getattribute__, __gt__, __iter__, __le__, __len__, __lt__, __ne__, __new__, __setitem__, __sizeof__, clear, copy, fromkeys, has_key, items, iteritems, iterkeys, itervalues, keys, pop, popitem, setdefault, update, values, viewitems, viewkeys, viewvalues

Inherited from object: __delattr__, __format__, __reduce__, __reduce_ex__, __setattr__, __subclasshook__

Class Variables [hide private]
  sorted_keys = ['name', 'antiname', 'spin', 'color', 'charge', ...

Inherited from dict: __hash__

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

default_setup(self)

source code 

Default values for all properties

Overrides: PhysicsObject.default_setup

get(self, name)

source code 

Get the value of the property name.

Returns: D[k] if k in D, else d
Overrides: dict.get
(inherited documentation)

set(self, name, value, force=False)

source code 

Set the value of the property name. First check if value is a valid value for the considered property. Return True if the value has been correctly set, False otherwise.

Overrides: PhysicsObject.set
(inherited documentation)

filter(self, name, value)

source code 

Filter for valid particle property values.

Overrides: PhysicsObject.filter

get_sorted_keys(self)

source code 

Return particle property names as a nicely sorted list.

Overrides: PhysicsObject.get_sorted_keys

is_perturbating(self, order, model)

source code 

Returns wether this particle contributes in perturbation of the order passed in argument given the model specified. It is very fast for usual models


Class Variable Details [hide private]

sorted_keys

Value:
['name',
 'antiname',
 'spin',
 'color',
 'charge',
 'mass',
 'width',
 'pdg_code',
...