Package madgraph :: Package loop :: Module loop_exporters :: Class LoopExporterFortran
[hide private]
[frames] | no frames]

Class LoopExporterFortran

source code

object --+
         |
        LoopExporterFortran
Known Subclasses:

Class to define general helper functions to the different loop fortran exporters (ME, SA, MEGroup, etc..) which will inherit both from this class AND from the corresponding ProcessExporterFortran(ME,SA,...). It plays the same role as ProcessExporterFrotran and simply defines here loop-specific helpers functions necessary for all loop exporters. Notice that we do not have LoopExporterFortran inheriting from ProcessExporterFortran but give access to arguments like dir_path and clean using options. This avoids method resolution object ambiguity

Instance Methods [hide private]
 
__init__(self, dir_path='', opt=None)
Initiate the LoopExporterFortran with directory information on where to find all the loop-related source files, like CutTools
source code
 
link_CutTools(self, targetPath)
Link the CutTools source directory inside the target path given in argument
source code
 
get_aloha_model(self, model)
Caches the aloha model created here as an attribute of the loop exporter so that it can later be used in the LoopHelasMatrixElement in the function compute_all_analytic_information for recycling aloha computations across different LoopHelasMatrixElements steered by the same loop exporter.
source code
 
write_mp_files(self, writer_mprec, writer_mpc)
Write the cts_mprec.h and cts_mpc.h
source code

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

Class Variables [hide private]
  default_opt = {'SubProc_prefix': 'P', 'clean': False, 'complex...
  include_names = {'collier': 'collier.mod', 'golem': 'generic_f...
Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, dir_path='', opt=None)
(Constructor)

source code 

Initiate the LoopExporterFortran with directory information on where to find all the loop-related source files, like CutTools

Overrides: object.__init__

Class Variable Details [hide private]

default_opt

Value:
{'SubProc_prefix': 'P',
 'clean': False,
 'complex_mass': False,
 'compute_color_flows': False,
 'cuttools_dir': '',
 'export_format': 'madloop',
 'fortran_compiler': 'gfortran',
 'loop_dir': '',
...

include_names

Value:
{'collier': 'collier.mod',
 'golem': 'generic_function_1p.mod',
 'ninja': 'mninja.mod',
 'samurai': 'msamurai.mod'}