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

Class OneProcessExporterCPP

source code

object --+
         |
        OneProcessExporterCPP
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/omattelaer/Documents/workspace/3.0.1/MG5_aMC_v3_0_1')
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
 
get_default_converter(self) 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, write=True)
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, write=True)
Return the lines for optimized calculation of the wavefunctions for all subprocesses
source code
 
get_sigmaKin_lines(self, color_amplitudes, write=True)
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=True)
Write sigmaKin for each process
source code
 
get_matrix_single_process(self, i, matrix_element, color_amplitudes, class_name, write=True)
Write matrix() for each process
source code
 
get_class_specific_definition_matrix(self, converter, matrix_element)
place to add some specific hack to a given exporter.
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__

Class Methods [hide private]
 
read_template_file(cls, filename, classpath=False)
Open a template file and return the contents.
source code
Class Variables [hide private]
  process_dir = '.'
  include_dir = '.'
  template_path = '/Users/omattelaer/Documents/workspace/3.0.1/M...
  __template_path = '/Users/omattelaer/Documents/workspace/3.0.1...
  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...
  single_process_template = 'cpp_process_matrix.inc'
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/omattelaer/Documents/workspace/3.0.1/MG5_aMC_v3_0_1')
(Constructor)

source code 

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

Overrides: object.__init__

get_class_specific_definition_matrix(self, converter, matrix_element)

source code 

place to add some specific hack to a given exporter. Please always use Super in that case

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]

template_path

Value:
'/Users/omattelaer/Documents/workspace/3.0.1/MG5_aMC_v3_0_1/madgraph/i\
olibs/template_files'

__template_path

Value:
'/Users/omattelaer/Documents/workspace/3.0.1/MG5_aMC_v3_0_1/madgraph/i\
olibs/template_files'

process_definition_template

Value:
'cpp_process_function_definitions.inc'

process_sigmaKin_function_template

Value:
'cpp_process_sigmaKin_function.inc'