CMS 3D CMS Logo

EventContentCosmics_cff.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
2 
3 #
4 #
5 # Event Content definition
6 #
7 # Data Tiers defined:
8 #
9 # FEVT, RECO, AOD:
10 # include reconstruction content
11 #
12 # FEVTSIM, RECOSIM, AODSIM:
13 # include reconstruction and simulation
14 #
15 # FEVTSIMANA, RECOSIMANA, AODSIMANA:
16 # include reconstruction, simulation and analysis
17 # FEVTSIMDIGIHLTDEBUG FEVTSIMHLTDEBUG
18 #
19 # $Id: EventContentCosmics_cff.py,v 1.22 2010/09/08 13:29:39 vlimant Exp $
20 #
21 #
22 #
23 #
24 # Recontruction Systems
25 #
26 #
38 # raw2digi that are already the final RECO/AOD products
42 # DigiToRaw content
44 # Simulation System
52 # L1
54 # HLT
56 # DQM
58 
59 from Configuration.EventContent.EventContent_cff import REGENEventContent,RESIMEventContent,REDIGIEventContent
60 from Configuration.EventContent.EventContent_cff import DQMEventContent
61 
62 #not in Cosmics
63 #include "TrackingTools/Configuration/data/TrackingTools_EventContent.cff"
64 #include "RecoBTau/Configuration/data/RecoBTau_EventContent.cff"
65 #include "RecoBTag/Configuration/data/RecoBTag_EventContent.cff"
66 #include "RecoTauTag/Configuration/data/RecoTauTag_EventContent.cff"
67 #include "RecoVertex/Configuration/data/RecoVertex_EventContent.cff"
68 #include "RecoTracker/Configuration/data/RecoPixelVertexing_EventContent.cff"
69 #include "RecoEgamma/Configuration/data/RecoEgamma_EventContent.cff"
70 #include "RecoParticleFlow/Configuration/data/RecoParticleFlow_EventContent.cff"
71 
72 # RAW only data tier
73 RAWEventContent = cms.PSet(
74  outputCommands = cms.untracked.vstring('drop *',
75  'keep FEDRawDataCollection_rawDataCollector_*_*',
76  'keep FEDRawDataCollection_source_*_*'),
77  splitLevel = cms.untracked.int32(0),
78  eventAutoFlushCompressedSize=cms.untracked.int32(5*1024*1024)
79 )
80 RAWEventContent.outputCommands.extend(L1TriggerRAW.outputCommands)
81 RAWEventContent.outputCommands.extend(HLTriggerRAW.outputCommands)
82 #
83 #
84 # RECO Data Tier definition
85 #
86 #
87 RECOEventContent = cms.PSet(
88  outputCommands = cms.untracked.vstring('drop *',
89  'keep *_logErrorHarvester_*_*'),
90  splitLevel = cms.untracked.int32(0),
91  eventAutoFlushCompressedSize=cms.untracked.int32(5*1024*1024)
92 )
93 RECOEventContent.outputCommands.extend(RecoLocalTrackerRECO.outputCommands)
94 RECOEventContent.outputCommands.extend(RecoLocalMuonRECO.outputCommands)
95 RECOEventContent.outputCommands.extend(RecoLocalCaloRECO.outputCommands)
96 RECOEventContent.outputCommands.extend(RecoEcalRECO.outputCommands)
97 RECOEventContent.outputCommands.extend(RecoEgammaRECO.outputCommands)
98 RECOEventContent.outputCommands.extend(RecoTrackerRECO.outputCommands)
99 RECOEventContent.outputCommands.extend(RecoJetsRECO.outputCommands)
100 RECOEventContent.outputCommands.extend(RecoMETRECO.outputCommands)
101 RECOEventContent.outputCommands.extend(RecoMuonRECO.outputCommands)
102 RECOEventContent.outputCommands.extend(BeamSpotRECO.outputCommands)
103 RECOEventContent.outputCommands.extend(RecoVertexRECO.outputCommands)
104 RECOEventContent.outputCommands.extend(L1TriggerRECO.outputCommands)
105 RECOEventContent.outputCommands.extend(HLTriggerRECO.outputCommands)
106 RECOEventContent.outputCommands.extend(MEtoEDMConverterRECO.outputCommands)
107 RECOEventContent.outputCommands.extend(EvtScalersRECO.outputCommands)
108 RECOEventContent.outputCommands.extend(OnlineMetaDataContent.outputCommands)
109 RECOEventContent.outputCommands.extend(TcdsEventContent.outputCommands)
110 #
111 #
112 # AOD Data Tier definition
113 #
114 #
115 AODEventContent = cms.PSet(
116  outputCommands = cms.untracked.vstring('drop *',
117  'keep *_logErrorHarvester_*_*'),
118  eventAutoFlushCompressedSize=cms.untracked.int32(15*1024*1024)
119 )
120 AODEventContent.outputCommands.extend(RecoLocalTrackerAOD.outputCommands)
121 AODEventContent.outputCommands.extend(RecoLocalMuonAOD.outputCommands)
122 AODEventContent.outputCommands.extend(RecoLocalCaloAOD.outputCommands)
123 AODEventContent.outputCommands.extend(RecoEcalAOD.outputCommands)
124 AODEventContent.outputCommands.extend(RecoEgammaAOD.outputCommands)
125 AODEventContent.outputCommands.extend(RecoTrackerAOD.outputCommands)
126 AODEventContent.outputCommands.extend(RecoJetsAOD.outputCommands)
127 AODEventContent.outputCommands.extend(RecoMETAOD.outputCommands)
128 AODEventContent.outputCommands.extend(RecoMuonAOD.outputCommands)
129 AODEventContent.outputCommands.extend(BeamSpotAOD.outputCommands)
130 AODEventContent.outputCommands.extend(RecoVertexAOD.outputCommands)
131 AODEventContent.outputCommands.extend(MEtoEDMConverterAOD.outputCommands)
132 AODEventContent.outputCommands.extend(EvtScalersAOD.outputCommands)
133 AODEventContent.outputCommands.extend(OnlineMetaDataContent.outputCommands)
134 AODEventContent.outputCommands.extend(TcdsEventContent.outputCommands)
135 AODEventContent.outputCommands.extend(L1TriggerAOD.outputCommands)
136 #
137 #
138 # RAWSIM Data Tier definition
139 #
140 #
141 RAWSIMEventContent = cms.PSet(
142  outputCommands = cms.untracked.vstring('drop *'),
143  splitLevel = cms.untracked.int32(0),
144  eventAutoFlushCompressedSize=cms.untracked.int32(5*1024*1024)
145 )
146 RAWSIMEventContent.outputCommands.extend(RAWEventContent.outputCommands)
147 RAWSIMEventContent.outputCommands.extend(SimG4CoreRAW.outputCommands)
148 RAWSIMEventContent.outputCommands.extend(SimTrackerRAW.outputCommands)
149 RAWSIMEventContent.outputCommands.extend(SimMuonRAW.outputCommands)
150 RAWSIMEventContent.outputCommands.extend(SimCalorimetryRAW.outputCommands)
151 RAWSIMEventContent.outputCommands.extend(SimGeneralRAW.outputCommands)
152 RAWSIMEventContent.outputCommands.extend(GeneratorInterfaceRAW.outputCommands)
153 RAWSIMEventContent.outputCommands.extend(RecoGenJetsFEVT.outputCommands)
154 RAWSIMEventContent.outputCommands.extend(RecoGenMETFEVT.outputCommands)
155 RAWSIMEventContent.outputCommands.extend(DigiToRawFEVT.outputCommands)
156 RAWSIMEventContent.outputCommands.extend(MEtoEDMConverterFEVT.outputCommands)
157 RAWSIMEventContent.outputCommands.extend(IOMCRAW.outputCommands)
158 
159 #
160 # Temporary collections needed for Phase-2 RECO using RAWSIM as input in Prod-like workflow
161 # They are until packer/unpackers are done.
162 #
163 from Configuration.Eras.Modifier_phase2_common_cff import phase2_common
164 phase2_common.toModify(RAWSIMEventContent,
165  outputCommands = RAWSIMEventContent.outputCommands+[
166  'keep *_sim*Digis_*_*',
167  'keep *Phase2TrackerDigi*_*_*_*'])
168 
169 #
170 #
171 # RECOSIM Data Tier definition
172 #
173 #
174 RECOSIMEventContent = cms.PSet(
175  outputCommands = cms.untracked.vstring('drop *',
176  'keep *_logErrorHarvester_*_*'),
177  splitLevel = cms.untracked.int32(0),
178  eventAutoFlushCompressedSize=cms.untracked.int32(5*1024*1024)
179 )
180 RECOSIMEventContent.outputCommands.extend(RECOEventContent.outputCommands)
181 RECOSIMEventContent.outputCommands.extend(GeneratorInterfaceRECO.outputCommands)
182 RECOSIMEventContent.outputCommands.extend(SimG4CoreRECO.outputCommands)
183 RECOSIMEventContent.outputCommands.extend(SimTrackerRECO.outputCommands)
184 RECOSIMEventContent.outputCommands.extend(SimMuonRECO.outputCommands)
185 RECOSIMEventContent.outputCommands.extend(SimCalorimetryRECO.outputCommands)
186 RECOSIMEventContent.outputCommands.extend(RecoGenMETRECO.outputCommands)
187 RECOSIMEventContent.outputCommands.extend(RecoGenJetsRECO.outputCommands)
188 RECOSIMEventContent.outputCommands.extend(SimGeneralRECO.outputCommands)
189 #
190 # FEVT Data Tier definition
191 #
192 #
193 #FEVT is by definition RECO + RAW
194 FEVTEventContent = cms.PSet(
195  outputCommands = cms.untracked.vstring('drop *',
196  'keep *_logErrorHarvester_*_*'),
197  splitLevel = cms.untracked.int32(0),
198  eventAutoFlushCompressedSize=cms.untracked.int32(5*1024*1024)
199 )
200 FEVTEventContent.outputCommands.extend(RAWEventContent.outputCommands)
201 FEVTEventContent.outputCommands.extend(RecoLocalTrackerRECO.outputCommands)
202 FEVTEventContent.outputCommands.extend(RecoLocalMuonRECO.outputCommands)
203 FEVTEventContent.outputCommands.extend(RecoLocalCaloRECO.outputCommands)
204 FEVTEventContent.outputCommands.extend(RecoEcalRECO.outputCommands)
205 FEVTEventContent.outputCommands.extend(RecoEgammaRECO.outputCommands)
206 FEVTEventContent.outputCommands.extend(RecoTrackerRECO.outputCommands)
207 FEVTEventContent.outputCommands.extend(RecoJetsRECO.outputCommands)
208 FEVTEventContent.outputCommands.extend(RecoMETRECO.outputCommands)
209 FEVTEventContent.outputCommands.extend(RecoMuonRECO.outputCommands)
210 FEVTEventContent.outputCommands.extend(BeamSpotRECO.outputCommands)
211 FEVTEventContent.outputCommands.extend(RecoVertexRECO.outputCommands)
212 FEVTEventContent.outputCommands.extend(L1TriggerRECO.outputCommands)
213 FEVTEventContent.outputCommands.extend(HLTriggerRECO.outputCommands)
214 FEVTEventContent.outputCommands.extend(MEtoEDMConverterRECO.outputCommands)
215 FEVTEventContent.outputCommands.extend(EvtScalersRECO.outputCommands)
216 FEVTEventContent.outputCommands.extend(OnlineMetaDataContent.outputCommands)
217 FEVTEventContent.outputCommands.extend(TcdsEventContent.outputCommands)
218 
219 phase2_tracker.toModify(FEVTEventContent,
220  outputCommands = FEVTEventContent.outputCommands + [
221  'keep Phase2TrackerDigiedmDetSetVector_mix_*_*',
222  'keep *_TTClustersFromPhase2TrackerDigis_*_*',
223  'keep *_TTStubsFromPhase2TrackerDigis_*_*',
224  'keep *_TrackerDTC_*_*',
225  'keep *_*_Level1TTTracks_*'])
226 
227 #replace FEVTEventContent.outputCommands += HLTriggerFEVT.outputCommands
228 FEVTHLTALLEventContent = cms.PSet(
229  outputCommands = cms.untracked.vstring('drop *'),
230  splitLevel = cms.untracked.int32(0),
231  eventAutoFlushCompressedSize=cms.untracked.int32(5*1024*1024)
232 )
233 FEVTHLTALLEventContent.outputCommands.extend(FEVTEventContent.outputCommands)
234 FEVTHLTALLEventContent.outputCommands.append('keep *_*_*_HLT')
235 #
236 # FEVTSIM Data Tier definition
237 #
238 #
239 FEVTSIMEventContent = cms.PSet(
240  outputCommands = cms.untracked.vstring('drop *',
241  'keep *_logErrorHarvester_*_*'),
242  splitLevel = cms.untracked.int32(0),
243  eventAutoFlushCompressedSize=cms.untracked.int32(5*1024*1024)
244 )
245 FEVTSIMEventContent.outputCommands.extend(FEVTEventContent.outputCommands)
246 FEVTSIMEventContent.outputCommands.extend(SimG4CoreRAW.outputCommands)
247 FEVTSIMEventContent.outputCommands.extend(SimTrackerRAW.outputCommands)
248 FEVTSIMEventContent.outputCommands.extend(SimMuonRAW.outputCommands)
249 FEVTSIMEventContent.outputCommands.extend(SimCalorimetryRAW.outputCommands)
250 FEVTSIMEventContent.outputCommands.extend(SimGeneralRAW.outputCommands)
251 FEVTSIMEventContent.outputCommands.extend(GeneratorInterfaceRAW.outputCommands)
252 FEVTSIMEventContent.outputCommands.extend(RecoGenJetsFEVT.outputCommands)
253 FEVTSIMEventContent.outputCommands.extend(RecoGenMETFEVT.outputCommands)
254 FEVTSIMEventContent.outputCommands.extend(DigiToRawFEVT.outputCommands)
255 FEVTSIMEventContent.outputCommands.extend(MEtoEDMConverterFEVT.outputCommands)
256 FEVTSIMEventContent.outputCommands.extend(IOMCRAW.outputCommands)
257 FEVTSIMEventContent.outputCommands.extend(GeneratorInterfaceRECO.outputCommands)
258 FEVTSIMEventContent.outputCommands.extend(RecoGenMETRECO.outputCommands)
259 FEVTSIMEventContent.outputCommands.extend(RecoGenJetsRECO.outputCommands)
260 FEVTSIMEventContent.outputCommands.extend(SimG4CoreRECO.outputCommands)
261 FEVTSIMEventContent.outputCommands.extend(SimTrackerRECO.outputCommands)
262 FEVTSIMEventContent.outputCommands.extend(SimMuonRECO.outputCommands)
263 FEVTSIMEventContent.outputCommands.extend(SimCalorimetryRECO.outputCommands)
264 FEVTSIMEventContent.outputCommands.extend(SimGeneralRECO.outputCommands)
265 #
266 #
267 # FEVTDEBUG Data Tier definition
268 #
269 #
270 FEVTDEBUGEventContent = cms.PSet(
271  outputCommands = cms.untracked.vstring('drop *',
272  'keep *_logErrorHarvester_*_*'),
273  splitLevel = cms.untracked.int32(0),
274  eventAutoFlushCompressedSize=cms.untracked.int32(5*1024*1024)
275 )
276 FEVTDEBUGEventContent.outputCommands.extend(FEVTSIMEventContent.outputCommands)
277 FEVTDEBUGEventContent.outputCommands.extend(L1TriggerFEVTDEBUG.outputCommands)
278 FEVTDEBUGEventContent.outputCommands.extend(SimGeneralFEVTDEBUG.outputCommands)
279 FEVTDEBUGEventContent.outputCommands.extend(SimTrackerFEVTDEBUG.outputCommands)
280 FEVTDEBUGEventContent.outputCommands.extend(SimMuonFEVTDEBUG.outputCommands)
281 FEVTDEBUGEventContent.outputCommands.extend(SimCalorimetryFEVTDEBUG.outputCommands)
282 #
283 #
284 # ALCARECO Data Tier definition
285 #
286 #