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

Class ProcessExporterFortran

source code

object --+
         |
        ProcessExporterFortran
Known Subclasses:

Class to take care of exporting a set of matrix elements to Fortran (v4) format.

Instance Methods [hide private]
 
__init__(self, mgme_dir='', dir_path='', clean=False)
Initiate the ProcessExporterFortran with directory information
source code
 
copy_v4template(self, modelname)
create the directory run_name as a copy of the MadEvent Template, and clean the directory
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
 
finalize_v4_directory(self, matrix_elements, history='', makejpg=False, online=False, compiler='g77')
Function to finalize v4 directory, for inheritance.
source code
 
write_matrix_element_v4(self)
Function to write a matrix.f file, for inheritance.
source code
 
export_model_files(self, model_path)
Configure the files/link of the process according to the model
source code
 
make_model_symbolic_link(self)
Make the copy/symbolic links
source code
 
export_helas(self, helas_path)
Configure the files/link of the process according to the model
source code
 
generate_subprocess_directory_v4(self, matrix_element, fortran_model, me_number)
Routine to generate a subprocess directory (for inheritance)
source code
 
write_source_makefile(self, writer)
Write the nexternal.inc file for MG4
source code
 
write_nexternal_file(self, writer, nexternal, ninitial)
Write the nexternal.inc file for MG4
source code
 
write_pmass_file(self, writer, matrix_element)
Write the pmass.inc file for MG4
source code
 
write_ngraphs_file(self, writer, nconfigs)
Write the ngraphs.inc file for MG4.
source code
 
convert_model_to_mg4(self, model, wanted_lorentz=[], wanted_couplings=[])
Create a full valid MG4 model from a MG5 model (coming from UFO)
source code
 
get_mg5_info_lines(self)
Return info lines for MG5, suitable to place at beginning of Fortran files
source code
 
get_process_info_lines(self, matrix_element)
Return info lines describing the processes for this matrix element
source code
 
get_helicity_lines(self, matrix_element)
Return the Helicity matrix definition lines for this matrix element
source code
 
get_ic_line(self, matrix_element)
Return the IC definition line coming after helicities, required by switchmom in madevent
source code
 
get_color_data_lines(self, matrix_element, n=6)
Return the color 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_icolamp_lines(self, mapconfigs, matrix_element, num_matrix_element)
Return the ICOLAMP matrix, showing which JAMPs contribute to which configs (diagrams).
source code
 
get_amp2_lines(self, matrix_element, config_map=[])
Return the amp2(i) = sum(amp for diag(i))^2 lines
source code
 
get_JAMP_lines(self, matrix_element)
Return the JAMP = sum(fermionfactor * AMP(i)) lines
source code
 
get_pdf_lines(self, matrix_element, ninitial, subproc_group=False)
Generate the PDF lines for the auto_dsig.f file
source code
 
coeff(self, ff_number, frac, is_imaginary, Nc_power, Nc_value=3)
Returns a nicely formatted string for the coefficients in JAMP lines
source code
 
set_compiler(self, default_compiler)
Set compiler based on what's available on the system
source code
 
replace_make_opt_compiler(self, compiler, root_dir='')
Set FC=compiler in Source/make_opts
source code

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

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, mgme_dir='', dir_path='', clean=False)
(Constructor)

source code 

Initiate the ProcessExporterFortran with directory information

Overrides: object.__init__

write_ngraphs_file(self, writer, nconfigs)

source code 

Write the ngraphs.inc file for MG4. Needs input from write_configs_file.

get_color_data_lines(self, matrix_element, n=6)

source code 

Return the color matrix definition lines for this matrix element. Split rows in chunks of size n.