00004 :
00005 """
00006 Modifies the PF2PAT sequence according to the recipe of JetMET:
00007 """
00008
00009
00010 getattr(process,"pfNoPileUp"+postfix).enable = True
00011 getattr(process,"pfPileUp"+postfix).Enable = True
00012 getattr(process,"pfPileUp"+postfix).checkClosestZVertex = False
00013 getattr(process,"pfPileUp"+postfix).Vertices = 'goodOfflinePrimaryVertices'
00014
00015 getattr(process,"pfJets"+postfix).doAreaFastjet = True
00016 getattr(process,"pfJets"+postfix).doRhoFastjet = False
00017
00018 from RecoJets.JetProducers.kt4PFJets_cfi import kt4PFJets
00019
00020 setattr( process, 'kt6PFJets'+postfix, kt4PFJets.clone( rParam = cms.double(0.6),
00021 src = cms.InputTag('pfNoElectron'+postfix),
00022 doAreaFastjet = cms.bool(True),
00023 doRhoFastjet = cms.bool(True)
00024
00025 )
00026 )
00027
00028
00029 getattr(process,'pfJetSequence'+postfix).replace( getattr(process,"pfJets"+postfix),
00030 getattr(process,"kt6PFJets"+postfix) +
00031 getattr(process,"pfJets"+postfix) )
00032
00033
00034 process.load('CommonTools.ParticleFlow.goodOfflinePrimaryVertices_cfi')
00035 getattr(process, 'pfNoPileUpSequence'+postfix).replace( getattr(process,"pfPileUp"+postfix),
00036 process.goodOfflinePrimaryVertices +
00037 getattr(process,"pfPileUp"+postfix) )