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 |
| 18 | new_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 |
| 24 | new_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 |
| 30 | new_interface = None |
| 31 | |
| 32 | |
| 33 | ########################## CONTROL VARIABLE #################################### |
| 34 | __author__ = '' |
| 35 | __email__ = '' |
| 36 | __version__ = (1,0,0) |
| 37 | minimal_mg5amcnlo_version = (2,3,4) |
| 38 | maximal_mg5amcnlo_version = (1000,1000,1000) |
| 39 | latest_validated_version = (2,4,0) |
| 40 | }}} |