CMS 3D CMS Logo

RecoJets_EventContent_cff.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
2 
3 #Full Event content
4 RecoJetsFEVT = cms.PSet(
5  outputCommands = cms.untracked.vstring('keep recoCaloJets_*_*_*',
6  'keep recoPFJets_*_*_*',
7  'keep recoTrackJets_*_*_*',
8  'keep recoJPTJets_*_*_*',
9  'keep recoBasicJets_*_*_*',
10  'keep *_caloTowers_*_*',
11  'keep *_towerMaker_*_*',
12  'keep *_CastorTowerReco_*_*',
13  'keep recoRecoChargedRefCandidates_trackRefsForJets_*_*',
14  'keep *_kt4JetTracksAssociatorAtVertex_*_*',
15  'keep *_kt4JetTracksAssociatorAtCaloFace_*_*',
16  'keep *_kt4JetExtender_*_*',
17  'keep *_ak4JetTracksAssociatorAtVertex*_*_*',
18  'keep *_ak4JetTracksAssociatorAtCaloFace*_*_*',
19  'keep *_ak4JetExtender_*_*',
20  'keep *_ak4JetTracksAssociatorExplicit_*_*',
21  'keep *_ak7JetTracksAssociatorAtVertex*_*_*',
22  'keep *_ak7JetTracksAssociatorAtCaloFace*_*_*',
23  'keep *_ak7JetExtender_*_*',
24  'keep *_*JetID_*_*',
25  #keep jet area variables for jet colls in RECO
26  'keep *_kt4CaloJets_*_*',
27  'keep *_kt6CaloJets_*_*',
28  'keep *_ak4CaloJets_*_*',
29  'keep *_ak5CaloJets_*_*',
30  'keep *_ak7CaloJets_*_*',
31  'keep *_kt4PFJets_*_*',
32  'keep *_kt6PFJets_*_*',
33  'keep *_ak4PFJets_*_*',
34  'keep *_ak5PFJets_*_*',
35  'keep *_ak7PFJets_*_*',
36  'keep *_JetPlusTrackZSPCorJetAntiKt4_*_*',
37  'keep *_ak4TrackJets_*_*',
38  'keep *_kt4TrackJets_*_*',
39  'keep *_ak5CastorJets_*_*',
40  'keep *_ak5CastorJetID_*_*',
41  'keep *_ak7CastorJets_*_*',
42  'keep *_ak7CastorJetID_*_*',
43  'keep *_fixedGridRho*_*_*',
44  'keep *_ca*Mass_*_*',
45  'keep *_ak*Mass_*_*'
46  )
47 )
48 RecoGenJetsFEVT = cms.PSet(
49  outputCommands = cms.untracked.vstring('keep recoGenJets_*_*_*',
50  'keep *_genParticle_*_*')
51 )
52 #RECO content
53 RecoJetsRECO = cms.PSet(
54  outputCommands = cms.untracked.vstring('keep *_ak4CaloJets_*_*',
55  'keep *_ak4PFJets_*_*',
56  'keep *_ak4PFJetsCHS_*_*',
57  'keep *_ak8PFJetsCHS_*_*',
58  'keep *_ak8PFJetsCHSSoftDrop_*_*',
59  'keep *_cmsTopTagPFJetsCHS_*_*',
60  'keep *_JetPlusTrackZSPCorJetAntiKt4_*_*',
61  'keep *_ak4TrackJets_*_*',
62  'keep recoRecoChargedRefCandidates_trackRefsForJets_*_*',
63  'keep *_caloTowers_*_*',
64  'keep *_towerMaker_*_*',
65  'keep *_CastorTowerReco_*_*',
66  'keep *_ak4JetTracksAssociatorAtVertex_*_*',
67  'keep *_ak4JetTracksAssociatorAtVertexPF_*_*',
68  'keep *_ak4JetTracksAssociatorAtCaloFace_*_*',
69  'keep *_ak4JetTracksAssociatorExplicit_*_*',
70  'keep *_ak4JetExtender_*_*',
71  'keep *_ak4JetID_*_*',
72  'keep *_ak5CastorJets_*_*',
73  'keep *_ak5CastorJetID_*_*',
74  'keep *_ak7CastorJets_*_*',
75  'keep *_ak7CastorJetID_*_*',
76  #'keep *_fixedGridRho*_*_*',
77  'keep *_fixedGridRhoAll_*_*',
78  'keep *_fixedGridRhoFastjetAll_*_*',
79  'keep *_fixedGridRhoFastjetAllTmp_*_*',
80  'keep *_fixedGridRhoFastjetAllCalo_*_*',
81  'keep *_fixedGridRhoFastjetCentral_*_*',
82  'keep *_fixedGridRhoFastjetCentralCalo_*_*',
83  'keep *_fixedGridRhoFastjetCentralChargedPileUp_*_*',
84  'keep *_fixedGridRhoFastjetCentralNeutral_*_*',
85  'keep *_ak8PFJetsCHSSoftDropMass_*_*'
86  )
87 )
88 RecoGenJetsRECO = cms.PSet(
89  outputCommands = cms.untracked.vstring('keep *_ak4GenJets_*_*',
90  'keep *_ak8GenJets_*_*',
91  'keep *_ak4GenJetsNoNu_*_*',
92  'keep *_ak8GenJetsNoNu_*_*',
93  'keep *_genParticle_*_*')
94  )
95 #AOD content
96 RecoJetsAOD = cms.PSet(
97  outputCommands = cms.untracked.vstring('keep *_ak4CaloJets_*_*',
98  'keep *_ak4PFJetsCHS_*_*',
99  'keep *_ak8PFJetsCHS_*_*',
100  'keep *_ak8PFJetsCHSSoftDrop_*_*',
101  'keep *_cmsTopTagPFJetsCHS_*_*',
102  'keep *_ak4PFJets_*_*',
103  'keep *_JetPlusTrackZSPCorJetAntiKt4_*_*',
104  'keep *_ak4TrackJets_*_*',
105  'keep recoRecoChargedRefCandidates_trackRefsForJets_*_*',
106  'keep *_caloTowers_*_*',
107  'keep *_CastorTowerReco_*_*',
108  'keep *_ak4JetTracksAssociatorAtVertex_*_*',
109  'keep *_ak4JetTracksAssociatorAtVertexPF_*_*',
110  'keep *_ak4JetTracksAssociatorExplicit_*_*',
111  'keep *_ak4JetExtender_*_*',
112  'keep *_ak4JetID_*_*',
113  'keep *_ak5CastorJets_*_*',
114  'keep *_ak5CastorJetID_*_*',
115  'keep *_ak7CastorJets_*_*',
116  'keep *_ak7CastorJetID_*_*',
117  #'keep *_fixedGridRho*_*_*',
118  'keep *_fixedGridRhoAll_*_*',
119  'keep *_fixedGridRhoFastjetAll_*_*',
120  'keep *_fixedGridRhoFastjetAllTmp_*_*',
121  'keep *_fixedGridRhoFastjetCentral_*_*',
122  'keep *_fixedGridRhoFastjetAllCalo_*_*',
123  'keep *_fixedGridRhoFastjetCentralCalo_*_*',
124  'keep *_fixedGridRhoFastjetCentralChargedPileUp_*_*',
125  'keep *_fixedGridRhoFastjetCentralNeutral_*_*',
126  'drop doubles_*Jets_rhos_*',
127  'drop doubles_*Jets_sigmas_*',
128  'keep *_ak8PFJetsCHSSoftDropMass_*_*'
129  )
130  )
131 RecoGenJetsAOD = cms.PSet(
132  outputCommands = cms.untracked.vstring('keep *_ak4GenJets_*_*',
133  'keep *_ak8GenJets_*_*',
134  'keep *_ak4GenJetsNoNu_*_*',
135  'keep *_ak8GenJetsNoNu_*_*',
136  'keep *_genParticle_*_*'
137  )
138  )
139 
140 from Configuration.Eras.Modifier_pA_2016_cff import pA_2016
141 from Configuration.Eras.Modifier_peripheralPbPb_cff import peripheralPbPb
142 from Configuration.Eras.Modifier_pp_on_XeXe_2017_cff import pp_on_XeXe_2017
143 from Configuration.Eras.Modifier_pp_on_AA_2018_cff import pp_on_AA_2018
144 #products from regular pp which does not fit the normal AOD
145 for e in [pA_2016, peripheralPbPb, pp_on_XeXe_2017, pp_on_AA_2018]:
146  e.toModify( RecoJetsAOD.outputCommands,
147  func=lambda outputCommands: outputCommands.extend(['keep *_towerMaker_*_*'])
148  )
149 for e in [pp_on_XeXe_2017, pp_on_AA_2018]:
150  for ec in [RecoJetsAOD.outputCommands, RecoJetsRECO.outputCommands, RecoJetsFEVT.outputCommands]:
151  e.toModify( ec,
152  func=lambda outputCommands: outputCommands.extend(['keep recoCentrality*_hiCentrality_*_*',
153  'keep recoClusterCompatibility*_hiClusterCompatibility_*_*'
154  ])
155  )
156 
157 #HI-specific products: needed in AOD, propagate to more inclusive tiers as well
158 for ec in [RecoJetsAOD.outputCommands, RecoJetsRECO.outputCommands, RecoJetsFEVT.outputCommands]:
159  pA_2016.toModify( ec,
160  func=lambda outputCommands: outputCommands.extend(['keep recoCentrality*_pACentrality_*_*',
161  'keep *_hiFJGridEmptyAreaCalculator_*_*',
162  'keep *_hiFJRhoProducer_*_*'
163  ])
164  )
165 
166 #HI-specific products: needed in AOD, propagate to more inclusive tiers as well
167 for ec in [RecoJetsAOD.outputCommands, RecoJetsRECO.outputCommands, RecoJetsFEVT.outputCommands]:
168  peripheralPbPb.toModify( ec,
169  func=lambda outputCommands: outputCommands.extend(['keep recoCentrality*_pACentrality_*_*'])
170  )
171 
172 for ec in [RecoJetsAOD.outputCommands, RecoJetsRECO.outputCommands, RecoJetsFEVT.outputCommands]:
173  pp_on_AA_2018.toModify( ec,
174  func=lambda outputCommands: outputCommands.extend(['keep *_hiCentrality_*_*',
175  'keep *_hiFJRhoProducer_*_*',
176  'keep *_akPu3PFJets_*_*',
177  'keep *_akPu4PFJets_*_*',
178  'keep *_kt4PFJetsForRho_*_*',
179  'keep *_akCs4PFJets_*_*',
180  'keep *_akPu4CaloJets_*_*',
181  'drop *_caloTowers_*_*'
182 
183  ])
184  )