Commit e43fcfe4 authored by Jan Kretzschmar's avatar Jan Kretzschmar
Browse files

fix VBF LLP jO [skip modfiles]

parent 7c82496c
Pipeline #3020455 passed with stages
in 1 minute and 5 seconds
evgenConfig.nEventsPerJob = 10000
evgenConfig.inputFilesPerJob = 2
#--------------------------------------------------------------
# Modify the events.lhe, since Pythia doesn't like to decay the
# SM higgs to BSM products: 25 --> 35
#--------------------------------------------------------------
evgenConfig.inputfilecheck = "TXT"
import os, sys, glob
infile = glob.glob("*.events")[0]
f1 = open( infile )
newfile = infile+'.temp'
f2 = open(newfile,'w')
for line in f1:
if line.startswith(' 25 1'):
f2.write(line.replace(' 25 1',' 35 1'))
else:
f2.write(line)
f1.close()
f2.close()
os.system('mv %s %s '%(infile, infile+'.old') )
os.system('mv %s %s '%(newfile, infile) )
for infile in glob.glob("*.events"):
print "Hacking", infile
f1 = open( infile )
newfile = infile+'.temp'
f2 = open(newfile,'w')
for line in f1:
if line.startswith(' 25 1'):
f2.write(line.replace(' 25 1',' 35 1'))
else:
f2.write(line)
f1.close()
f2.close()
os.system('mv %s %s '%(infile, infile+'.old') )
os.system('mv %s %s '%(newfile, infile) )
#extracting run parameters from JO file
print(jo_physshortpart+" is being split")
......@@ -47,9 +51,6 @@ include('Pythia8_i/Pythia8_AZNLO_CTEQ6L1_EvtGen_Common.py')
# Pythia8 main31 matching
#--------------------------------------------------------------
include('Pythia8_i/Pythia8_Powheg_Main31.py')
#nprocess = 0, WpH, nprocesss=1 , WmH
#genSeq.Pythia8.UserModes += ['Main31:NFinal = 3']
genSeq.Pythia8.Commands += ['Powheg:NFinal = 3']
genSeq.Pythia8.Commands += ['SpaceShower:dipoleRecoil = on']
#--------------------------------------------------------------
......@@ -105,4 +106,4 @@ elif adecay==2:
evgenConfig.keywords = [ "BSM", "Higgs", "BSMHiggs", "mH125"]
evgenConfig.contact = [ 'amber.rebecca.roepe@cern.ch' ]
#evgenConfig.minevents = 50
Markdown is supported
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