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

Class ProcessExporterFortranME

source code

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

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

Instance Methods [hide private]
 
copy_template(self, model)
Additional actions needed for setup of Template
source code
 
copy_python_file(self)
copy the python file require for the 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
 
export_model_files(self, model_path)
export the model dependent files
source code
 
generate_subprocess_directory(self, matrix_element, fortran_model, me_number)
Generate the Pxxxxx directory for a subprocess in MG4 madevent, including the necessary matrix.f and various helper files
source code
 
link_files_in_SubProcess(self, Ppath)
Create the necessary links in the P* directory path Ppath
source code
 
finalize(self, matrix_elements, history, mg5options, flaglist)
Finalize ME v4 directory by creating jpeg diagrams, html pages,proc_card_mg5.dat and madevent.tar.gz.
source code
 
write_matrix_element_v4(self, writer, matrix_element, fortran_model, proc_id='', config_map=[], subproc_number='')
Export a matrix element to a matrix.f file in MG4 madevent format
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
source code
 
write_coloramps_file(self, writer, mapconfigs, matrix_element)
Write the coloramps.inc file for MadEvent
source code
 
write_colors_file(self, writer, matrix_elements)
Write the get_color.f file for MadEvent, which returns color for all particles used in the matrix element.
source code
 
write_config_nqcd_file(self, writer, nqcd_list)
Write the config_nqcd.inc with the number of QCD couplings for each config
source code
 
write_maxconfigs_file(self, writer, matrix_elements)
Write the maxconfigs.inc file for MadEvent
source code
 
read_write_good_hel(self, ncomb)
return the code to read/write the good_hel common_block
source code
 
write_config_subproc_map_file(self, writer, s_and_t_channels)
Write a dummy config_subproc.inc file for MadEvent
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 MadEvent
source code
 
write_configs_file_from_diagrams(self, writer, configs, mapconfigs, nexternal, ninitial, model)
Write the actual configs.inc file.
source code
 
write_decayBW_file(self, writer, s_and_t_channels)
Write the decayBW.inc file for MadEvent
source code
 
write_dname_file(self, writer, dir_name)
Write the dname.mg file for MG4
source code
 
write_driver(self, writer, ncomb, n_grouped_proc, v5=True)
Write the SubProcess/driver.f file for MG4
source code
 
write_addmothers(self, writer)
Write the SubProcess/addmothers.f
source code
 
write_combine_events(self, writer, nb_proc=100)
Write the SubProcess/driver.f file for MG4
source code
 
write_symmetry(self, writer, v5=True)
Write the SubProcess/driver.f file for ME
source code
 
write_iproc_file(self, writer, me_number)
Write the iproc.dat file for MG4
source code
 
write_mg_sym_file(self, writer, matrix_element)
Write the mg.sym file for MadEvent.
source code
 
write_default_mg_sym_file(self, writer)
Write the mg.sym file for MadEvent.
source code
 
write_ncombs_file(self, writer, nexternal)
Write the ncombs.inc file for MadEvent.
source code
 
write_processes_file(self, writer, subproc_group)
Write the processes.dat file with info about the subprocesses in this group.
source code
 
write_symswap_file(self, writer, ident_perms)
Write the file symswap.inc for MG4 by comparing diagrams using the internal matrix element value functionality.
source code
 
write_symfact_file(self, writer, symmetry)
Write the files symfact.dat for MG4 by comparing diagrams using the internal matrix element value functionality.
source code
 
write_symperms_file(self, writer, perms)
Write the symperms.inc file for subprocess group, used for symmetric configurations
source code
 
write_subproc(self, writer, subprocdir)
Append this subprocess to the subproc.mg file for MG4
source code

Inherited from ProcessExporterFortran: __init__, coeff, create_MA5_cards, 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_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, write_source_makefile

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]
 
custom_helas_call(call, arg)
static method to customise the way aloha function call are written call is the default template for the call arg are the dictionary used for the call
source code
Class Variables [hide private]
  matrix_file = 'matrix_madevent_v4.inc'
  link_Sub_files = ['addmothers.f', 'cluster.f', 'cluster.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]

custom_helas_call(call, arg)
Static Method

source code 

static method to customise the way aloha function call are written call is the default template for the call arg are the dictionary used for the call

Overrides: VirtualExporter.custom_helas_call
(inherited documentation)

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

export_model_files(self, model_path)

source code 

export the model dependent files

Overrides: VirtualExporter.export_model_files

generate_subprocess_directory(self, matrix_element, fortran_model, me_number)

source code 

Generate the Pxxxxx directory for a subprocess in MG4 madevent, including the necessary matrix.f and various helper files

Overrides: VirtualExporter.generate_subprocess_directory

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

source code 

Finalize ME v4 directory by creating jpeg diagrams, html pages,proc_card_mg5.dat and madevent.tar.gz.

Overrides: VirtualExporter.finalize

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

source code 

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

Overrides: ProcessExporterFortran.write_matrix_element_v4

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, 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

Class Variable Details [hide private]

link_Sub_files

Value:
['addmothers.f',
 'cluster.f',
 'cluster.inc',
 'coupl.inc',
 'cuts.f',
 'cuts.inc',
 'genps.f',
 'genps.inc',
...