CMS 3D CMS Logo

HiRecoPFJets_cff.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
2 
3 ## Default Parameter Sets
6 
7 #pseudo towers for noise suppression background subtraction
8 PFTowers = cms.EDProducer("ParticleTowerProducer",
9  src = cms.InputTag("particleFlow"),
10  useHF = cms.bool(False)
11  )
12 
13 
14 
15 ak5PFJets = cms.EDProducer(
16  "FastjetJetProducer",
17  HiPFJetParameters,
18  AnomalousCellParameters,
19  MultipleAlgoIteratorBlock,
20  jetAlgorithm = cms.string("AntiKt"),
21  rParam = cms.double(0.5)
22  )
23 ak5PFJets.src = cms.InputTag('particleFlow')
24 
25 akPu5PFJets = ak5PFJets.clone(
26  jetType = cms.string('BasicJet'),
27  doPVCorrection = False,
28  doPUOffsetCorr = True,
29  subtractorName = cms.string("MultipleAlgoIterator"),
30  src = cms.InputTag('PFTowers'),
31  doAreaFastjet = False
32  )
33 
34 
35 
36 akPu5PFJets.puPtMin = cms.double(25)
37 akPu1PFJets = akPu5PFJets.clone(rParam = cms.double(0.1), puPtMin = 10)
38 akPu2PFJets = akPu5PFJets.clone(rParam = cms.double(0.2), puPtMin = 10)
39 akPu3PFJets = akPu5PFJets.clone(rParam = cms.double(0.3), puPtMin = 15)
40 akPu4PFJets = akPu5PFJets.clone(rParam = cms.double(0.4), puPtMin = 20)
41 akPu6PFJets = akPu5PFJets.clone(rParam = cms.double(0.6), puPtMin = 30)
42 akPu7PFJets = akPu5PFJets.clone(rParam = cms.double(0.7), puPtMin = 35)
43 
44 kt4PFJetsForRho = cms.EDProducer(
45  "FastjetJetProducer",
46  HiPFJetParameters,
47  AnomalousCellParameters,
48  jetAlgorithm = cms.string("Kt"),
49  rParam = cms.double(0.4)
50 )
51 kt4PFJetsForRho.src = cms.InputTag('particleFlow')
52 kt4PFJetsForRho.doAreaFastjet = cms.bool(True)
53 kt4PFJetsForRho.jetPtMin = cms.double(0.0)
54 kt4PFJetsForRho.GhostArea = cms.double(0.005)
55 
56 hiFJRhoProducer = cms.EDProducer('HiFJRhoProducer',
57  jetSource = cms.InputTag('kt4PFJetsForRho'),
58  nExcl = cms.int32(2),
59  etaMaxExcl = cms.double(2.),
60  ptMinExcl = cms.double(20.),
61  nExcl2 = cms.int32(1),
62  etaMaxExcl2 = cms.double(3.),
63  ptMinExcl2 = cms.double(20.),
64  etaRanges = cms.vdouble(-5., -3., -2.1, -1.3, 1.3, 2.1, 3., 5.)
65 )
66 
67 akCs4PFJets = cms.EDProducer(
68  "CSJetProducer",
69  HiPFJetParameters,
70  AnomalousCellParameters,
71  jetAlgorithm = cms.string("AntiKt"),
72  rParam = cms.double(0.4),
73  etaMap = cms.InputTag('hiFJRhoProducer','mapEtaEdges'),
74  rho = cms.InputTag('hiFJRhoProducer','mapToRho'),
75  rhom = cms.InputTag('hiFJRhoProducer','mapToRhoM'),
76  csRParam = cms.double(-1.),
77  csAlpha = cms.double(2.),
78  writeJetsWithConst = cms.bool(True),
79  jetCollInstanceName = cms.string("pfParticlesCs")
80 )
81 akCs4PFJets.src = cms.InputTag('particleFlow')
82 akCs4PFJets.doAreaFastjet = cms.bool(True)
83 akCs4PFJets.jetPtMin = cms.double(0.0)
84 akCs4PFJets.useExplicitGhosts = cms.bool(True)
85 akCs4PFJets.GhostArea = cms.double(0.005)
86 
87 akCs3PFJets = akCs4PFJets.clone(rParam = cms.double(0.3))
88 
89 hiRecoPFJets = cms.Sequence(
90  PFTowers
91  *akPu3PFJets*akPu4PFJets*akPu5PFJets
92  *kt4PFJetsForRho*hiFJRhoProducer
93  *akCs3PFJets*akCs4PFJets
94  )
95