Methods and classes to export models and matrix elements to Pythia 8
and C++ Standalone format.
|
setup_cpp_standalone_dir(dirpath,
model)
Prepare export_dir as standalone_cpp directory, including: src (for
RAMBO, model and ALOHA files + makefile) lib (with compiled libraries
from src) SubProcesses (with check_sa.cpp + makefile and Pxxxxx
directories) |
source code
|
|
|
generate_subprocess_directory_standalone_cpp(matrix_element,
cpp_helas_call_writer,
path=' /Users/alwall/MadGraph/madgraph5/MadGraph5_v1_4_8 ' )
Generate the Pxxxxx directory for a subprocess in C++ standalone,
including the necessary .h and .cc files |
source code
|
|
|
make_model_cpp(dir_path)
Make the model library in a C++ standalone directory |
source code
|
|
|
generate_process_files_pythia8(multi_matrix_element,
cpp_helas_call_writer,
process_string='
' ,
process_number=0,
path=' /Users/alwall/MadGraph/madgraph5/MadGraph5_v1_4_8 ' )
Generate the .h and .cc files needed for Pythia 8, for the processes
described by multi_matrix_element |
source code
|
|
|
read_template_file(filename)
Open a template file and return the contents. |
source code
|
|
|
get_mg5_info_lines()
Return info lines for MG5, suitable to place at beginning of Fortran
files |
source code
|
|
|
coeff(ff_number,
frac,
is_imaginary,
Nc_power,
Nc_value=3)
Returns a nicely formatted string for the coefficients in JAMP lines |
source code
|
|
|
convert_model_to_cpp(model,
output_dir,
wanted_lorentz=[ ] ,
wanted_couplings=[ ] )
Create a full valid Pythia 8 model from an MG5 model (coming from
UFO) |
source code
|
|
|
generate_example_file_pythia8(path,
model_path,
process_names,
exporter,
main_file_name='
' ,
example_dir=' examples ' )
Generate the main_model_name.cc file and Makefile in the examples dir |
source code
|
|
|
convert_model_to_pythia8(model,
pythia_dir)
Create a full valid Pythia 8 model from an MG5 model (coming from
UFO) |
source code
|
|