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 #products from regular pp which does not fit the normal AOD
57 for e in [pA_2016, peripheralPbPb, pp_on_XeXe_2017, pp_on_AA]:
58  e.toModify( RecoJetsAOD.outputCommands,
59  func=lambda outputCommands: outputCommands.extend(['keep *_towerMaker_*_*'])
60  )
61 for e in [pp_on_XeXe_2017, pp_on_AA, run3_upc]:
62  e.toModify( RecoJetsAOD.outputCommands,
63  func=lambda outputCommands: outputCommands.extend(['keep recoCentrality*_hiCentrality_*_*',
64  'keep recoClusterCompatibility*_hiClusterCompatibility_*_*'
65  ])
66  )
67 #HI-specific products: needed in AOD, propagate to more inclusive tiers as well
68 pA_2016.toModify( RecoJetsAOD.outputCommands,
69  func=lambda outputCommands: outputCommands.extend(['keep recoCentrality*_pACentrality_*_*',
70  'keep *_hiFJGridEmptyAreaCalculator_*_*',
71  'keep *_hiFJRhoProducer_*_*'
72  ])
73  )
74 #HI-specific products: needed in AOD, propagate to more inclusive tiers as well
75 peripheralPbPb.toModify( RecoJetsAOD.outputCommands,
76  func=lambda outputCommands: outputCommands.extend(['keep recoCentrality*_pACentrality_*_*'])
77  )
78 
79 pp_on_AA.toModify( RecoJetsAOD.outputCommands,
80  func=lambda outputCommands: outputCommands.extend(['keep *_hiCentrality_*_*',
81  'keep *_hiFJRhoProducer_*_*',
82  'keep *_akPu3PFJets_*_*',
83  'keep *_akPu4PFJets_*_*',
84  'keep *_kt4PFJetsForRho_*_*',
85  'keep *_akCs4PFJets_*_*',
86  'keep *_akPu4CaloJets_*_*',
87  'drop *_caloTowers_*_*'
88  ])
89  )
90 #RECO content
91 RecoJetsRECO = cms.PSet(
92  outputCommands = cms.untracked.vstring('keep *_ak4CaloJets_*_*',
93  'keep *_ak4PFJets_*_*',
94  'keep *_ak4TrackJets_*_*',
95  'keep recoRecoChargedRefCandidates_trackRefsForJets_*_*',
96  'keep *_towerMaker_*_*',
97  'keep *_ak4JetTracksAssociatorAtCaloFace_*_*',
98  'keep *_ak5CastorJets_*_*',
99  'keep *_ak7CastorJets_*_*',
100  )
101 )
102 RecoJetsRECO.outputCommands.extend(RecoJetsAOD.outputCommands)
103 
104 RecoGenJetsRECO = cms.PSet(
105  outputCommands = cms.untracked.vstring()
106 )
107 RecoGenJetsRECO.outputCommands.extend(RecoGenJetsAOD.outputCommands)
108 #Full Event content
109 RecoJetsFEVT = cms.PSet(
110  outputCommands = cms.untracked.vstring('keep recoCaloJets_*_*_*',
111  'keep recoPFJets_*_*_*',
112  'keep recoTrackJets_*_*_*',
113  'keep recoJPTJets_*_*_*',
114  'keep recoBasicJets_*_*_*',
115  'keep *_kt4JetTracksAssociatorAtVertex_*_*',
116  'keep *_kt4JetTracksAssociatorAtCaloFace_*_*',
117  'keep *_kt4JetExtender_*_*',
118  'keep *_ak7JetTracksAssociatorAtVertex*_*_*',
119  'keep *_ak7JetTracksAssociatorAtCaloFace*_*_*',
120  'keep *_ak7JetExtender_*_*',
121  #keep jet area variables for jet colls in RECO
122  'keep *_kt4CaloJets_*_*',
123  'keep *_kt6CaloJets_*_*',
124  'keep *_ak5CaloJets_*_*',
125  'keep *_ak7CaloJets_*_*',
126  'keep *_kt4PFJets_*_*',
127  'keep *_kt6PFJets_*_*',
128  'keep *_ak5PFJets_*_*',
129  'keep *_ak7PFJets_*_*',
130  'keep *_kt4TrackJets_*_*',
131  'keep *_ca*Mass_*_*',
132  'keep *_ak*Mass_*_*'
133  )
134 )
135 RecoJetsFEVT.outputCommands.extend(RecoJetsRECO.outputCommands)
136 
137 RecoGenJetsFEVT = cms.PSet(
138  outputCommands = cms.untracked.vstring('keep recoGenJets_ak*_*_*')
139 )
140 RecoGenJetsFEVT.outputCommands.extend(RecoGenJetsRECO.outputCommands)