ATLAS Offline Software
Loading...
Searching...
No Matches
PowhegPythia8EvtGen_jetjet.py
Go to the documentation of this file.
1# This includes the setting of random seeds and c.o.m. energy
2include('PowhegControl/PowhegControl_Dijet_Common.py')
3PowhegConfig.bornktmin = int(runArgs.runNumber)
4PowhegConfig.pdf = 11000
5
6ktmin = { 1:2 , 2:5 , 3:15 , 4:30 , 5:75 , 6:150 , 7:250 ,
7 8:750 , 9:1250 }
8supp = { 1:60 , 2:160 , 3:400 , 4:800 , 5:1800 , 6:3200 ,
9 7:5300 , 8:9000 , 9:11000 }
10
11theRun = int(runArgs.runNumber)%10
12theEnergy = int(runArgs.ecmEnergy)/1000
13PowhegConfig.bornktmin = ktmin[ theRun ]
14PowhegConfig.bornsuppfact = supp[ theRun ]
15
16# Just 22k to make 20k output
17# 22k = 5-7 hrs on a batch node; can do up to 3x as many
18if theRun in [1,2,3]: PowhegConfig.nEvents = 12000
19if theRun in [4]: PowhegConfig.nEvents = 22000
20if theRun in [5]: PowhegConfig.nEvents = 33000
21if theRun in [6,7]: PowhegConfig.nEvents = 66000
22if theRun in [8]: PowhegConfig.nEvents = 55000
23if theRun in [9]: PowhegConfig.nEvents = 36000
24
25# for energy [7,8] we ned to reduce the number of input events
26if theEnergy in [7,8] and theRun in [5]: PowhegConfig.nEvents = 20000
27if theEnergy in [7,8] and theRun in [6,7]: PowhegConfig.nEvents = 40000
28if theEnergy in [7,8] and theRun in [8]: PowhegConfig.nEvents = 30000
29
30print PowhegConfig
31
32#PowhegConfig.generateRunCard()
33#PowhegConfig.generateEvents()
34
35PowhegConfig.generate()
36
37
40evgenConfig.description = "POWHEG+Pythia8 dijet production with bornktmin = %i GeV, bornsuppfact = %i GeV, muR=muF=1"%(PowhegConfig.bornktmin,PowhegConfig.bornsuppfact)
41evgenConfig.keywords = [ "QCD", "dijet", "jets", "SM" ]
42evgenConfig.contact = [ "ZLMarshall@lbl.gov" ]
43evgenConfig.generators += [ "Pythia8" ]
44
45# For JZ 1-6 this is no problem
46evgenConfig.minevents = 5000
47# For JZ 7 things are a bit tighter
48if theRun in [7]: evgenConfig.minevents = 3000
49# For the remainder, it's way tight
50if theRun in [8]: evgenConfig.minevents = 1000
51if theRun in [9]: evgenConfig.minevents = 200
52
53if theEnergy in [7,8]:
54 if theRun in [4]: evgenConfig.minevents = 4000
55 if theRun in [5]: evgenConfig.minevents = 1000
56 if theRun in [6]: evgenConfig.minevents = 200
57 if theRun in [7]: evgenConfig.minevents = 100
58
59
62include('Pythia8_i/Pythia8_A14_NNPDF23LO_EvtGen_Common.py')
63include("Pythia8_i/Pythia8_Powheg_Main31.py")
64
65# Add the jet filter
66include("GeneratorFilters/JetFilter_JZ%i.py"%(theRun))
67# Make J9 inclusive
68if 9==theRun: filtSeq.QCDTruthJetFilter.MaxPt = -1
69
70evgenConfig.inputconfcheck = "jetjet_J%i"%(theRun)
71