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_loop_amp_helas_calls(self, matrix_element)
Return a list of strings, corresponding to the Helas calls for building loop amplitudes (AMPL) only.
source code
 
get_sqso_target_skip_code(self, number_checked, sqso_target_numbers, continue_label, split_orders, squared_orders, comment)
Treat the optimization for the squared order target so that unnecessary computations can be skipped.
source code
 
get_born_ct_helas_calls(self, matrix_element, include_CT=True, squared_orders=[], split_orders=[])
Return a two lists of strings, the first corresponding to the Helas calls for building the non-loop wavefunctions, the born and CT (only if include_CT=True).
source code
 
get_loop_matrix_element_calls(self, loop_matrix_element)
Return a list of strings, corresponding to the Helas calls for the loop matrix element
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, viewitems, viewkeys, viewvalues

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

Static Methods [hide private]
 
customize_argument_for_all_other_helas_object(call, arg)
Place holder for PLUGIN/...
source code
 
default_customize_argument_for_all_other_helas_object(call, arg) source code
Class Variables [hide private]
  mother_dict = {-4: 'IR', -2: 'I', 1: 'S', 2: 'O', 3: 'V', 4: '...

Inherited from dict: __hash__

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

customize_argument_for_all_other_helas_object(call, arg)
Static Method

source code 

Place holder for PLUGIN/... (used by madevent output for small width handling)

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

get_sqso_target_skip_code(self, number_checked, sqso_target_numbers, continue_label, split_orders, squared_orders, comment)

source code 

Treat the optimization for the squared order target so that unnecessary computations can be skipped. This function returns the lines of codes for doing so, based on the number_checked (typically amplitude number) to be checked and the list of squared order contributions sqso_target_numbers specifying for each of them the maximum contributing number. The continue_label informs where the code must 'goto' if indeed the rest of this part of the computation must be skipped. The split_orders and squared_orders values lists, as well as the string comment template is just for printing out a nice comment in the fortran code explaining what is going on.

get_born_ct_helas_calls(self, matrix_element, include_CT=True, squared_orders=[], split_orders=[])

source code 

Return a two lists of strings, the first corresponding to the Helas calls for building the non-loop wavefunctions, the born and CT (only if include_CT=True). The second correspond to the Helas calls for the UVCT amplitudes only. The squared_orders can provide the information of what is the maximum contributing CT amp number.

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

source code 

Allow generating a HelasCallWriter from a Model

Returns:
new empty dictionary

Overrides: object.__init__

Class Variable Details [hide private]

mother_dict

Value:
{-4: 'IR', -2: 'I', 1: 'S', 2: 'O', 3: 'V', 4: 'OR', 5: 'T', 99: 'P'}