Package madgraph :: Package iolibs :: Module export_v4 :: Class ProcessExporterFortranSA
[hide private]
[frames] | no frames]

Class ProcessExporterFortranSA

source code

            object --+    
                     |    
ProcessExporterFortran --+
                         |
                        ProcessExporterFortranSA
Known Subclasses:

Class to take care of exporting a set of matrix elements to MadGraph v4 StandAlone format.

Instance Methods [hide private]
 
__init__(self, *args, **opts)
add the format information compare to standard init
source code
 
compiler_choice(self, compiler)
Different daughter classes might want different compilers.
source code
 
copy_v4template(self, modelname)
Additional actions needed for setup of Template
source code
 
export_model_files(self, model_path)
export the model dependent files for V4 model
source code
 
finalize_v4_directory(self, matrix_elements, history, makejpg=False, online=False, compiler={'cpp': 'g++', 'f2py': 'f2py', 'fortran': 'gfortran'})
Finalize Standalone MG4 directory by generation proc_card_mg5.dat
source code
 
generate_subprocess_directory_v4(self, matrix_element, fortran_model)
Generate the Pxxxxx directory for a subprocess in MG4 standalone, including the necessary matrix.f and nexternal.inc files
source code
 
make(self)
Run make in the DHELAS and MODEL directories, to set up everything for running standalone
source code
 
write_check_sa_splitOrders(self, squared_orders, split_orders, nexternal, nincoming, proc_prefix, writer)
Write out a more advanced version of the check_sa drivers that individually returns the matrix element for each contributing squared order.
source code
 
write_matrix_element_v4(self, writer, matrix_element, fortran_model, write=True, proc_prefix='')
Export a matrix element to a matrix.f file in MG4 standalone format if write is on False, just return the replace_dict and not write anything.
source code
 
write_source_makefile(self, writer)
Write the nexternal.inc file for MG4
source code

Inherited from ProcessExporterFortran: coeff, convert_model_to_mg4, create_proc_charac, create_run_card, export_helas, export_processes, format_integer_list, get_JAMP_coefs, get_JAMP_lines, get_JAMP_lines_split_order, get_amp2_lines, get_color_data_lines, get_den_factor_line, get_helicity_lines, get_ic_line, get_icolamp_lines, get_leshouche_lines, get_mg5_info_lines, get_pdf_lines, get_process_info_lines, get_source_libraries_list, get_split_orders_lines, make_model_symbolic_link, make_source_links, replace_make_opt_c_compiler, replace_make_opt_f_compiler, set_chosen_SO_index, set_compiler, set_cpp_compiler, set_fortran_compiler, write_configs_file, write_configs_file_from_diagrams, write_helamp_madspin, write_leshouche_file, write_maxamps_file, write_maxparticles_file, write_nexternal_file, write_nexternal_madspin, write_ngraphs_file, write_pdf_opendata, write_pmass_file, write_procdef_mg5, write_props_file

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

Class Variables [hide private]
  matrix_template = 'matrix_standalone_v4.inc'

Inherited from ProcessExporterFortran: default_opt

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, *args, **opts)
(Constructor)

source code 

add the format information compare to standard init

Overrides: object.__init__

compiler_choice(self, compiler)

source code 

Different daughter classes might want different compilers. So this function is meant to be overloaded if desired.

copy_v4template(self, modelname)

source code 

Additional actions needed for setup of Template

Overrides: ProcessExporterFortran.copy_v4template

export_model_files(self, model_path)

source code 

export the model dependent files for V4 model

Overrides: ProcessExporterFortran.export_model_files

finalize_v4_directory(self, matrix_elements, history, makejpg=False, online=False, compiler={'cpp': 'g++', 'f2py': 'f2py', 'fortran': 'gfortran'})

source code 

Finalize Standalone MG4 directory by generation proc_card_mg5.dat

Overrides: ProcessExporterFortran.finalize_v4_directory

generate_subprocess_directory_v4(self, matrix_element, fortran_model)

source code 

Generate the Pxxxxx directory for a subprocess in MG4 standalone, including the necessary matrix.f and nexternal.inc files

Overrides: ProcessExporterFortran.generate_subprocess_directory_v4

write_matrix_element_v4(self, writer, matrix_element, fortran_model, write=True, proc_prefix='')

source code 

Export a matrix element to a matrix.f file in MG4 standalone format if write is on False, just return the replace_dict and not write anything.

Overrides: ProcessExporterFortran.write_matrix_element_v4

write_source_makefile(self, writer)

source code 

Write the nexternal.inc file for MG4

Overrides: ProcessExporterFortran.write_source_makefile