34 mainJOfile = glob.glob(
"mc.*.py")
35 if len(mainJOfile)!=1:
36 print (
"ERROR: found 0 or multiple mc.*.py files in main jobOptionDir")
38 options.mainJOfile = mainJOfile[0]
44 genSeq = dotdict({
"Sherpa_i":dotdict({
53 evgenConfig = dotdict({
"generators":[]})
58 configname =
"Sherpa.yaml" if os.environ[
"SHERPAVER"].startswith(
'3.')
else "Run.dat"
59 runArgs = dotdict({
"jobConfig":[configname],
"ecmEnergy":1000.*
float(options.ecm[0])})
65 global HeavyFlavorBHadronFilter
66 HeavyFlavorBHadronFilter =
True
67 global HeavyFlavorCHadronPt4Eta3_Filter
68 HeavyFlavorCHadronPt4Eta3_Filter =
True
71 "NoDecayVertexStatuses":[]
76 "DecaysFinalStateFilter":dotdict({
77 "NChargedLeptons":
True,
79 "PDGAllowedParents":[23]
86 sys.modules[
"Sherpa_i.Sherpa_iConf"] = dummy
87 sys.modules[
"Sherpa_i"] = dummy
89 sys.modules[
"GeneratorFilters.GeneratorFiltersConf"] = dummy
90 sys.modules[
"GeneratorFilters"] = dummy
92 exec(compile(
open(options.mainJOfile,
"rb").
read(), options.mainJOfile,
'exec'), globals())
94 if genSeq.Sherpa_i.RunCard ==
"":
95 print (
"ERROR: no runCard found in the JO-File")
99 options.Sherpa_i = genSeq.Sherpa_i