Class to take care of exporting a set of matrix elements to Fortran
(v4) format.
|
__init__(self,
dir_path='
' ,
opt=None)
Initiate the ProcessExporterFortran with directory information |
source code
|
|
|
export_processes(self,
matrix_elements,
fortran_model)
Make the switch between grouped and not grouped output |
source code
|
|
|
create_run_card(self,
matrix_elements,
history) |
source code
|
|
|
copy_template(self,
model)
create the directory run_name as a copy of the MadEvent Template, and
clean the directory |
source code
|
|
|
create_default_madanalysis5_cards(self,
history,
proc_defs,
processes,
ma5_path,
output_dir,
levels=[ ' parton ' , ' hadron ' ] )
Call MA5 so that it writes default cards for both parton and
post-shower levels, tailored for this particular process. |
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(self,
matrix_elements,
history='
' ,
mg5options={ } ,
flaglist=[ ] )
Function to finalize v4 directory, for inheritance. |
source code
|
|
|
create_MA5_cards(self,
matrix_elements,
history)
A wrapper around the creation of the MA5 cards so that it can be
bypassed by daughter classes (i.e. |
source code
|
|
|
create_proc_charac(self,
matrix_elements=None,
history='
' ,
**opts) |
source code
|
|
|
write_matrix_element_v4(self)
Function to write a matrix.f file, for inheritance. |
source code
|
|
|
write_pdf_opendata(self)
modify the pdf opendata file, to allow direct access to cluster node
repository if configure |
source code
|
|
|
write_maxparticles_file(self,
writer,
matrix_elements)
Write the maxparticles.inc file for MadEvent |
source code
|
|
|
|
|
make_model_symbolic_link(self)
Make the copy/symbolic links |
source code
|
|
|
make_source_links(self)
Create the links from the files in sources |
source code
|
|
|
|
|
|
|
|
|
write_source_makefile(self,
writer)
Write the nexternal.inc file for MG4 |
source code
|
|
|
write_nexternal_madspin(self,
writer,
nexternal,
ninitial)
Write the nexternal_prod.inc file for madspin |
source code
|
|
|
write_helamp_madspin(self,
writer,
ncomb)
Write the helamp.inc file for madspin |
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_leshouche_file(self,
writer,
matrix_element)
Write the leshouche.inc file for MG4 |
source code
|
|
|
get_leshouche_lines(self,
matrix_element,
numproc)
Write the leshouche.inc file for MG4 |
source code
|
|
|
write_maxamps_file(self,
writer,
maxamps,
maxflows,
maxproc,
maxsproc)
Write the maxamps.inc file for MG4. |
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
|
|
|
|
|
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,
array_name=' NHEL ' )
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
|
|
|
set_chosen_SO_index(self,
process,
squared_orders)
From the squared order constraints set by the user, this function
finds what indices of the squared_orders list the user intends to
pick. |
source code
|
|
|
get_split_orders_lines(self,
orders,
array_name,
n=5)
Return the split orders definition as defined in the list orders and
for the name of the array 'array_name'. |
source code
|
|
|
format_integer_list(self,
list,
name,
n=5)
Return an initialization of the python list in argument following the
fortran syntax using the data keyword assignment, filling an array of
name 'name'. |
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_coefs(self,
color_amplitudes,
color_basis=None,
tag_letter='
' ,
n=50,
Nc_value=3)
This functions return the lines defining the DATA statement setting
the coefficients building the JAMPS out of the AMPS. |
source code
|
|
|
get_JAMP_lines_split_order(self,
col_amps,
split_order_amps,
split_order_names=None,
JAMP_format=' JAMP(%s) ' ,
AMP_format=' AMP(%s) ' )
Return the JAMP = sum(fermionfactor * AMP(i)) lines from col_amps
defined as a matrix element or directly as a color_amplitudes
dictionary. |
source code
|
|
|
get_JAMP_lines(self,
col_amps,
JAMP_format=' JAMP(%s) ' ,
AMP_format=' AMP(%s) ' ,
split=-1)
Return the JAMP = sum(fermionfactor * AMP(i)) lines from col_amps
defined as a matrix element or directly as a color_amplitudes
dictionary, Jamp_formatLC should be define to allow to add
LeadingColor computation (usefull for MatchBox) The split argument
defines how the JAMP lines should be split in order not to be too
long. |
source code
|
|
|
get_pdf_lines(self,
matrix_element,
ninitial,
subproc_group=False)
Generate the PDF lines for the auto_dsig.f file |
source code
|
|
|
|
|
write_configs_file(self,
writer,
matrix_element)
Write the configs.inc file for MadEvent |
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_fortran_compiler(self,
default_compiler,
force=False)
Set compiler based on what's available on the system |
source code
|
|
|
set_compiler(self,
default_compiler,
force=False)
Set compiler based on what's available on the system |
source code
|
|
|
set_cpp_compiler(self,
default_compiler,
force=False)
Set compiler based on what's available on the system |
source code
|
|
|
replace_make_opt_f_compiler(self,
compilers,
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__
|