Class to take care of exporting a set of matrix elements to Fortran
(v4) format.
|
copy_fkstemplate(self)
create the directory run_name as a copy of the MadEvent Template, and
clean the directory For now it is just the same as copy_v4template,
but it will be modified |
source code
|
|
|
write_makefile_TIR(self,
writer,
link_tir_libs,
tir_libs,
tir_include=[ ] )
Create the file makefile_loop which links to the TIR libraries. |
source code
|
|
|
write_make_opts(self,
writer,
link_tir_libs,
tir_libs)
Create the file make_opts which links to the TIR libraries. |
source code
|
|
|
copy_python_files(self)
copy python files required for the Template |
source code
|
|
|
convert_model(self,
model,
wanted_lorentz=[ ] ,
wanted_couplings=[ ] )
Caches the aloha model created here when writing out the aloha
fortran subroutine. |
source code
|
|
|
|
|
write_maxconfigs_file(self,
writer,
maxconfigs)
Write the maxconfigs.inc file for MadEvent |
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
|
|
|
|
|
get_ME_identifier(self,
matrix_element,
*args,
**opts)
A function returning a string uniquely identifying the matrix element
given in argument so that it can be used as a prefix to all MadLoop5
subroutines and common blocks related to it. |
source code
|
|
|
|
|
generate_directories_fks(self,
matrix_element,
fortran_model,
me_number,
me_ntot,
path=' /Users/omattelaer/Documents/workspace/madgraph5/MG5_aMC_v2_6_5 ' ,
OLP=' MadLoop ' )
Generate the Pxxxxx_i directories for a subprocess in MadFKS,
including the necessary matrix.f and various helper files |
source code
|
|
|
|
|
|
|
finalize(self,
matrix_elements,
history,
mg5options,
flaglist)
Finalize FKS directory by creating jpeg diagrams, html
pages,proc_card_mg5.dat and madevent.tar.gz and create the MA5 card if
necessary. |
source code
|
|
|
write_real_from_born_configs(self,
writer,
matrix_element,
fortran_model)
Writes the real_from_born_configs.inc file that contains the mapping
to go for a given born configuration (that is used e.g. |
source code
|
|
|
|
|
write_configs_and_props_info_declarations(self,
writer,
max_iconfig,
max_leg_number,
nfksconfs,
fortran_model)
writes the declarations for the variables relevant for
configs_and_props |
source code
|
|
|
write_configs_and_props_info_file(self,
filename,
matrix_element)
writes the configs_and_props_info.inc file that cointains all the
(real-emission) configurations (IFOREST) as well as the masses and
widths of intermediate particles |
source code
|
|
|
write_leshouche_info_declarations(self,
writer,
nfksconfs,
maxproc,
maxflow,
nexternal,
fortran_model)
writes the declarations for the variables relevant for leshouche_info |
source code
|
|
|
write_genps(self,
writer,
maxproc,
ngraphs,
ncolor,
maxflow,
fortran_model)
writes the genps.inc file |
source code
|
|
|
write_leshouche_info_file(self,
filename,
matrix_element)
writes the leshouche_info.inc file which contains the LHA
informations for all the real emission processes |
source code
|
|
|
write_pdf_wrapper(self,
writer,
matrix_element,
fortran_model)
writes the wrapper which allows to chose among the different real
matrix elements |
source code
|
|
|
write_real_me_wrapper(self,
writer,
matrix_element,
fortran_model)
writes the wrapper which allows to chose among the different real
matrix elements |
source code
|
|
|
draw_feynman_diagrams(self,
matrix_element)
Create the ps files containing the feynman diagrams for the born
process, as well as for all the real emission processes |
source code
|
|
|
write_real_matrix_elements(self,
matrix_element,
fortran_model)
writes the matrix_i.f files which contain the real matrix elements |
source code
|
|
|
write_pdf_calls(self,
matrix_element,
fortran_model)
writes the parton_lum_i.f files which contain the real matrix
elements. |
source code
|
|
|
generate_born_fks_files(self,
matrix_element,
fortran_model,
me_number,
path)
generates the files needed for the born amplitude in the P*
directory, which will be needed by the P* directories |
source code
|
|
|
generate_virtuals_from_OLP(self,
process_list,
export_path,
OLP)
Generates the library for computing the loop matrix elements
necessary for this process using the OLP specified. |
source code
|
|
|
write_BinothLHA_inc(self,
processes,
proc_to_label,
SubProcPath)
Write the file Binoth_proc.inc in each SubProcess directory so as to
provide the right process_label to use in the OLP call to get the
loop matrix element evaluation. |
source code
|
|
|
parse_contract_file(self,
contract_file_path)
Parses the BLHA contract file, make sure all parameters could be
understood by the OLP and return a mapping of the processes
(characterized by the pdg's of the initial and final state particles)
to their process label. |
source code
|
|
|
generate_virt_directory(self,
loop_matrix_element,
fortran_model,
dir_name)
writes the V**** directory inside the P**** directories specified in
dir_name |
source code
|
|
|
get_qed_qcd_orders_from_weighted(self,
nexternal,
weighted)
computes the QED/QCD orders from the knowledge of the n of ext
particles and of the weighted orders |
source code
|
|
|
|
|
write_born_fks(self,
writer,
fksborn,
fortran_model)
Export a matrix element to a born.f file in MadFKS format |
source code
|
|
|
write_born_hel(self,
writer,
fksborn,
fortran_model)
Export a matrix element to a born_hel.f file in MadFKS format |
source code
|
|
|
write_sborn_sf(self,
writer,
color_links,
fortran_model)
Creates the sborn_sf.f file, containing the calls to the different
color linked borns |
source code
|
|
|
write_b_sf_fks(self,
writer,
fksborn,
i,
fortran_model)
Create the b_sf_xxx.f file for the soft linked born in MadFKS format |
source code
|
|
|
write_born_nhel_file(self,
writer,
matrix_element,
nflows,
fortran_model,
ncolor)
Write the born_nhel.inc file for MG4. |
source code
|
|
|
|
|
write_fks_info_file(self,
writer,
fksborn,
fortran_model)
Writes the content of fks_info.inc, which lists the informations on
the possible splittings of the born ME. |
source code
|
|
|
write_matrix_element_fks(self,
writer,
matrix_element,
n,
fortran_model)
Export a matrix element to a matrix.f file in MG4 madevent format |
source code
|
|
|
write_pdf_file(self,
writer,
matrix_element,
n,
fortran_model)
Write the auto_dsig.f file for MadFKS, which contains pdf call
information |
source code
|
|
|
write_coloramps_file(self,
writer,
mapconfigs,
matrix_element,
fortran_model)
Write the coloramps.inc file for MadEvent |
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,
matrix_element,
fortran_model)
Write the dname.mg file for MG4 |
source code
|
|
|
write_iproc_file(self,
writer,
me_number)
Write the iproc.dat file for MG4 |
source code
|
|
|
get_fks_j_from_i_lines(self,
me,
i=0)
generate the lines for fks.inc describing initializating the
fks_j_from_i array |
source code
|
|
|
|
|
get_leshouche_lines_dummy(self,
matrix_element,
ime)
As get_leshouche_lines, but for 'fake' real emission processes
(LOonly In this case, write born color structure times ij -> i,j
splitting) |
source code
|
|
|
get_den_factor_lines(self,
fks_born)
returns the lines with the information on the denominator keeping
care of the identical particle factors in the various real emissions |
source code
|
|
|
get_ij_lines(self,
fks_born)
returns the lines with the information on the particle number of the
born that splits |
source code
|
|
|
get_pdf_lines_mir(self,
matrix_element,
ninitial,
subproc_group=False,
mirror=False)
Generate the PDF lines for the auto_dsig.f file |
source code
|
|
|
|
|
|
|
write_ncombs_file(self,
writer,
matrix_element,
fortran_model)
Write the ncombs.inc file for MadEvent. |
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_colors_file(self,
writer,
matrix_element)
Write the get_color.f file for MadEvent, which returns color for all
particles used in the matrix element. |
source code
|
|
|
|
|
write_subproc(self,
writer,
subprocdir)
Append this subprocess to the subproc.mg file for MG4 |
source code
|
|
Inherited from loop.loop_exporters.LoopProcessExporterFortranSA :
__init__ ,
cat_coeff ,
compiler_choice ,
copy_template ,
generate_general_replace_dict ,
generate_loop_subprocess ,
generate_subprocess_directory ,
get_SubProc_folder_name ,
get_amp_to_jamp_map ,
get_color_matrix ,
get_context ,
link_files_from_Subprocesses ,
loop_additional_template_setup ,
make ,
make_model_symbolic_link ,
make_source_links ,
split_HELASCALLS ,
turn_to_mp_calls ,
write_CT_interface ,
write_born_amps_and_wfs ,
write_bornmatrix ,
write_check_sa ,
write_f2py_check_sa ,
write_f2py_makefile ,
write_f2py_splitter ,
write_improve_ps ,
write_loop_makefile_definitions ,
write_loop_matrix_element_v4 ,
write_loop_num ,
write_loopmatrix ,
write_process_info_file
Inherited from loop.loop_exporters.LoopExporterFortran :
get_aloha_model ,
link_CutTools ,
write_mp_files
Inherited from export_v4.ProcessExporterFortranSA :
create_MA5_cards ,
export_model_files ,
write_check_sa_splitOrders ,
write_matrix_element_v4 ,
write_source_makefile
Inherited from export_v4.ProcessExporterFortran :
coeff ,
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_mg5_info_lines ,
get_pdf_lines ,
get_process_info_lines ,
get_source_libraries_list ,
get_split_orders_lines ,
modify_grouping ,
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_from_diagrams ,
write_helamp_madspin ,
write_nexternal_file ,
write_nexternal_madspin ,
write_ngraphs_file ,
write_pdf_opendata ,
write_pmass_file
Inherited from export_v4.VirtualExporter :
helas_call_writer_custom
Inherited from object :
__delattr__ ,
__format__ ,
__getattribute__ ,
__hash__ ,
__new__ ,
__reduce__ ,
__reduce_ex__ ,
__repr__ ,
__setattr__ ,
__sizeof__ ,
__str__ ,
__subclasshook__
|