Package madgraph :: Package iolibs :: Module export_cpp :: Class ProcessExporterCPP
[hide private]
[frames] | no frames]

Class ProcessExporterCPP

source code

               object --+    
                        |    
export_v4.VirtualExporter --+
                            |
                           ProcessExporterCPP
Known Subclasses:

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

Nested Classes [hide private]
  oneprocessclass
Class to take care of exporting a set of matrix elements to C++ format.
Instance Methods [hide private]
 
__init__(self, dir_path='', opt=None)
Initiate the ProcessExporterFortran with directory information
source code
 
copy_template(self, 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
 
modify_grouping(self, matrix_element)
allow to modify the grouping (if grouping is in place)...
source code
 
convert_model(self, model, wanted_lorentz=[], wanted_couplings=[]) source code
 
compile_model(self) source code
 
generate_subprocess_directory(self, matrix_element, cpp_helas_call_writer, proc_number=None)
Generate the Pxxxxx directory for a subprocess in C++ standalone, including the necessary .h and .cc files
source code
 
finalize(self, *args, **opts) source code

Inherited from export_v4.VirtualExporter: export_helas, export_model_files, helas_call_writer_custom, pass_information_from_cmd

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

Class Methods [hide private]
 
read_template_file(cls, *args, **opts)
Open a template file and return the contents.
source code
Static Methods [hide private]
 
get_model_name(name)
Replace - with _, + with _plus_ in a model name.
source code

Inherited from export_v4.VirtualExporter: custom_helas_call

Class Variables [hide private]
  grouped_mode = False
  exporter = 'cpp'
  default_opt = {'clean': False, 'complex_mass': False, 'export_...
  s = '/Users/omattelaer/Documents/workspace/madgraph5/MG5_aMC_v...
  from_template = {'SubProcesses': ['/Users/omattelaer/Documents...
  to_link_in_P = ['check_sa.cpp', 'Makefile']
  template_src_make = '/Users/omattelaer/Documents/workspace/mad...
  template_Sub_make = '/Users/omattelaer/Documents/workspace/mad...

Inherited from export_v4.VirtualExporter: check, output, sa_symmetry

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

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

source code 

Initiate the ProcessExporterFortran with directory information

Overrides: object.__init__

copy_template(self, model)

source code 

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)

Overrides: export_v4.VirtualExporter.copy_template

modify_grouping(self, matrix_element)

source code 
allow to modify the grouping (if grouping is in place)
return two value:
- True/False if the matrix_element was modified
- the new(or old) matrix element

Overrides: export_v4.VirtualExporter.modify_grouping

convert_model(self, model, wanted_lorentz=[], wanted_couplings=[])

source code 
Overrides: export_v4.VirtualExporter.convert_model

generate_subprocess_directory(self, matrix_element, cpp_helas_call_writer, proc_number=None)

source code 

Generate the Pxxxxx directory for a subprocess in C++ standalone, including the necessary .h and .cc files

Overrides: export_v4.VirtualExporter.generate_subprocess_directory

finalize(self, *args, **opts)

source code 
Overrides: export_v4.VirtualExporter.finalize

Class Variable Details [hide private]

default_opt

Value:
{'clean': False,
 'complex_mass': False,
 'export_format': 'madevent',
 'mp': False,
 'v5_model': True}

s

Value:
'/Users/omattelaer/Documents/workspace/madgraph5/MG5_aMC_v2_6_5/madgra\
ph/iolibs/template_files/'

from_template

Value:
{'SubProcesses': ['/Users/omattelaer/Documents/workspace/madgraph5/MG5\
_aMC_v2_6_5/madgraph/iolibs/template_files/check_sa.cpp'],
 'src': ['/Users/omattelaer/Documents/workspace/madgraph5/MG5_aMC_v2_6\
_5/madgraph/iolibs/template_files/rambo.h',
         '/Users/omattelaer/Documents/workspace/madgraph5/MG5_aMC_v2_6\
_5/madgraph/iolibs/template_files/rambo.cc',
         '/Users/omattelaer/Documents/workspace/madgraph5/MG5_aMC_v2_6\
_5/madgraph/iolibs/template_files/read_slha.h',
...

template_src_make

Value:
'/Users/omattelaer/Documents/workspace/madgraph5/MG5_aMC_v2_6_5/madgra\
ph/iolibs/template_files/Makefile_sa_cpp_src'

template_Sub_make

Value:
'/Users/omattelaer/Documents/workspace/madgraph5/MG5_aMC_v2_6_5/madgra\
ph/iolibs/template_files/Makefile_sa_cpp_src'