CMS 3D CMS Logo

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