CMS 3D CMS Logo

RecoJets_EventContent_cff.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
2 
3 #AOD content
4 RecoJetsAOD = cms.PSet(
5  outputCommands = cms.untracked.vstring('keep recoCaloJets_ak4CaloJets_*_*',
6  'keep *_ak4CaloJets_rho_*',
7  'keep *_ak4CaloJets_sigma_*',
8  'keep *_ak4PFJetsCHS_*_*',
9  'keep floatedmValueMap_puppi_*_*',
10  'keep *_ak4PFJetsPuppi_*_*',
11  'keep *_ak8PFJetsPuppi_*_*',
12  'keep *_ak8PFJetsPuppiSoftDrop_*_*',
13  'keep recoPFJets_ak4PFJets_*_*',
14  'keep *_ak4PFJets_rho_*',
15  'keep *_ak4PFJets_sigma_*',
16  'keep *_JetPlusTrackZSPCorJetAntiKt4_*_*',
17  'keep *_caloTowers_*_*',
18  'keep *_CastorTowerReco_*_*',
19  'keep *_ak4JetTracksAssociatorAtVertex_*_*',
20  'keep *_ak4JetTracksAssociatorAtVertexPF_*_*',
21  'keep *_ak4JetTracksAssociatorExplicit_*_*',
22  'keep *_ak4JetExtender_*_*',
23  'keep *_ak4JetID_*_*',
24  'keep recoBasicJets_ak5CastorJets_*_*',
25  'keep *_ak5CastorJets_rho_*',
26  'keep *_ak5CastorJets_sigma_*',
27  'keep *_ak5CastorJetID_*_*',
28  'keep recoBasicJets_ak7CastorJets_*_*',
29  'keep *_ak7CastorJets_rho_*',
30  'keep *_ak7CastorJets_sigma_*',
31  'keep *_ak7CastorJetID_*_*',
32  'keep *_fixedGridRhoAll_*_*',
33  'keep *_fixedGridRhoFastjetAll_*_*',
34  'keep *_fixedGridRhoFastjetAllTmp_*_*',
35  'keep *_fixedGridRhoFastjetCentral_*_*',
36  'keep *_fixedGridRhoFastjetAllCalo_*_*',
37  'keep *_fixedGridRhoFastjetCentralCalo_*_*',
38  'keep *_fixedGridRhoFastjetCentralChargedPileUp_*_*',
39  'keep *_fixedGridRhoFastjetCentralNeutral_*_*',
40  'keep *_ak8PFJetsPuppiSoftDropMass_*_*'
41  )
42 )
43 RecoGenJetsAOD = cms.PSet(
44  outputCommands = cms.untracked.vstring('keep *_ak4GenJets_*_*',
45  'keep *_ak8GenJets_*_*',
46  'keep *_ak4GenJetsNoNu_*_*',
47  'keep *_ak8GenJetsNoNu_*_*',
48  'keep *_genParticle_*_*'
49  )
50 )
51 from Configuration.Eras.Modifier_pA_2016_cff import pA_2016
52 from Configuration.Eras.Modifier_peripheralPbPb_cff import peripheralPbPb
53 from Configuration.Eras.Modifier_pp_on_XeXe_2017_cff import pp_on_XeXe_2017
54 from Configuration.ProcessModifiers.pp_on_AA_cff import pp_on_AA
55 from Configuration.Eras.Modifier_run3_upc_cff import run3_upc
56 from Configuration.Eras.Modifier_ppRef_2024_cff import ppRef_2024
57 from Configuration.ProcessModifiers.phase2_pp_on_AA_cff import phase2_pp_on_AA
58 #products from regular pp which does not fit the normal AOD
59 for e in [pA_2016, peripheralPbPb, pp_on_XeXe_2017, pp_on_AA]:
60  e.toModify( RecoJetsAOD.outputCommands,
61  func=lambda outputCommands: outputCommands.extend(['keep *_towerMaker_*_*'])
62  )
63 for e in [pp_on_XeXe_2017, pp_on_AA, run3_upc, phase2_pp_on_AA]:
64  e.toModify( RecoJetsAOD.outputCommands,
65  func=lambda outputCommands: outputCommands.extend(['keep recoCentrality*_hiCentrality_*_*',
66  'keep recoClusterCompatibility*_hiClusterCompatibility_*_*'
67  ])
68  )
69 ppRef_2024.toModify( RecoJetsAOD.outputCommands,
70  func=lambda outputCommands: outputCommands.extend(['keep recoClusterCompatibility*_hiClusterCompatibility_*_*'])
71  )
72 #HI-specific products: needed in AOD, propagate to more inclusive tiers as well
73 pA_2016.toModify( RecoJetsAOD.outputCommands,
74  func=lambda outputCommands: outputCommands.extend(['keep recoCentrality*_pACentrality_*_*',
75  'keep *_hiFJGridEmptyAreaCalculator_*_*',
76  'keep *_hiFJRhoProducer_*_*'
77  ])
78  )
79 #HI-specific products: needed in AOD, propagate to more inclusive tiers as well
80 peripheralPbPb.toModify( RecoJetsAOD.outputCommands,
81  func=lambda outputCommands: outputCommands.extend(['keep recoCentrality*_pACentrality_*_*'])
82  )
83 
84 pp_on_AA.toModify( RecoJetsAOD.outputCommands,
85  func=lambda outputCommands: outputCommands.extend(['keep *_hiCentrality_*_*',
86  'keep *_hiFJRhoProducer_*_*',
87  'keep *_akPu3PFJets_*_*',
88  'keep *_akPu4PFJets_*_*',
89  'keep *_kt4PFJetsForRho_*_*',
90  'keep *_akCs4PFJets_*_*',
91  'keep *_akPu4CaloJets_*_*',
92  'drop *_caloTowers_*_*'
93  ])
94  )
95 #RECO content
96 RecoJetsRECO = cms.PSet(
97  outputCommands = cms.untracked.vstring('keep *_ak4CaloJets_*_*',
98  'keep *_ak4PFJets_*_*',
99  'keep *_ak4TrackJets_*_*',
100  'keep recoRecoChargedRefCandidates_trackRefsForJets_*_*',
101  'keep *_towerMaker_*_*',
102  'keep *_ak4JetTracksAssociatorAtCaloFace_*_*',
103  'keep *_ak5CastorJets_*_*',
104  'keep *_ak7CastorJets_*_*',
105  )
106 )
107 RecoJetsRECO.outputCommands.extend(RecoJetsAOD.outputCommands)
108 
109 RecoGenJetsRECO = cms.PSet(
110  outputCommands = cms.untracked.vstring()
111 )
112 RecoGenJetsRECO.outputCommands.extend(RecoGenJetsAOD.outputCommands)
113 #Full Event content
114 RecoJetsFEVT = cms.PSet(
115  outputCommands = cms.untracked.vstring('keep recoCaloJets_*_*_*',
116  'keep recoPFJets_*_*_*',
117  'keep recoTrackJets_*_*_*',
118  'keep recoJPTJets_*_*_*',
119  'keep recoBasicJets_*_*_*',
120  'keep *_kt4JetTracksAssociatorAtVertex_*_*',
121  'keep *_kt4JetTracksAssociatorAtCaloFace_*_*',
122  'keep *_kt4JetExtender_*_*',
123  'keep *_ak7JetTracksAssociatorAtVertex*_*_*',
124  'keep *_ak7JetTracksAssociatorAtCaloFace*_*_*',
125  'keep *_ak7JetExtender_*_*',
126  #keep jet area variables for jet colls in RECO
127  'keep *_kt4CaloJets_*_*',
128  'keep *_kt6CaloJets_*_*',
129  'keep *_ak5CaloJets_*_*',
130  'keep *_ak7CaloJets_*_*',
131  'keep *_kt4PFJets_*_*',
132  'keep *_kt6PFJets_*_*',
133  'keep *_ak5PFJets_*_*',
134  'keep *_ak7PFJets_*_*',
135  'keep *_kt4TrackJets_*_*',
136  'keep *_ca*Mass_*_*',
137  'keep *_ak*Mass_*_*'
138  )
139 )
140 RecoJetsFEVT.outputCommands.extend(RecoJetsRECO.outputCommands)
141 
142 RecoGenJetsFEVT = cms.PSet(
143  outputCommands = cms.untracked.vstring('keep recoGenJets_ak*_*_*')
144 )
145 RecoGenJetsFEVT.outputCommands.extend(RecoGenJetsRECO.outputCommands)