test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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.StandardSequences.Eras import eras
141 
142 #products from regular pp which does not fit the normal AOD
143 for e in [eras.pA_2016, eras.peripheralPbPb]:
144  e.toModify( RecoJetsAOD.outputCommands,
145  func=lambda outputCommands: outputCommands.extend(['keep *_towerMaker_*_*'])
146  )
147 
148 #HI-specific products: needed in AOD, propagate to more inclusive tiers as well
149 for ec in [RecoJetsAOD.outputCommands, RecoJetsRECO.outputCommands, RecoJetsFEVT.outputCommands]:
150  eras.pA_2016.toModify( ec,
151  func=lambda outputCommands: outputCommands.extend(['keep recoCentrality*_pACentrality_*_*',
152  'keep *_hiFJGridEmptyAreaCalculator_*_*',
153  'keep *_hiFJRhoProducer_*_*'
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  eras.peripheralPbPb.toModify( ec,
160  func=lambda outputCommands: outputCommands.extend(['keep recoCentrality*_pACentrality_*_*'])
161  )
162