Package madgraph :: Package iolibs :: Module export_cpp :: Class ProcessExporterCPP
[hide private]
[frames] | no frames]

Class ProcessExporterCPP

source code

object --+
         |
        ProcessExporterCPP
Known Subclasses:

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

Nested Classes [hide private]
  ProcessExporterCPPError
Instance Methods [hide private]
 
__init__(self, matrix_elements, cpp_helas_call_writer, process_string='', process_number=0, path='/Users/alwall/MadGraph/madgraph5/MadGraph5_v1_4_8')
Initiate with matrix elements, helas call writer, process string, path.
source code
 
generate_process_files(self)
Generate the .h and .cc files needed for C++, for the processes described by multi_matrix_element
source code
 
write_process_h_file(self, writer)
Write the class definition (.h) file for the process
source code
 
write_process_cc_file(self, writer)
Write the class member definition (.cc) file for the process described by matrix_element
source code
 
get_process_class_definitions(self)
The complete class definition for the process
source code
 
get_process_function_definitions(self)
The complete Pythia 8 class definition for the process
source code
 
get_process_name(self)
Return process file name for the process in matrix_element
source code
 
get_process_info_lines(self, matrix_element)
Return info lines describing the processes for this matrix element
source code
 
get_initProc_lines(self, matrix_element, color_amplitudes)
Get initProc_lines for function definition for Pythia 8 .cc file
source code
 
get_reset_jamp_lines(self, color_amplitudes)
Get lines to reset jamps
source code
 
get_calculate_wavefunctions(self, wavefunctions, amplitudes)
Return the lines for optimized calculation of the wavefunctions for all subprocesses
source code
 
get_sigmaKin_lines(self, color_amplitudes)
Get sigmaKin_lines for function definition for Pythia 8 .cc file
source code
 
get_all_sigmaKin_lines(self, color_amplitudes, class_name)
Get sigmaKin_process for all subprocesses for Pythia 8 .cc file
source code
 
get_sigmaKin_single_process(self, i, matrix_element)
Write sigmaKin for each process
source code
 
get_matrix_single_process(self, i, matrix_element, color_amplitudes, class_name)
Write matrix() for each process
source code
 
get_sigmaHat_lines(self)
Get sigmaHat_lines for function definition for Pythia 8 .cc file
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, color_amplitudes)
Return the jamp = sum(fermionfactor * amp[i]) lines
source code

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

Static Methods [hide private]
 
get_model_name(name)
Replace - with _, + with _plus_ in a model name.
source code
Class Variables [hide private]
  process_dir = '.'
  include_dir = '.'
  process_template_h = 'cpp_process_h.inc'
  process_template_cc = 'cpp_process_cc.inc'
  process_class_template = 'cpp_process_class.inc'
  process_definition_template = 'cpp_process_function_definition...
  process_wavefunction_template = 'cpp_process_wavefunctions.inc'
  process_sigmaKin_function_template = 'cpp_process_sigmaKin_fun...
Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, matrix_elements, cpp_helas_call_writer, process_string='', process_number=0, path='/Users/alwall/MadGraph/madgraph5/MadGraph5_v1_4_8')
(Constructor)

source code 

Initiate with matrix elements, helas call writer, process string, path. Generate the process .h and .cc files.

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.


Class Variable Details [hide private]

process_definition_template

Value:
'cpp_process_function_definitions.inc'

process_sigmaKin_function_template

Value:
'cpp_process_sigmaKin_function.inc'