1 import FWCore.ParameterSet.Config
as cms
8 from RecoHI.HiJetAlgos.PFTowers_cfi
import PFTowers
11 pfEmptyCollection = cms.EDFilter(
'GenericPFCandidateSelector',
12 src = cms.InputTag(
'particleFlow'),
13 cut = cms.string(
"pt<0")
16 ak5PFJets = cms.EDProducer(
19 AnomalousCellParameters,
20 MultipleAlgoIteratorBlock,
21 jetAlgorithm = cms.string(
"AntiKt"),
22 rParam = cms.double(0.5)
24 ak5PFJets.src =
'particleFlow'
26 akPu5PFJets = ak5PFJets.clone(
28 doPVCorrection =
False,
29 doPUOffsetCorr =
True,
30 subtractorName =
"MultipleAlgoIterator",
32 doAreaFastjet =
False,
33 puPtMin = cms.double(25)
36 akPu1PFJets = akPu5PFJets.clone(rParam = 0.1, puPtMin = 10)
37 akPu2PFJets = akPu5PFJets.clone(rParam = 0.2, puPtMin = 10)
38 akPu3PFJets = akPu5PFJets.clone(rParam = 0.3, puPtMin = 15)
39 akPu4PFJets = akPu5PFJets.clone(rParam = 0.4, puPtMin = 20)
40 akPu6PFJets = akPu5PFJets.clone(rParam = 0.6, puPtMin = 30)
41 akPu7PFJets = akPu5PFJets.clone(rParam = 0.7, puPtMin = 35)
43 hiPFCandCleanerforJets = cms.EDFilter(
'GenericPFCandidateSelector',
44 src = cms.InputTag(
'particleFlow'),
45 cut = cms.string(
"pt>5 && abs(eta)< 2")
48 ak4PFJetsForFlow = akPu5PFJets.clone(
56 src =
"hiPFCandCleanerforJets",
59 kt4PFJetsForRho = cms.EDProducer(
62 AnomalousCellParameters,
63 jetAlgorithm = cms.string(
"Kt"),
64 rParam = cms.double(0.4)
66 kt4PFJetsForRho.src =
'particleFlow'
67 kt4PFJetsForRho.doAreaFastjet =
True
68 kt4PFJetsForRho.jetPtMin = 0.0
69 kt4PFJetsForRho.GhostArea = 0.005
71 from RecoHI.HiJetAlgos.hiFJRhoProducer
import hiFJRhoProducer
73 import RecoHI.HiJetAlgos.hiFJRhoFlowModulationProducer_cfi
as _mod
74 hiFJRhoFlowModulation = _mod.hiFJRhoFlowModulationProducer.clone()
76 import RecoHI.HiJetAlgos.hiPuRhoProducer_cfi
as _mod
77 hiPuRho = _mod.hiPuRhoProducer.clone()
79 akCs4PFJets = cms.EDProducer(
82 AnomalousCellParameters,
83 jetAlgorithm = cms.string(
"AntiKt"),
84 rParam = cms.double(0.4),
85 etaMap = cms.InputTag(
'hiPuRho',
'mapEtaEdges'),
86 rho = cms.InputTag(
'hiPuRho',
'mapToRho'),
87 rhom = cms.InputTag(
'hiPuRho',
'mapToRhoM'),
88 csRParam = cms.double(-1.),
89 csAlpha = cms.double(2.),
90 writeJetsWithConst = cms.bool(
True),
91 useModulatedRho = cms.bool(
False),
92 rhoFlowFitParams = cms.InputTag(
'hiFJRhoFlowModulation',
'rhoFlowFitParams'),
93 jetCollInstanceName = cms.string(
"pfParticlesCs"),
95 akCs4PFJets.src =
'particleFlow'
96 akCs4PFJets.doAreaFastjet =
True
97 akCs4PFJets.jetPtMin = 0.0
98 akCs4PFJets.useExplicitGhosts = cms.bool(
True)
99 akCs4PFJets.GhostArea = 0.005
101 akCs3PFJets = akCs4PFJets.clone(rParam = 0.3)
103 hiRecoPFJetsTask = cms.Task(
108 hiPFCandCleanerforJets,
113 hiFJRhoFlowModulation,
117 hiRecoPFJets = cms.Sequence(hiRecoPFJetsTask)
119 from Configuration.ProcessModifiers.run2_miniAOD_pp_on_AA_103X_cff
import run2_miniAOD_pp_on_AA_103X
120 run2_miniAOD_pp_on_AA_103X.toModify(akCs4PFJets,src =
'cleanedParticleFlow')
121 run2_miniAOD_pp_on_AA_103X.toModify(PFTowers,src =
'cleanedParticleFlow')
122 run2_miniAOD_pp_on_AA_103X.toModify(hiPuRho,src =
"PackedPFTowers")