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

Class FortranUFOHelasCallWriter

source code

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

The class for writing Helas calls in Fortran, starting from HelasWavefunctions and HelasAmplitudes.

Includes the function generate_helas_call, which automatically generates the Fortran Helas call based on the Lorentz structure of the interaction.

Nested Classes [hide private]

Inherited from core.base_objects.PhysicsObject: PhysicsObjectError

Instance Methods [hide private]
new empty dictionary

__init__(self, argument={}, hel_sum=False)
Allow generating a HelasCallWriter from a Model.The hel_sum argument specifies if amplitude and wavefunctions must be stored specifying the helicity, i.e.
source code
 
format_helas_object(self, prefix, number)
Returns the string for accessing the wavefunction with number in argument.
source code
 
get_amplitude_call(self, amplitude, **opts)
We overwrite this function here because we must call set_octet_majorana_coupling_sign for all wavefunction taking part in this loopHelasAmplitude.
source code
 
generate_loop_amplitude_call(self, loopamp)
Routine for automatic generation of a call to CutTools for loop amplitudes.
source code
 
generate_helas_call(self, argument, startingExternalWFNumber=0)
Routine for automatic generation of Fortran Helas calls according to just the spin structure of the interaction.
source code
 
generate_external_wavefunction(self, argument)
Generate an external wavefunction
source code
 
generate_all_other_helas_objects(self, argument)
Generate all the helas objects for which no special handlers was placed in generate_helas_call
source code
 
get_loop_amplitude_helas_calls(self, loop_matrix_element)
Returns a list of strings corresponding to the Helas calls for each loop amplitude of this loop matrix element.
source code

Inherited from UFOHelasCallWriter: get_wavefunction_call, write_factor

Inherited from HelasCallWriter: add_amplitude, add_wavefunction, default_setup, filter, get_amplitude_calls, get_born_ct_helas_calls, get_loop_amp_helas_calls, get_loop_matrix_element_calls, get_matrix_element_calls, get_model_name, get_sorted_keys, get_sqso_target_skip_code, get_wavefunction_calls

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__

Class Variables [hide private]
  mp_prefix = 'MP__'

Inherited from HelasCallWriter: mother_dict

Inherited from dict: __hash__

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

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

source code 

Allow generating a HelasCallWriter from a Model.The hel_sum argument specifies if amplitude and wavefunctions must be stored specifying the helicity, i.e. W(1,i) vs W(1,i,H).

Returns:
new empty dictionary

Overrides: object.__init__

format_helas_object(self, prefix, number)

source code 

Returns the string for accessing the wavefunction with number in argument. Typical output is {prefix}(1,{number})

get_amplitude_call(self, amplitude, **opts)

source code 

We overwrite this function here because we must call set_octet_majorana_coupling_sign for all wavefunction taking part in this loopHelasAmplitude. This is not necessary in the optimized mode

Overrides: HelasCallWriter.get_amplitude_call

get_loop_amplitude_helas_calls(self, loop_matrix_element)

source code 

Returns a list of strings corresponding to the Helas calls for each loop amplitude of this loop matrix element. This function is placed in this class and not in HelasWriter, because it contains fortran-specific code.