Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 13:32:31

0001 import FWCore.ParameterSet.Config as cms
0002 
0003 
0004 process = cms.Process("EX")
0005 process.task = cms.Task()
0006 process.source = cms.Source("PoolSource",
0007     fileNames = cms.untracked.vstring("file:../ZLL-8A345C56-6665-E411-9C25-1CC1DE04DF20.root")
0008 )
0009 process.maxEvents = cms.untracked.PSet( input = cms.untracked.int32(1000) )
0010 
0011 process.OUT = cms.OutputModule("PoolOutputModule",
0012     fileName = cms.untracked.string('test.root'),
0013     outputCommands = cms.untracked.vstring(['drop *'])
0014 )
0015 process.endpath= cms.EndPath(process.OUT, process.task)
0016 
0017 from RecoJets.JetProducers.ak5PFJets_cfi import ak5PFJets
0018 
0019 # Select candidates that would pass CHS requirements
0020 process.chs = cms.EDFilter("CandPtrSelector", src = cms.InputTag("packedPFCandidates"), cut = cms.string("fromPV"))
0021 process.task.add(process.chs)
0022 
0023 #makes chs ak5 jets   (instead of ak4 that are default in miniAOD 70X)
0024 process.ak5PFJetsCHS = ak5PFJets.clone(src = 'chs')
0025 process.task.add(process.ak5PFJetsCHS)
0026 process.OUT.outputCommands.append("keep *_ak5PFJetsCHS_*_EX")
0027 
0028 process.options = cms.untracked.PSet( 
0029         wantSummary = cms.untracked.bool(True) # while the timing of this is not reliable in unscheduled mode, it still helps understanding what was actually run 
0030 )