CMS 3D CMS Logo

RecoPFJets_cff.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
2 
3 from RecoJets.JetProducers.sc5PFJets_cfi import sisCone5PFJets
4 from RecoJets.JetProducers.ic5PFJets_cfi import iterativeCone5PFJets
5 from RecoJets.JetProducers.ak5PFJets_cfi import ak5PFJets
6 from RecoJets.JetProducers.ak4PFJets_cfi import ak4PFJets
7 from RecoJets.JetProducers.ak5PFJetsTrimmed_cfi import ak5PFJetsTrimmed
8 from RecoJets.JetProducers.ak5PFJetsFiltered_cfi import ak5PFJetsFiltered, ak5PFJetsMassDropFiltered
9 from RecoJets.JetProducers.ak5PFJetsPruned_cfi import ak5PFJetsPruned
10 from RecoJets.JetProducers.ak5PFJetsSoftDrop_cfi import ak5PFJetsSoftDrop
11 from RecoJets.JetProducers.ak8PFJetsCS_cfi import ak8PFJetsCSConstituents, ak8PFJetsCS, ak8PFJetsCSPruned, ak8PFJetsCSTrimmed, ak8PFJetsCSFiltered
13 from RecoJets.JetProducers.gk5PFJets_cfi import gk5PFJets
14 from RecoJets.JetProducers.kt4PFJets_cfi import kt4PFJets
15 from RecoJets.JetProducers.ca4PFJets_cfi import ca4PFJets
16 from RecoJets.JetProducers.fixedGridRhoProducer_cfi import fixedGridRhoAll
17 from RecoJets.JetProducers.fixedGridRhoProducerFastjet_cfi import fixedGridRhoFastjetAll
19 from RecoJets.JetProducers.ak8PFJetsCHS_groomingValueMaps_cfi import ak8PFJetsCHSPrunedMass, ak8PFJetsCHSFilteredMass, ak8PFJetsCHSTrimmedMass, ak8PFJetsCHSSoftDropMass
20 from RecoJets.JetProducers.ca8PFJetsCHS_groomingValueMaps_cfi import ca8PFJetsCHSPrunedMass, ca8PFJetsCHSFilteredMass, ca8PFJetsCHSTrimmedMass, ca8PFJetsCHSSoftDropMass
21 from CommonTools.PileupAlgos.Puppi_cff import puppi
22 from CommonTools.PileupAlgos.softKiller_cfi import softKiller
23 from RecoJets.JetProducers.ak4PFJetsPuppi_cfi import ak4PFJetsPuppi
24 from RecoJets.JetProducers.ak8PFJetsPuppi_cfi import ak8PFJetsPuppi
25 from RecoJets.JetProducers.ak4PFJetsSK_cfi import ak4PFJetsSK
26 
27 sisCone7PFJets = sisCone5PFJets.clone( rParam = 0.7 )
28 ak7PFJets = ak5PFJets.clone( rParam = 0.7 )
29 ak8PFJets = ak5PFJets.clone( rParam = 0.8 )
30 gk7PFJets = gk5PFJets.clone( rParam = 0.7 )
31 kt6PFJets = kt4PFJets.clone( rParam = 0.6 )
32 ca8PFJets = ca4PFJets.clone( rParam = 0.8 )
33 
34 #compute areas for Fastjet PU subtraction
35 kt6PFJets.doRhoFastjet = True
36 kt6PFJets.doAreaFastjet = True
37 #use active areas and not Voronoi tessellation for the moment
38 kt6PFJets.voronoiRfact = 0.9
39 ak4PFJets.doAreaFastjet = True
40 ak5PFJets.doAreaFastjet = True
41 ak5PFJetsTrimmed.doAreaFastjet = True
42 ak7PFJets.doAreaFastjet = True
43 ak8PFJets.doAreaFastjet = True
44 ak8PFJetsPuppi.doAreaFastjet = True
45 ak4PFJetsSK.doAreaFastjet = True
46 
47 kt6PFJetsCentralChargedPileUp = kt6PFJets.clone(
48  src = cms.InputTag("pfPileUpAllChargedParticles"),
49  Ghost_EtaMax = cms.double(3.1),
50  Rho_EtaMax = cms.double(2.5)
51  )
52 
53 kt6PFJetsCentralNeutral = kt6PFJets.clone(
54  src = cms.InputTag("pfAllNeutralHadronsAndPhotons"),
55  Ghost_EtaMax = cms.double(3.1),
56  Rho_EtaMax = cms.double(2.5),
57  inputEtMin = cms.double(0.5)
58  )
59 
60 
61 kt6PFJetsCentralNeutralTight = kt6PFJetsCentralNeutral.clone(
62  inputEtMin = cms.double(1.0)
63  )
64 
65 
66 fixedGridRhoFastjetCentral = fixedGridRhoFastjetAll.clone(
67  maxRapidity = cms.double(2.5)
68  )
69 
70 fixedGridRhoFastjetCentralChargedPileUp = fixedGridRhoFastjetAll.clone(
71  pfCandidatesTag = "pfPileUpAllChargedParticles",
72  maxRapidity = 2.5
73  )
74 
75 fixedGridRhoFastjetCentralNeutral = fixedGridRhoFastjetAll.clone(
76  pfCandidatesTag = "pfAllNeutralHadronsAndPhotons",
77  maxRapidity = 2.5
78  )
79 
80 
81 
82 ak8PFJetsCHSConstituents = cms.EDProducer("PFJetConstituentSelector",
83  src = cms.InputTag("ak8PFJetsCHS"),
84  cut = cms.string("pt > 100.0 && abs(rapidity()) < 2.4")
85  )
86 
87 
88 # Advanced Algorithms for AK4, AK5, AK8 and CA8 :
89 # - CHS, ungroomed
90 # - CHS, pruned
91 # - CHS, filtered
92 # - CHS, trimmed
93 ak5PFJetsCHS = ak5PFJets.clone(
94  src = cms.InputTag("pfNoPileUpJME")
95  )
96 
97 ak5PFJetsCHSPruned = ak5PFJetsPruned.clone(
98  src = cms.InputTag("pfNoPileUpJME")
99  )
100 
101 ak5PFJetsCHSFiltered = ak5PFJetsFiltered.clone(
102  src = cms.InputTag("pfNoPileUpJME")
103  )
104 
105 ak5PFJetsCHSTrimmed = ak5PFJetsTrimmed.clone(
106  src = cms.InputTag("pfNoPileUpJME")
107  )
108 
109 ak5PFJetsCHSSoftDrop = ak5PFJetsSoftDrop.clone(
110  src = cms.InputTag("pfNoPileUpJME")
111  )
112 
113 
114 ak4PFJetsCHS = ak5PFJetsCHS.clone(
115  rParam = 0.4,
116  jetPtMin = 5.0
117  )
118 
119 ak8PFJetsCHS = ak5PFJetsCHS.clone(
120  rParam = 0.8,
121  jetPtMin = 50.0
122  )
123 
124 ak8PFJetsCHSPruned = ak5PFJetsCHSPruned.clone(
125  rParam = 0.8,
126  jetPtMin = 100.0
127  )
128 
129 ak8PFJetsCHSFiltered = ak5PFJetsCHSFiltered.clone(
130  rParam = 0.8,
131  jetPtMin = 15.0
132  )
133 
134 ak8PFJetsCHSTrimmed = ak5PFJetsCHSTrimmed.clone(
135  rParam = 0.8,
136  jetPtMin = 15.0
137  )
138 
139 ak8PFJetsCHSSoftDrop = ak5PFJetsCHSSoftDrop.clone(
140  rParam = 0.8,
141  jetPtMin = 100.0,
142  R0 = 0.8
143  )
144 
145 ak8PFJetsPuppiSoftDrop = ak8PFJetsCHSSoftDrop.clone(
146  src = cms.InputTag("puppi")
147  )
148 
149 
150 
151 ca8PFJetsCHS = ak8PFJetsCHS.clone(
152  jetAlgorithm = cms.string("CambridgeAachen")
153  )
154 
155 ca8PFJetsCHSPruned = ak8PFJetsCHSPruned.clone(
156  jetAlgorithm = cms.string("CambridgeAachen")
157  )
158 
159 ca8PFJetsCHSFiltered = ak8PFJetsCHSFiltered.clone(
160  jetAlgorithm = cms.string("CambridgeAachen")
161  )
162 
163 ca8PFJetsCHSTrimmed = ak8PFJetsCHSTrimmed.clone(
164  jetAlgorithm = cms.string("CambridgeAachen")
165  )
166 
167 
168 ca8PFJetsCHSSoftDrop = ak8PFJetsCHSSoftDrop.clone(
169  jetAlgorithm = cms.string("CambridgeAachen")
170  )
171 
172 
173 
174 # Higgs taggers
175 ca15PFJetsCHSMassDropFiltered = ak5PFJetsMassDropFiltered.clone(
176  jetAlgorithm = cms.string("CambridgeAachen"),
177  src = cms.InputTag("pfNoPileUpJME"),
178  rParam = 1.5,
179  jetPtMin=100.0
180  )
181 
182 ca15PFJetsCHSFiltered = ak5PFJetsFiltered.clone(
183  jetAlgorithm = cms.string("CambridgeAachen"),
184  src = cms.InputTag("pfNoPileUpJME"),
185  rParam = 1.5,
186  jetPtMin=100.0
187  )
188 
189 cmsTopTagPFJetsCHS.src = cms.InputTag("ak8PFJetsCHSConstituents", "constituents")
190 hepTopTagPFJetsCHS.src = cms.InputTag("ak8PFJetsCHSConstituents", "constituents")
191 
192 
193 
194 recoPFJets =cms.Sequence(fixedGridRhoAll+
195  fixedGridRhoFastjetAll+
196  fixedGridRhoFastjetCentral+
197  fixedGridRhoFastjetCentralChargedPileUp+
198  fixedGridRhoFastjetCentralNeutral+
199  ak4PFJets+
200  pfNoPileUpJMESequence+
201  ak4PFJetsCHS+
202  ak8PFJetsCHS+
203  ak8PFJetsCHSConstituents+
204  ak8PFJetsCHSSoftDrop+
205  ak8PFJetsCHSSoftDropMass+
206  cmsTopTagPFJetsCHS
207  )
208 
209 recoAllPFJets=cms.Sequence(sisCone5PFJets+sisCone7PFJets+
210  iterativeCone5PFJets+
211  kt4PFJets+kt6PFJets+
212  kt6PFJetsCentralChargedPileUp+
213  kt6PFJetsCentralNeutral+
214  kt6PFJetsCentralNeutralTight+
215  fixedGridRhoAll+
216  fixedGridRhoFastjetAll+
217  fixedGridRhoFastjetCentral+
218  fixedGridRhoFastjetCentralChargedPileUp+
219  fixedGridRhoFastjetCentralNeutral+
220  iterativeCone5PFJets+
221  ak4PFJets+
222  ak5PFJets+ak7PFJets+ak8PFJets+
223  gk5PFJets+gk7PFJets+
224  ca4PFJets+ca8PFJets+
225  pfNoPileUpJMESequence+
226  ak5PFJetsCHS+
227  ak5PFJetsCHSPruned+
228  ak5PFJetsCHSFiltered+
229  ak5PFJetsCHSTrimmed+
230  ak5PFJetsCHSSoftDrop+
231  ak4PFJetsCHS+
232  ak8PFJetsCHS+
233  ak8PFJetsCHSPruned+
234  ak8PFJetsCHSFiltered+
235  ak8PFJetsCHSTrimmed+
236  ak8PFJetsCHSSoftDrop+
237  ak8PFJetsCHSPrunedMass+
238  ak8PFJetsCHSTrimmedMass+
239  ak8PFJetsCHSSoftDropMass+
240  ak8PFJetsCHSFilteredMass+
241  ca8PFJetsCHS+
242  ca8PFJetsCHSPruned+
243  ca8PFJetsCHSFiltered+
244  ca8PFJetsCHSTrimmed+
245  ca8PFJetsCHSSoftDrop+
246  cmsTopTagPFJetsCHS+
247  hepTopTagPFJetsCHS+
248  ca15PFJetsCHSMassDropFiltered+
249  ca15PFJetsCHSFiltered+
250  ak8PFJetsCS+
251  ak8PFJetsCSConstituents+
252  ak8PFJetsCSPruned+
253  ak8PFJetsCSTrimmed+
254  ak8PFJetsCSFiltered
255  )
256 
257 
258 recoPFJetsWithSubstructure=cms.Sequence(
259  fixedGridRhoAll+
260  fixedGridRhoFastjetAll+
261  fixedGridRhoFastjetCentral+
262  fixedGridRhoFastjetCentralChargedPileUp+
263  fixedGridRhoFastjetCentralNeutral+
264  ak4PFJets+
265  ak5PFJets+ak7PFJets+ak8PFJets+
266  ca4PFJets+ca8PFJets+
267  pfNoPileUpJMESequence+
268  ak5PFJetsCHS+
269  ak5PFJetsCHSPruned+
270  ak5PFJetsCHSFiltered+
271  ak5PFJetsCHSTrimmed+
272  ak5PFJetsCHSSoftDrop+
273  ak4PFJetsCHS+
274  ak8PFJetsCHS+
275  ak8PFJetsCHSPruned+
276  ak8PFJetsCHSFiltered+
277  ak8PFJetsCHSTrimmed+
278  ak8PFJetsCHSSoftDrop+
279  ak8PFJetsCHSConstituents+
280  ak8PFJetsCHSPrunedMass+
281  ak8PFJetsCHSTrimmedMass+
282  ak8PFJetsCHSSoftDropMass+
283  ak8PFJetsCHSFilteredMass+
284  ca8PFJetsCHS+
285  ca8PFJetsCHSPruned+
286  ca8PFJetsCHSFiltered+
287  ca8PFJetsCHSTrimmed+
288  ca8PFJetsCHSSoftDrop+
289  cmsTopTagPFJetsCHS+
290  hepTopTagPFJetsCHS+
291  ca15PFJetsCHSMassDropFiltered+
292  ca15PFJetsCHSFiltered+
293  ak8PFJetsCS+
294  ak8PFJetsCSConstituents+
295  ak8PFJetsCSPruned+
296  ak8PFJetsCSTrimmed+
297  ak8PFJetsCSFiltered+
298  puppi+
299  ak4PFJetsPuppi+
300  softKiller+
301  ak4PFJetsSK
302  )