Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 12:50:00

0001 import FWCore.ParameterSet.Config as cms
0002 
0003 def jetAlgo( algo ):
0004 
0005     # print 'PF2PAT: selecting jet algorithm ', algo
0006 
0007     if algo == 'IC5':
0008         import RecoJets.JetProducers.ic5PFJets_cfi as jetConfig
0009         jetAlgo = jetConfig.iterativeCone5PFJets.clone()
0010     elif algo == 'AK4':
0011         import RecoJets.JetProducers.ak4PFJets_cfi as jetConfig
0012         jetAlgo = jetConfig.ak4PFJets.clone()
0013     elif algo == 'AK7':
0014         import RecoJets.JetProducers.ak4PFJets_cfi as jetConfig
0015         jetAlgo = jetConfig.ak4PFJets.clone()
0016         jetAlgo.rParam = cms.double(0.7)
0017         jetAlgo.doAreaFastjet = cms.bool(False)
0018 
0019     jetAlgo.src = 'pfNoElectronJME'
0020     jetAlgo.doPVCorrection = True
0021     jetAlgo.srcPVs = cms.InputTag("goodOfflinePrimaryVertices")
0022     return jetAlgo