Package madgraph :: Package iolibs :: Module helas_call_writers :: Class HelasCallWriter
[hide private]
[frames] | no frames]

Class HelasCallWriter

source code

                 object --+        
                          |        
                       dict --+    
                              |    
core.base_objects.PhysicsObject --+
                                  |
                                 HelasCallWriter
Known Subclasses:

Language independent base class for writing Helas calls. The calls are stored in two dictionaries, wavefunctions and amplitudes, with entries being a mapping from a set of spin, incoming/outgoing states and Lorentz structure to a function which writes the corresponding wavefunction/amplitude call (taking a HelasWavefunction/HelasAmplitude as argument).

Nested Classes [hide private]

Inherited from core.base_objects.PhysicsObject: PhysicsObjectError

Instance Methods [hide private]
 
default_setup(self)
Function called to create and setup default values for all object properties
source code
 
filter(self, name, value)
Filter for model property values
source code
 
get_sorted_keys(self)
Return process property names as a nicely sorted list.
source code
 
get_matrix_element_calls(self, matrix_element)
Return a list of strings, corresponding to the Helas calls for the matrix element
source code
 
get_wavefunction_calls(self, wavefunctions)
Return a list of strings, corresponding to the Helas calls for the matrix element
source code
 
get_amplitude_calls(self, matrix_element)
Return a list of strings, corresponding to the Helas calls for the matrix element
source code
 
get_wavefunction_call(self, wavefunction)
Return the function for writing the wavefunction corresponding to the key
source code
 
get_amplitude_call(self, amplitude)
Return the function for writing the amplitude corresponding to the key
source code
 
add_wavefunction(self, key, function)
Set the function for writing the wavefunction corresponding to the key
source code
 
add_amplitude(self, key, function)
Set the function for writing the amplitude corresponding to the key
source code
 
get_model_name(self)
Return the model name
source code
new empty dictionary

__init__(self, argument={})
Allow generating a HelasCallWriter from a Model
source code

Inherited from core.base_objects.PhysicsObject: __getitem__, __repr__, __str__, get, is_valid_prop, set

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

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

Class Variables [hide private]
  mother_dict = {-2: 'I', 1: 'S', 2: 'O', 3: 'V', 5: 'T'}

Inherited from dict: __hash__

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

default_setup(self)

source code 

Function called to create and setup default values for all object properties

Overrides: core.base_objects.PhysicsObject.default_setup
(inherited documentation)

filter(self, name, value)

source code 

Filter for model property values

Overrides: core.base_objects.PhysicsObject.filter

get_sorted_keys(self)

source code 

Return process property names as a nicely sorted list.

Overrides: core.base_objects.PhysicsObject.get_sorted_keys

__init__(self, argument={})
(Constructor)

source code 

Allow generating a HelasCallWriter from a Model

Returns:
new empty dictionary

Overrides: object.__init__