1 import FWCore.ParameterSet.Config
as cms
8 import RecoHI.HiJetAlgos.particleTowerProducer_cfi
as _mod
9 PFTowers = _mod.particleTowerProducer.clone(useHF =
True)
12 pfEmptyCollection = cms.EDFilter(
'GenericPFCandidateSelector',
13 src = cms.InputTag(
'particleFlow'),
14 cut = cms.string(
"pt<0")
17 ak5PFJets = cms.EDProducer(
20 AnomalousCellParameters,
21 MultipleAlgoIteratorBlock,
22 jetAlgorithm = cms.string(
"AntiKt"),
23 rParam = cms.double(0.5)
25 ak5PFJets.src =
'particleFlow'
27 akPu5PFJets = ak5PFJets.clone(
29 doPVCorrection =
False,
30 doPUOffsetCorr =
True,
31 subtractorName =
"MultipleAlgoIterator",
33 doAreaFastjet =
False,
34 puPtMin = cms.double(25)
37 akPu1PFJets = akPu5PFJets.clone(rParam = 0.1, puPtMin = 10)
38 akPu2PFJets = akPu5PFJets.clone(rParam = 0.2, puPtMin = 10)
39 akPu3PFJets = akPu5PFJets.clone(rParam = 0.3, puPtMin = 15)
40 akPu4PFJets = akPu5PFJets.clone(rParam = 0.4, puPtMin = 20)
41 akPu6PFJets = akPu5PFJets.clone(rParam = 0.6, puPtMin = 30)
42 akPu7PFJets = akPu5PFJets.clone(rParam = 0.7, puPtMin = 35)
44 hiPFCandCleanerforJets = cms.EDFilter(
'GenericPFCandidateSelector',
45 src = cms.InputTag(
'particleFlow'),
46 cut = cms.string(
"pt>5 && abs(eta)< 2")
49 ak4PFJetsForFlow = akPu5PFJets.clone(
57 src =
"hiPFCandCleanerforJets",
60 kt4PFJetsForRho = cms.EDProducer(
63 AnomalousCellParameters,
64 jetAlgorithm = cms.string(
"Kt"),
65 rParam = cms.double(0.4)
67 kt4PFJetsForRho.src =
'particleFlow'
68 kt4PFJetsForRho.doAreaFastjet =
True
69 kt4PFJetsForRho.jetPtMin = 0.0
70 kt4PFJetsForRho.GhostArea = 0.005
72 from RecoHI.HiJetAlgos.hiFJRhoProducer
import hiFJRhoProducer
74 import RecoHI.HiJetAlgos.hiFJRhoFlowModulationProducer_cfi
as _mod
75 hiFJRhoFlowModulation = _mod.hiFJRhoFlowModulationProducer.clone()
77 import RecoHI.HiJetAlgos.hiPuRhoProducer_cfi
as _mod
78 hiPuRho = _mod.hiPuRhoProducer.clone()
80 akCs4PFJets = cms.EDProducer(
83 AnomalousCellParameters,
84 jetAlgorithm = cms.string(
"AntiKt"),
85 rParam = cms.double(0.4),
86 etaMap = cms.InputTag(
'hiPuRho',
'mapEtaEdges'),
87 rho = cms.InputTag(
'hiPuRho',
'mapToRho'),
88 rhom = cms.InputTag(
'hiPuRho',
'mapToRhoM'),
89 csRParam = cms.double(-1.),
90 csAlpha = cms.double(2.),
91 writeJetsWithConst = cms.bool(
True),
92 useModulatedRho = cms.bool(
False),
93 rhoFlowFitParams = cms.InputTag(
'hiFJRhoFlowModulation',
'rhoFlowFitParams'),
94 jetCollInstanceName = cms.string(
"pfParticlesCs"),
96 akCs4PFJets.src =
'particleFlow'
97 akCs4PFJets.doAreaFastjet =
True
98 akCs4PFJets.jetPtMin = 0.0
99 akCs4PFJets.useExplicitGhosts = cms.bool(
True)
100 akCs4PFJets.GhostArea = 0.005
102 akCs3PFJets = akCs4PFJets.clone(rParam = 0.3)
104 hiRecoPFJetsTask = cms.Task(
109 hiPFCandCleanerforJets,
114 hiFJRhoFlowModulation,
118 hiRecoPFJets = cms.Sequence(hiRecoPFJetsTask)
120 from Configuration.ProcessModifiers.run2_miniAOD_pp_on_AA_103X_cff
import run2_miniAOD_pp_on_AA_103X
121 run2_miniAOD_pp_on_AA_103X.toModify(akCs4PFJets,src =
'cleanedParticleFlow')
122 run2_miniAOD_pp_on_AA_103X.toModify(PFTowers,src =
'cleanedParticleFlow')