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
|
import FWCore.ParameterSet.Config as cms
process = cms.Process("TQAF")
process.load("FWCore.MessageLogger.MessageLogger_cfi")
process.source = cms.Source("PoolSource",
fileNames = cms.untracked.vstring(
#UL18 MiniAODv2
'/store/mc/RunIISummer20UL18MiniAODv2/TTTo2L2Nu_TuneCP5_13TeV-powheg-pythia8/MINIAODSIM/106X_upgrade2018_realistic_v16_L1v1-v1/00000/04A0B676-D63A-6D41-B47F-F4CF8CBE7DB8.root'
)
)
## define maximal number of events to loop over
process.maxEvents = cms.untracked.PSet(
input = cms.untracked.int32(100)
)
## configure process options
process.options = cms.untracked.PSet(
allowUnscheduled = cms.untracked.bool(True),
wantSummary = cms.untracked.bool(True)
)
process.load('SimGeneral.HepPDTESSource.pythiapdt_cfi')
process.load("GeneratorInterface.RivetInterface.mergedGenParticles_cfi")
process.load("GeneratorInterface.RivetInterface.genParticles2HepMC_cfi")
process.load("GeneratorInterface.RivetInterface.particleLevel_cfi")
process.genParticles2HepMC.genParticles = cms.InputTag("mergedGenParticles")
process.particleLevel.src = cms.InputTag("genParticles2HepMC:unsmeared")
process.path = cms.Path(process.mergedGenParticles*process.genParticles2HepMC*process.particleLevel)
process.out = cms.OutputModule("PoolOutputModule",
fileName = cms.untracked.string("particleLevel.root"),
outputCommands = cms.untracked.vstring(
"drop *",
"keep *_genParticles_*_*",
"keep *_particleLevel_*_*",
),
)
process.outPath = cms.EndPath(process.out)
|