Commit 4d187c5b authored by James William Monk's avatar James William Monk
Browse files

PowhegMain31 UserHook name depends on presence of USerHook or UserHooks in Pythia8_i


git-svn-id: svn+ssh://svn.cern.ch/reps/atlasoff/Generators/MC15JobOptions/trunk@809091 4525493e-7705-40b1-a816-d608a930855b
parent f2a9acf6
2017-08-04 James Monk <jmonk@cern.ch>
* Pythia8_Powheg_Main31.py set PowhegMain31 plugin name depending on presence of UserHook (old-style) or UserHooks (new style - note the plural)
2017-08-03 Franziska Iltzsche <franziska.speiser@cern.ch>
* add 300544 - 300557
* add 420026 - 28 for 8 TeV in evgenfile.csv
......
......@@ -2,9 +2,17 @@
include("MC15JobOptions/Pythia8_Powheg.py")
genSeq.Pythia8.Commands += [ 'SpaceShower:pTmaxMatch = 2',
'TimeShower:pTmaxMatch = 2' ]
ver = os.popen("cmt show versions External/Pythia8").read()
print "Pythia8 version: " + ver
if 'Pythia8-02-2' in ver[:50]:
genSeq.Pythia8.UserHooks = ['Main31']
if "UserHooks" in genSeq.Pythia8.__slots__.keys():
genSeq.Pythia8.UserHooks += ['PowhegMain31']
else:
genSeq.Pythia8.UserHook = 'Main31'
#ver = os.popen("cmt show versions External/Pythia8").read()
#print "Pythia8 version: " + ver
#if 'Pythia8-02-2' in ver[:50]:
# genSeq.Pythia8.UserHooks = ['Main31']
#else:
# genSeq.Pythia8.UserHook = 'Main31'
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment