CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
EventContent_cff.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
2 #####################################################################
3 #
4 # Event Content definition
5 #
6 #####################################################################
8 
9 #####################################################################
10 # The simHits part is definitely different in FastSim
11 #####################################################################
12 
13 
14 
15 FastSimCoreFEVT = cms.PSet(
16  outputCommands = cms.untracked.vstring('keep *_famosPileUp_*_*',
17  'keep *_famosSimHits_*_*',
18  'drop *_g4SimHits_*_*', # if an EDAlias creates this, it must be dropped to avoid a clash
19  'keep *_MuonSimHits_*_*')
20 )
21 
22 FastSimCoreFEVT.outputCommands.extend(GeneratorInterfaceRAW.outputCommands)
23 
24 
25 #RECO content
26 FastSimCoreRECO = cms.PSet(
27  outputCommands = cms.untracked.vstring('keep SimTracks_famosSimHits_*_*',
28  'keep SimVertexs_famosSimHits_*_*')
29 )
30 FastSimCoreRECO.outputCommands.extend(GeneratorInterfaceRECO.outputCommands)
31 
32 #AOD content
33 FastSimCoreAOD = cms.PSet(
34  outputCommands = cms.untracked.vstring()
35 )
36 FastSimCoreAOD.outputCommands.extend(GeneratorInterfaceAOD.outputCommands)
37 
38 #####################################################################
39 # The Tracker RecHits are also different
40 #####################################################################
41 
42 #Full Event content
43 FastSimRecoLocalTrackerFEVT = cms.PSet(
44  outputCommands = cms.untracked.vstring('keep *_siTrackerGaussianSmearingRecHits_*_*')
45 )
46 #RECO content
47 FastSimRecoLocalTrackerRECO = cms.PSet(
48  outputCommands = cms.untracked.vstring()
49 )
50 #AOD content
51 FastSimRecoLocalTrackerAOD = cms.PSet(
52  outputCommands = cms.untracked.vstring()
53 )
54 
55 
56 #####################################################################
57 # CaloJet+Tracks are apparently saved nowhere
58 # Let's save them in the fast simulation (AOD only)
59 #####################################################################
60 FastSimCJPT = cms.PSet(
61  outputCommands = cms.untracked.vstring(
62  'keep *_JetPlusTrackZSPCorJetIcone5_*_*',
63  'keep *_ZSPJetCorJetIcone5_*_*'
64  )
65 )
66 
67 #####################################################################
68 # The Calo RecHits are also different
69 #####################################################################
70 
71 #Full Event content
72 FastSimRecoLocalCaloFEVT = cms.PSet(
73  outputCommands = cms.untracked.vstring('keep *_caloRecHits_*_*',
74  'keep *_hcalRecHits_*_*',
75  'keep EBDigiCollection_ecalRecHit_*_*',
76  'keep EEDigiCollection_ecalRecHit_*_*')
77 # 'keep *_particleFlowRecHit_*_*')
78 )
79 
80 #RECO content
81 FastSimRecoLocalCaloRECO = cms.PSet(
82  outputCommands = cms.untracked.vstring('keep *_caloRecHits_*_*',
83  'keep *_hcalRecHits_*_*',
84  'keep EBDigiCollection_ecalRecHit_*_*',
85  'keep EEDigiCollection_ecalRecHit_*_*')
86 # 'keep *_particleFlowRecHit_*_*')
87 )
88 
89 #AOD content
90 FastSimRecoLocalCaloAOD = cms.PSet(
91  outputCommands = cms.untracked.vstring()
92 )
93 
94 #####################################################################
95 # The Tracker Tracks are also different
96 #####################################################################
97 
98 #Full Event content
99 FastSimRecoTrackerFEVT = cms.PSet(
100  outputCommands = cms.untracked.vstring('keep *_iterativeGSWithMaterialTracks_*_*',
101  'keep *_generalTracksBeforeMixing_*_*')
102  )
103 
104 #RECO content
105 FastSimRecoTrackerRECO = cms.PSet(
106  outputCommands = cms.untracked.vstring('keep *_iterativeGSWithMaterialTracks_*_*',
107  'keep *_generalTracksBeforeMixing_*_*')
108 )
109 
110 #AOD content
111 FastSimRecoTrackerAOD = cms.PSet(
112  outputCommands = cms.untracked.vstring('keep recoTracks_iterativeGSWithMaterialTracks_*_*',
113  #'keep *_generalTracksBeforeMixing_*_*'
114  )
115 )
116 
117 
118 #####################################################################
119 # new Particle Flow Collection with "Fake" Neutral Hadrons
120 #####################################################################
121 
122 #Full Event content
123 FastSimParticleFlowFEVT = cms.PSet(
124  outputCommands = cms.untracked.vstring('keep recoPFCandidates_FSparticleFlow_*_*',
125  #stuff added for two-step processing (simWithSomeReco followed by reconstructionHighLevel):
126  'keep *_muon*_*_*',
127  'keep *_towerMaker*_*_*',
128  'keep *_particleFlow*_*_*',
129  'keep *_pf*_*_*',
130  'keep *_*DetId*_*_*')
131 )
132 
133 #RECO content
134 FastSimParticleFlowRECO = cms.PSet(
135  outputCommands = cms.untracked.vstring('keep recoPFCandidates_FSparticleFlow_*_*')
136 )
137 
138 #AOD content
139 FastSimParticleFlowAOD = cms.PSet(
140  outputCommands = cms.untracked.vstring('keep recoPFCandidates_FSparticleFlow_*_*')
141 )
142 
143 
144 
145 
146 # Addition to the event content
147 # We don't need to remove anything, as the corresponding products are
148 # not produced anyway in a FastSimulation job.
149 
150 #####################################################################
151 #
152 # AOD Data Tier definition
153 #
154 #####################################################################
155 
156 AODEventContent.outputCommands.extend(FastSimRecoLocalTrackerAOD.outputCommands)
157 AODEventContent.outputCommands.extend(FastSimRecoLocalCaloAOD.outputCommands)
158 AODEventContent.outputCommands.extend(FastSimRecoTrackerAOD.outputCommands)
159 AODEventContent.outputCommands.extend(FastSimParticleFlowAOD.outputCommands)
160 
161 #####################################################################
162 #
163 # AODSIM Data Tier definition
164 #
165 #####################################################################
166 
167 AODSIMEventContent.outputCommands.extend(FastSimCoreAOD.outputCommands)
168 AODSIMEventContent.outputCommands.extend(FastSimRecoLocalTrackerAOD.outputCommands)
169 AODSIMEventContent.outputCommands.extend(FastSimRecoLocalCaloAOD.outputCommands)
170 AODSIMEventContent.outputCommands.extend(FastSimRecoTrackerAOD.outputCommands)
171 AODSIMEventContent.outputCommands.extend(FastSimParticleFlowAOD.outputCommands)
172 
173 #####################################################################
174 #
175 # RECO Data Tier definition
176 #
177 #####################################################################
178 
179 RECOEventContent.outputCommands.extend(FastSimRecoLocalTrackerRECO.outputCommands)
180 RECOEventContent.outputCommands.extend(FastSimRecoLocalCaloRECO.outputCommands)
181 RECOEventContent.outputCommands.extend(FastSimRecoTrackerRECO.outputCommands)
182 RECOEventContent.outputCommands.extend(FastSimParticleFlowRECO.outputCommands)
183 
184 #####################################################################
185 #
186 # RECOSIM Data Tier definition
187 #
188 #####################################################################
189 
190 RECOSIMEventContent.outputCommands.extend(FastSimCoreRECO.outputCommands)
191 RECOSIMEventContent.outputCommands.extend(FastSimRecoLocalTrackerRECO.outputCommands)
192 RECOSIMEventContent.outputCommands.extend(FastSimRecoLocalCaloRECO.outputCommands)
193 RECOSIMEventContent.outputCommands.extend(FastSimRecoTrackerRECO.outputCommands)
194 RECOSIMEventContent.outputCommands.extend(FastSimParticleFlowRECO.outputCommands)
195 
196 #####################################################################
197 #
198 # RECODEBUG Data Tier definition
199 #
200 #####################################################################
201 
202 RECODEBUGEventContent.outputCommands.extend(FastSimCoreRECO.outputCommands)
203 RECODEBUGEventContent.outputCommands.extend(FastSimRecoLocalTrackerRECO.outputCommands)
204 RECODEBUGEventContent.outputCommands.extend(FastSimRecoLocalCaloRECO.outputCommands)
205 RECODEBUGEventContent.outputCommands.extend(FastSimRecoTrackerRECO.outputCommands)
206 RECODEBUGEventContent.outputCommands.extend(FastSimParticleFlowRECO.outputCommands)
207 
208 ####################################################################
209 #
210 # FEVT Data Tier re-definition
211 #
212 #####################################################################
213 
214 FEVTEventContent.outputCommands.extend(FastSimRecoLocalTrackerFEVT.outputCommands)
215 FEVTEventContent.outputCommands.extend(FastSimRecoLocalCaloFEVT.outputCommands)
216 FEVTEventContent.outputCommands.extend(FastSimRecoTrackerFEVT.outputCommands)
217 FEVTEventContent.outputCommands.extend(FastSimParticleFlowFEVT.outputCommands)
218 
219 ####################################################################
220 #
221 # FEVTSIM Data Tier re-definition
222 #
223 #####################################################################
224 
225 FEVTSIMEventContent.outputCommands.extend(FastSimCoreFEVT.outputCommands)
226 FEVTSIMEventContent.outputCommands.extend(FastSimRecoLocalTrackerFEVT.outputCommands)
227 FEVTSIMEventContent.outputCommands.extend(FastSimRecoLocalCaloFEVT.outputCommands)
228 FEVTSIMEventContent.outputCommands.extend(FastSimRecoTrackerFEVT.outputCommands)
229 FEVTSIMEventContent.outputCommands.extend(FastSimParticleFlowFEVT.outputCommands)
230 
231 #####################################################################
232 #
233 # FEVTDEBUG Data Tier re-definition
234 #
235 #####################################################################
236 
237 FEVTDEBUGEventContent.outputCommands.extend(FastSimCoreFEVT.outputCommands)
238 FEVTDEBUGEventContent.outputCommands.extend(FastSimRecoLocalTrackerFEVT.outputCommands)
239 FEVTDEBUGEventContent.outputCommands.extend(FastSimRecoLocalCaloFEVT.outputCommands)
240 FEVTDEBUGEventContent.outputCommands.extend(FastSimRecoTrackerFEVT.outputCommands)
241 FEVTDEBUGEventContent.outputCommands.extend(FastSimParticleFlowFEVT.outputCommands)
242 
243 #####################################################################
244 #
245 # FEVTDEBUGHLT Data Tier re-definition
246 #
247 #####################################################################
248 FEVTDEBUGHLTEventContent.outputCommands.extend(FastSimCoreFEVT.outputCommands)
249 FEVTDEBUGHLTEventContent.outputCommands.extend(FastSimRecoLocalTrackerFEVT.outputCommands)
250 FEVTDEBUGHLTEventContent.outputCommands.extend(FastSimRecoLocalCaloFEVT.outputCommands)
251 FEVTDEBUGHLTEventContent.outputCommands.extend(FastSimRecoTrackerFEVT.outputCommands)
252 FEVTDEBUGHLTEventContent.outputCommands.extend(FastSimParticleFlowFEVT.outputCommands)
253 
254 ##################
255 # get rid of some edaliases in the output
256 ##################
257 for _entry in [FEVTDEBUGEventContent,FEVTSIMEventContent,GENRAWEventContent,FEVTDEBUGHLTEventContent,HLTDEBUGEventContent,HLTDebugFEVT,HLTDebugRAW,RAWDEBUGHLTEventContent,RAWRECODEBUGHLTEventContent,RAWRECOSIMHLTEventContent,RAWSIMHLTEventContent,]:
258  _entry.outputCommands.append('drop *_ecalPreshowerDigis_*_*')
259  _entry.outputCommands.append('drop *_ecalDigis_*_*')
260  _entry.outputCommands.append('drop *_hcalDigis_*_*')
261  _entry.outputCommands.append('drop *_muonDTDigis_*_*')
262  _entry.outputCommands.append('drop *_muonCSCDigis_*_*')
263  _entry.outputCommands.append('drop *_muonRPCDigis_*_*')
264  _entry.outputCommands.append('drop *_gtDigis_*_*')
265  _entry.outputCommands.append('drop *_hltIter*_*_*')
266  _entry.outputCommands.append('drop *_hlt*Digis_*_*')
267  _entry.outputCommands.append('drop *_gmtDigis_*_*')
268 
269 #####################################################################
270 #
271 # To be used only to create the MinBias sample for "new mixing" (--eventcontent=FASTPU)
272 #
273 #####################################################################
274 
275 FASTPUEventContent = cms.PSet(
276  outputCommands = cms.untracked.vstring('drop *',
277  'keep *_famosSimHits_*_*',
278  'keep *_MuonSimHits_*_*',
279  'drop *_famosSimHits_VertexTypes_*',
280  'keep *_generalTracksBeforeMixing_*_*',
281  'drop *_generalTracksBeforeMixing_MVAValues_*',
282  'drop *_generalTracksBeforeMixing_QualityMasks_*',
283  'keep edmHepMCProduct_generatorSmeared_*_*'
284  )
285  )
286 
287 
288 PREMIXEventContent.outputCommands.extend(['keep *_mix_generalTracks_*'])