Package madgraph :: Package iolibs :: Module export_python :: Class ProcessExporterPython
[hide private]
[frames] | no frames]

Class ProcessExporterPython

source code

object --+
         |
        ProcessExporterPython

Class to take care of exporting a set of matrix elements to Python format.

Nested Classes [hide private]
  ProcessExporterPythonError
Instance Methods [hide private]
 
__init__(self, matrix_elements, python_helas_call_writer)
Initiate with matrix elements, helas call writer.
source code
 
get_python_matrix_methods(self, gauge_check=False)
Write the matrix element calculation method for the processes
source code
 
get_helicity_matrix(self, matrix_element)
Return the Helicity matrix definition lines for this matrix element
source code
 
get_den_factor_line(self, matrix_element)
Return the denominator factor line for this matrix element
source code
 
get_color_matrix_lines(self, matrix_element)
Return the color matrix definition lines for this matrix element.
source code
 
get_jamp_lines(self, matrix_element)
Return the jamp = sum(fermionfactor * amp[i]) lines
source code
 
get_amp2_lines(self, matrix_element, config_map=[])
Return the amp2(i) = sum(amp for diag(i))^2 lines
source code
 
get_mg5_info_lines(self)
Return info lines for MG5, suitable to place at beginning of Python files
source code
 
get_process_info_lines(self, matrix_element)
Return info lines describing the processes for this matrix element
source code
 
get_model_parameter_lines(self, matrix_element)
Return definitions for all model parameters used in this matrix element
source code

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, matrix_elements, python_helas_call_writer)
(Constructor)

source code 

Initiate with matrix elements, helas call writer. Generate the process matrix element functions as strings.

Overrides: object.__init__

get_color_matrix_lines(self, matrix_element)

source code 

Return the color matrix definition lines for this matrix element. Split rows in chunks of size n.