Changes between Version 4 and Version 5 of Plugin


Ignore:
Timestamp:
May 13, 2016, 12:25:13 PM (9 years ago)
Author:
Olivier Mattelaer
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Plugin

    v4 v5  
    1 
     1=== Plugin idea
     2
     3=== init file:
     4
     5{{{
     6## import the required files
     7# example: import maddm_interface as maddm_interface
     8
     9# Three types of functionality are allowed in a plugin
     10#   1. new output mode
     11#   2. new cluster support
     12#   3. new interface
     13
     14# 1. Define new output mode
     15#    example: new_output = {'myformat': MYCLASS}
     16#    madgraph will then allow the command "output myformat PATH"
     17#    MYCLASS should inherated of the class madgraph.iolibs.export_v4.VirtualExporter
     18new_output = {}
     19
     20# 2. Define new way to handle the cluster.
     21#    example new_cluster = {'mycluster': MYCLUSTERCLASS}
     22#    allow "set cluster_type mycluster" in madgraph
     23#    MYCLUSTERCLASSshould inherated from madgraph.various.cluster.Cluster
     24new_cluster = {}
     25
     26
     27# 3. Define a new interface (allow to add/modify MG5 command)
     28#    This can be activated via ./bin/mg5_aMC --mode=PLUGINNAME
     29## Put None if no dedicated command are required
     30new_interface = None
     31 
     32 
     33########################## CONTROL VARIABLE ####################################
     34__author__ = ''
     35__email__ = ''
     36__version__ = (1,0,0)
     37minimal_mg5amcnlo_version = (2,3,4)
     38maximal_mg5amcnlo_version = (1000,1000,1000)
     39latest_validated_version = (2,4,0)
     40}}}
    241
    342
     
    62101output.py file
    63102{{{
     103import madgraph.iolibs.export_cpp as export_cpp
     104import madgraph.iolibs.export_v4 as export_v4
     105import madgraph.various.misc as misc
     106
    64107class My_MW_Exporter(export_v4.ProcessExporterFortranMWGroup):
    65108