CMS 3D CMS Logo

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