forked from ValentinHirschi/MG5aMC_PythonMEs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
__init__.py
42 lines (35 loc) · 1.48 KB
/
__init__.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
## import the required files
import os
import sys
root_path = os.path.split(os.path.dirname(os.path.realpath( __file__ )))[0]
sys.path.insert(0, root_path)
import MG5aMC_PythonMEs.PluginInterface as PluginInterface
import MG5aMC_PythonMEs.PluginExporters as PluginExporters
# Three types of functionality are allowed in a plugin
# 1. new output mode
# 2. new cluster support
# 3. new interface
# 1. Define new output mode
# example: new_output = {'myformat': MYCLASS}
# madgraph will then allow the command "output myformat PATH"
# MYCLASS should inherated of the class madgraph.iolibs.export_v4.VirtualExporter
new_output = {
'Python': PluginExporters.ProcessOutputPython,
'TF' : PluginExporters.ProcessOutputTF
}
# 2. Define new way to handle the cluster.
# example new_cluster = {'mycluster': MYCLUSTERCLASS}
# allow "set cluster_type mycluster" in madgraph
# MYCLUSTERCLASS should inherated from madgraph.various.cluster.Cluster
new_cluster = {}
# 3. Define a new interface (allow to add/modify MG5 command)
# This can be activated via ./bin/mg5_aMC --mode=PLUGINNAME
## Put None if no dedicated command are required
new_interface = PluginInterface.MG5aMC_PythonMEsInterface
########################## CONTROL VARIABLE ####################################
__author__ = 'Valentin Hirschi'
__email__ = '[email protected]'
__version__ = (1,0,0)
minimal_mg5amcnlo_version = (2,6,6)
maximal_mg5amcnlo_version = (1000,1000,1000)
latest_validated_version = (2,6,6)