Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2023-10-25 09:58:23

0001 import FWCore.ParameterSet.Config as cms
0002 
0003 process = cms.Process("Jets")
0004 
0005 process.source = cms.Source("PoolSource",
0006   fileNames = cms.untracked.vstring(
0007     'file:patTuple.root'
0008   )
0009 )
0010 
0011 process.MessageLogger = cms.Service("MessageLogger")
0012 
0013 ## prepare jet collections
0014 from PhysicsTools.PatAlgos.selectionLayer1.jetSelector_cfi import selectedPatJets
0015 process.goodCaloJets = selectedPatJets.clone(src='cleanPatJets', cut='pt>30 & abs(eta)<3')
0016 
0017 ## monitor jet collections
0018 from PhysicsTools.PatExamples.PatJetAnalyzer_cfi import analyzePatJets
0019 ## modules for jet response
0020 process.rawJets     = analyzePatJets.clone(corrLevel='Uncorrected')
0021 process.relJets     = analyzePatJets.clone(corrLevel='L2Relative')
0022 process.absJets     = analyzePatJets.clone(corrLevel='L3Absolute')
0023 ## modules to compare calo and pflow jets
0024 process.caloJets    = analyzePatJets.clone(src='goodCaloJets')
0025 process.pflowJets   = analyzePatJets.clone(src='goodCaloJets')
0026 ## modules for shift in JES
0027 process.shiftedJets = analyzePatJets.clone(src='goodCaloJets')
0028 
0029 
0030 process.TFileService = cms.Service("TFileService",
0031   fileName = cms.string('analyzePatJets.root')
0032 )
0033 
0034 ## process path
0035 process.p = cms.Path(
0036     process.goodCaloJets * 
0037     process.rawJets   *
0038     process.relJets   *
0039     process.absJets   *
0040     process.caloJets  *
0041     process.pflowJets *
0042     process.shiftedJets
0043 )