CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
RecoJets_cff.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
2 
3 from RecoJets.JetProducers.ak4CaloJets_cfi import ak4CaloJets
4 
5 from RecoJets.JetProducers.fixedGridRhoProducerFastjet_cfi import fixedGridRhoFastjetAllCalo
6 
7 doPileup = cms.bool(True)
8 
9 ak4CaloJetsPUCorr =ak4CaloJets.clone(doPUOffsetCorr = doPileup)
10 ak4CaloJets.doAreaFastjet = True
11 
12 fixedGridRhoFastjetCentralCalo = fixedGridRhoFastjetAllCalo.clone(
13  maxRapidity = 2.5
14  )
15 
16 recoJetsTask =cms.Task(fixedGridRhoFastjetAllCalo,
17  fixedGridRhoFastjetCentralCalo,
18  ak4CaloJets)
19 recoJets =cms.Sequence(recoJetsTask)
20 
21 recoAllJetsTask=cms.Task(fixedGridRhoFastjetAllCalo,
22  fixedGridRhoFastjetCentralCalo,
23  fixedGridRhoFastjetAllCalo,
24  ak4CaloJets)
25 recoAllJets=cms.Sequence(recoAllJetsTask)
26 
27 recoAllJetsPUOffsetCorrTask=cms.Task(fixedGridRhoFastjetAllCalo,
28  fixedGridRhoFastjetCentralCalo,
29  ak4CaloJetsPUCorr)
30 recoAllJetsPUOffsetCorr=cms.Sequence(recoAllJetsPUOffsetCorrTask)
31 
32 from RecoHI.HiJetAlgos.HiRecoJets_cff import caloTowersRecTask, caloTowers, akPu4CaloJets
33 
34 recoJetsHITask =cms.Task(fixedGridRhoFastjetAllCalo,
35  fixedGridRhoFastjetCentralCalo,
36  ak4CaloJets,
37  caloTowersRecTask,
38  caloTowers,
39  akPu4CaloJets
40  )
41 recoJetsHI =cms.Sequence(recoJetsHITask)