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

Class ProcessExporterFortranMW

source code

        object --+        
                 |        
   VirtualExporter --+    
                     |    
ProcessExporterFortran --+
                         |
                        ProcessExporterFortranMW
Known Subclasses:

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

Instance Methods [hide private]
 
copy_template(self, model)
Additional actions needed for setup of Template
source code
 
convert_model(self, model, wanted_lorentz=[], wanted_couplings=[])
Create a full valid MG4 model from a MG5 model (coming from UFO)
source code
 
copy_python_file(self)
copy the python file require for the Template
source code
 
get_mw_cuts_version(self, outpath=None)
create the appropriate cuts.f This is based on the one associated to ME output but: 1) No clustering (=> remove initcluster/setclscales) 2) Adding the definition of cut_bw at the file.
source code
 
make(self)
Run make in the DHELAS, MODEL, PDF and CERNLIB directories, to set up everything for running madweight
source code
 
finalize(self, matrix_elements, history, mg5options, flaglist)
Finalize Standalone MG4 directory by generation proc_card_mg5.dat
source code
 
create_run_card(self, matrix_elements, history) source code
 
export_model_files(self, model_path)
export the model dependent files for V4 model
source code
 
generate_subprocess_directory(self, matrix_element, fortran_model, number)
Generate the Pxxxxx directory for a subprocess in MG4 MadWeight format, including the necessary matrix.f and nexternal.inc files
source code
 
write_matrix_element_v4(self, writer, matrix_element, fortran_model, proc_id='', config_map=[])
Export a matrix element to a matrix.f file in MG4 MadWeight format
source code
 
write_source_makefile(self, writer)
Write the nexternal.inc file for madweight
source code
 
write_phasespace_file(self, writer, nb_diag) source code
 
write_auto_dsig_file(self, writer, matrix_element, proc_id='')
Write the auto_dsig.f file for the differential cross section calculation, includes pdf call information (MadWeight format)
source code
 
write_configs_file(self, writer, matrix_element)
Write the configs.inc file for MadEvent
source code
 
write_run_config_file(self, writer)
Write the run_configs.inc file for MadWeight
source code
 
write_configs_file_from_diagrams(self, writer, configs, mapconfigs, nexternal, ninitial, matrix_element, model)
Write the actual configs.inc file.
source code

Inherited from ProcessExporterFortran: __init__, coeff, create_MA5_cards, create_default_madanalysis5_cards, create_proc_charac, 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_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 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_file = '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]

copy_template(self, model)

source code 

Additional actions needed for setup of Template

Overrides: VirtualExporter.copy_template

convert_model(self, model, wanted_lorentz=[], wanted_couplings=[])

source code 

Create a full valid MG4 model from a MG5 model (coming from UFO)

Overrides: VirtualExporter.convert_model

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

source code 

Finalize Standalone MG4 directory by generation proc_card_mg5.dat

Overrides: VirtualExporter.finalize

create_run_card(self, matrix_elements, history)

source code 
Overrides: ProcessExporterFortran.create_run_card

export_model_files(self, model_path)

source code 

export the model dependent files for V4 model

Overrides: VirtualExporter.export_model_files

generate_subprocess_directory(self, matrix_element, fortran_model, number)

source code 

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

Overrides: VirtualExporter.generate_subprocess_directory

write_matrix_element_v4(self, writer, matrix_element, fortran_model, proc_id='', config_map=[])

source code 

Export a matrix element to a matrix.f file in MG4 MadWeight format

Overrides: ProcessExporterFortran.write_matrix_element_v4

write_source_makefile(self, writer)

source code 

Write the nexternal.inc file for madweight

Overrides: ProcessExporterFortran.write_source_makefile

write_configs_file(self, writer, matrix_element)

source code 

Write the configs.inc file for MadEvent

Overrides: ProcessExporterFortran.write_configs_file

write_configs_file_from_diagrams(self, writer, configs, mapconfigs, nexternal, ninitial, matrix_element, model)

source code 

Write the actual configs.inc file.

configs is the diagrams corresponding to configs (each diagrams is a list of corresponding diagrams for all subprocesses, with None if there is no corresponding diagrams for a given process). mapconfigs gives the diagram number for each config.

For s-channels, we need to output one PDG for each subprocess in the subprocess group, in order to be able to pick the right one for multiprocesses.

Overrides: ProcessExporterFortran.write_configs_file_from_diagrams