130 | | |
131 | | import output as output |
132 | | |
133 | | ## Define a typical error for the plugin |
134 | | class EVTDECONS_Error(Exception): pass |
135 | | |
136 | | ## Does it define a new interface (will be avaible with ./bin/mg5_aMC --mode=maddm |
137 | | ## Put None if no dedicated command are required |
138 | | new_interface = False |
139 | | |
140 | | ## Does it define a new output mode. Need to be define |
| 134 | # example: import maddm_interface as maddm_interface # local file |
| 135 | # import madgraph.various.cluster as cluster #MG5 distribution file |
| 136 | |
| 137 | import output as output #local file |
| 138 | |
| 139 | # Three types of functionality are allowed in a plugin |
| 140 | # 1. new output mode |
| 141 | # 2. new cluster support |
| 142 | # 3. new interface |
| 143 | |
| 144 | # 1. Define new output mode |
| 145 | # example: new_output = {'myformat': MYCLASS} |
| 146 | # madgraph will then allow the command "output myformat PATH" |
| 147 | # MYCLASS should inherated of the class madgraph.iolibs.export_v4.VirtualExporter |
144 | | ## The test/code have been validated up to this version |
145 | | latest_validated_version = '2.5.0' |
146 | | minimal_version_required = '2.5.0' |
147 | | maximal_version_required = None |
148 | | }}} |
149 | | |
| 151 | # 2. Define new way to handle the cluster. |
| 152 | # example new_cluster = {'mycluster': MYCLUSTERCLASS} |
| 153 | # allow "set cluster_type mycluster" in madgraph |
| 154 | # MYCLUSTERCLASS should inherated from madgraph.various.cluster.Cluster |
| 155 | new_cluster = {} |
| 156 | |
| 157 | |
| 158 | # 3. Define a new interface (allow to add/modify MG5 command) |
| 159 | # This can be activated via ./bin/mg5_aMC --mode=PLUGINNAME |
| 160 | ## Put None if no dedicated command are required |
| 161 | new_interface = None |
| 162 | |
| 163 | |
| 164 | ########################## CONTROL VARIABLE #################################### |
| 165 | __author__ = 'Mattelaer Olivier' |
| 166 | __email__ = 'o.p.c.mattelaer@durham.ac.uk' |
| 167 | __version__ = (1,0,0) |
| 168 | minimal_mg5amcnlo_version = (2,5,0) |
| 169 | maximal_mg5amcnlo_version = (1000,1000,1000) |
| 170 | latest_validated_version = (2,5,0) |
| 171 | }}} |