Changes between Version 1 and Version 2 of Plugin


Ignore:
Timestamp:
May 5, 2016, 5:49:48 PM (9 years ago)
Author:
Olivier Mattelaer
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Plugin

    v1 v2  
    177177   2. setup_cpp_standalone_dir(self, model)
    178178   3. generate_subprocess_directory(self, subproc_group, helicity_model, me=None) [for grouped]
     179       returns an integer (used only to print info to screen as the number of call to helicity routine)
    179180   4. generate_subprocess_directory(self, matrix_element, helicity_model, me_number) [for ungrouped]
     181       returns an integer (used only to print info to screen as the number of call to helicity routine)
    180182   4. convert_model(model, wanted_lorentz=[], wanted_coupling=[])
    181183   5. finalize(self,matrix_element, cmdhistory, MG5options, outputflag)     
     
    191193
    192194
    193 
    194 
    195 
     195=== Base class which can be use to create a new exporter from scratch:
     196
     197{{{
     198class MyV4EmptyOutput(object):
     199
     200    grouped_mode=True
     201
     202    def __init__(self, mgme_dir = "", dir_path = "", opt=None):
     203        return
     204
     205    def copy_v4template(self, modelname):
     206        return
     207
     208    def generate_subprocess_directory(self, subproc_group, helicity_model, me=None):
     209    #    generate_subprocess_directory(self, matrix_element, helicity_model, me_number) [for ungrouped]
     210        return 0 # return an integer stating the number of call to helicity routine
     211    def convert_model(self, model, wanted_lorentz=[], wanted_coupling=[]):
     212        return
     213    def finalize(self,matrix_element, cmdhistory, MG5options, outputflag):
     214        return
     215    def modify_grouping(self, matrix_element):
     216        return False, matrix_element
     217    def export_model_files(self, model_v4_path):
     218        return
     219    def export_helas(self, HELAS_PATH):
     220        return
     221
     222
     223class MyCPPEmptyOutput(object):
     224
     225    grouped_mode=True
     226
     227    def __init__(self, mgme_dir = "", dir_path = "", opt=None):
     228        return
     229
     230    def setup_cpp_standalone_dir(self, model)
     231        return
     232
     233    def generate_subprocess_directory(self, subproc_group, helicity_model, me=None):
     234    #    generate_subprocess_directory(self, matrix_element, helicity_model, me_number) [for ungrouped]
     235        return 0 # return an integer stating the number of call to helicity routine
     236    def convert_model(self, model, wanted_lorentz=[], wanted_coupling=[]):
     237        return
     238
     239    def finalize(self,matrix_element, cmdhistory, MG5options, outputflag):
     240        return
     241
     242    def modify_grouping(self, matrix_element):
     243        return False, matrix_element
     244
     245    def make_model_cpp(self, model):
     246        return
     247
     248}}}
     249
     250