CMS 3D CMS Logo

HiRecoPFJets_cff.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
2 
3 
6 
7 #pseudo towers for noise suppression background subtraction
8 import RecoHI.HiJetAlgos.particleTowerProducer_cfi as _mod
9 PFTowers = _mod.particleTowerProducer.clone(useHF = True)
10 
11 #dummy sequence to speed-up reconstruction in pp_on_AA era
12 pfEmptyCollection = cms.EDFilter('GenericPFCandidateSelector',
13  src = cms.InputTag('particleFlow'),
14  cut = cms.string("pt<0")
15  )
16 
17 ak5PFJets = cms.EDProducer(
18  "FastjetJetProducer",
19  HiPFJetParameters,
20  AnomalousCellParameters,
21  MultipleAlgoIteratorBlock,
22  jetAlgorithm = cms.string("AntiKt"),
23  rParam = cms.double(0.5)
24 )
25 ak5PFJets.src = 'particleFlow'
26 
27 akPu5PFJets = ak5PFJets.clone(
28  jetType = 'BasicJet',
29  doPVCorrection = False,
30  doPUOffsetCorr = True,
31  subtractorName = "MultipleAlgoIterator",
32  src = 'PFTowers',
33  doAreaFastjet = False,
34  puPtMin = cms.double(25)
35 )
36 
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)
43 
44 hiPFCandCleanerforJets = cms.EDFilter('GenericPFCandidateSelector',
45  src = cms.InputTag('particleFlow'),
46  cut = cms.string("pt>5 && abs(eta)< 2")
47  )
48 
49 ak4PFJetsForFlow = akPu5PFJets.clone(
50  Ghost_EtaMax = 5.0,
51  Rho_EtaMax = 4.4,
52  doRhoFastjet = False,
53  jetPtMin = 15.0,
54  nSigmaPU = 1.0,
55  rParam = 0.4,
56  radiusPU = 0.5,
57  src = "hiPFCandCleanerforJets",
58 )
59 
60 kt4PFJetsForRho = cms.EDProducer(
61  "FastjetJetProducer",
62  HiPFJetParameters,
63  AnomalousCellParameters,
64  jetAlgorithm = cms.string("Kt"),
65  rParam = cms.double(0.4)
66 )
67 kt4PFJetsForRho.src = 'particleFlow'
68 kt4PFJetsForRho.doAreaFastjet = True
69 kt4PFJetsForRho.jetPtMin = 0.0
70 kt4PFJetsForRho.GhostArea = 0.005
71 
72 from RecoHI.HiJetAlgos.hiFJRhoProducer import hiFJRhoProducer
73 
74 import RecoHI.HiJetAlgos.hiFJRhoFlowModulationProducer_cfi as _mod
75 hiFJRhoFlowModulation = _mod.hiFJRhoFlowModulationProducer.clone()
76 
77 import RecoHI.HiJetAlgos.hiPuRhoProducer_cfi as _mod
78 hiPuRho = _mod.hiPuRhoProducer.clone()
79 
80 akCs4PFJets = cms.EDProducer(
81  "CSJetProducer",
82  HiPFJetParameters,
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"),
95 )
96 akCs4PFJets.src = 'particleFlow'
97 akCs4PFJets.doAreaFastjet = True
98 akCs4PFJets.jetPtMin = 0.0
99 akCs4PFJets.useExplicitGhosts = cms.bool(True)
100 akCs4PFJets.GhostArea = 0.005
101 
102 akCs3PFJets = akCs4PFJets.clone(rParam = 0.3)
103 
104 hiRecoPFJetsTask = cms.Task(
105  PFTowers,
106  akPu3PFJets,
107  akPu4PFJets,
108  akPu5PFJets,
109  hiPFCandCleanerforJets,
110  kt4PFJetsForRho,
111  ak4PFJetsForFlow,
112  hiFJRhoProducer,
113  hiPuRho,
114  hiFJRhoFlowModulation,
115  akCs3PFJets,
116  akCs4PFJets
117  )
118 hiRecoPFJets = cms.Sequence(hiRecoPFJetsTask)
119 
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')
AnomalousCellParameters_cfi
HiPFJetParameters_cff