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

Class ProcessExporterFortranSA

source code

        object --+        
                 |        
   VirtualExporter --+    
                     |    
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_template(self, model)
Additional actions needed for setup of Template
source code
 
create_MA5_cards(self, *args, **opts)
Overload the function of the mother so as to bypass this in StandAlone.
source code
 
export_model_files(self, model_path)
export the model dependent files for V4 model
source code
 
finalize(self, matrix_elements, history, mg5options, flaglist)
Finalize Standalone MG4 directory by generation proc_card_mg5.dat generate a global makefile
source code
 
generate_subprocess_directory(self, matrix_element, fortran_model, number)
Generate the Pxxxxx directory for a subprocess in MG4 standalone, including the necessary matrix.f and nexternal.inc files
source code
 
get_model_parameter(self, model)
returns all the model parameter
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_f2py_check_sa(self, matrix_element, writer)
Write the general check_sa.py in SubProcesses that calls all processes successively.
source code
 
write_f2py_makefile(self) source code
 
write_f2py_splitter(self)
write a function to call the correct matrix element
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_procdef_mg5(self, file_pos, modelname, process_str)
write an equivalent of the MG4 proc_card in order that all the Madevent Perl script of MadEvent4 are still working properly for pure MG5 run.
source code
 
write_source_makefile(self, writer)
Write the nexternal.inc file for MG4
source code

Inherited from ProcessExporterFortran: coeff, convert_model, create_default_madanalysis5_cards, 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, modify_grouping, pass_information_from_cmd, 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_props_file

Inherited from VirtualExporter: helas_call_writer_custom

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

Static Methods [hide private]

Inherited from VirtualExporter: custom_helas_call

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

Inherited from ProcessExporterFortran: default_opt, grouped_mode

Inherited from VirtualExporter: check, exporter, output, sa_symmetry

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_template(self, model)

source code 

Additional actions needed for setup of Template

Overrides: VirtualExporter.copy_template

create_MA5_cards(self, *args, **opts)

source code 

Overload the function of the mother so as to bypass this in StandAlone.

Overrides: ProcessExporterFortran.create_MA5_cards

export_model_files(self, model_path)

source code 

export the model dependent files for V4 model

Overrides: VirtualExporter.export_model_files

finalize(self, matrix_elements, history, mg5options, flaglist)

source code 

Finalize Standalone MG4 directory by generation proc_card_mg5.dat generate a global makefile

Overrides: VirtualExporter.finalize

generate_subprocess_directory(self, matrix_element, fortran_model, number)

source code 

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

Overrides: VirtualExporter.generate_subprocess_directory

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_procdef_mg5(self, file_pos, modelname, process_str)

source code 

write an equivalent of the MG4 proc_card in order that all the Madevent Perl script of MadEvent4 are still working properly for pure MG5 run. Not needed for StandAlone so just return

Overrides: ProcessExporterFortran.write_procdef_mg5

write_source_makefile(self, writer)

source code 

Write the nexternal.inc file for MG4

Overrides: ProcessExporterFortran.write_source_makefile