-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinclusive_gridpack.py
More file actions
51 lines (44 loc) · 2.24 KB
/
inclusive_gridpack.py
File metadata and controls
51 lines (44 loc) · 2.24 KB
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
43
44
45
46
47
48
49
50
51
import FWCore.ParameterSet.Config as cms
externalLHEProducer = cms.EDProducer("ExternalLHEProducer",
args = cms.vstring('/afs/cern.ch/work/s/shjeon/public/ForGianfranco/GJets_1j_Gpt-Inclusive_5f_NLO_slc7_amd64_gcc700_CMSSW_10_6_19_tarball.tar.xz'),
nEvents = cms.untracked.uint32(5000),
numberOfParameters = cms.uint32(1),
outputFile = cms.string('cmsgrid_final.lhe'),
scriptName = cms.FileInPath('GeneratorInterface/LHEInterface/data/run_generic_tarball_cvmfs.sh')
)
import FWCore.ParameterSet.Config as cms
from Configuration.Generator.Pythia8CommonSettings_cfi import *
from Configuration.Generator.MCTunes2017.PythiaCP5Settings_cfi import *
from Configuration.Generator.Pythia8aMCatNLOSettings_cfi import *
from Configuration.Generator.PSweightsPythia.PythiaPSweightsSettings_cfi import *
generator = cms.EDFilter("Pythia8HadronizerFilter",
maxEventsToPrint = cms.untracked.int32(1),
pythiaPylistVerbosity = cms.untracked.int32(1),
#filterEfficiency = cms.untracked.double(1.0),
pythiaHepMCVerbosity = cms.untracked.bool(False),
comEnergy = cms.double(13000.),
PythiaParameters = cms.PSet(
pythia8CommonSettingsBlock,
pythia8CP5SettingsBlock,
pythia8aMCatNLOSettingsBlock,
pythia8PSweightsSettingsBlock,
processParameters = cms.vstring(
'TimeShower:nPartonsInBorn = 1', #number of coloured particles (before resonance decays) in born matrix element
),
parameterSets = cms.vstring('pythia8CommonSettings',
'pythia8CP5Settings',
'pythia8aMCatNLOSettings',
'pythia8PSweightsSettings',
'processParameters',
)
)
)
LHEPtFilter = cms.EDFilter("LHEPtFilter",
selectedPdgIds = cms.vint32(22),
ptMax = cms.double(400.0),
ptMin = cms.double(250.0),
src = cms.InputTag("externalLHEProducer")
)
ProductionFilterSequence = cms.Sequence(generator*LHEPtFilter)
# Link to generator fragment:
# ./genFragments/Hadronizer/13TeV/Hadronizer_TuneCP5_13TeV_Gpt250to400_aMCatNLO_1p_LHE_pythia8_cff.py