CMS 3D CMS Logo

SimTracker_EventContent_cff.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
2 
3 #Full Event content with DIGI
4 SimTrackerFEVTDEBUG = cms.PSet(
5  outputCommands = cms.untracked.vstring(
6  'keep *_simSiPixelDigis_*_*',
7  'keep *_simSiStripDigis_*_*',
8  'drop *_mix_simSiPixelDigis*_*',
9  'drop *_mix_simSiStripDigis*_*',
10  'keep *_allTrackMCMatch_*_*',
11  'keep *_trackingParticleRecoTrackAsssociation_*_*',
12  'keep *_assoc2secStepTk_*_*',
13  'keep *_assoc2thStepTk_*_*',
14  'keep *_assoc2GsfTracks_*_*',
15  'keep *_assocOutInConversionTracks_*_*',
16  'keep *_assocInOutConversionTracks_*_*',
17  'keep *_TTClusterAssociatorFromPixelDigis_*_*',
18  'keep *_TTStubAssociatorFromPixelDigis_*_*')
19 
20 )
21 # For phase2 premixing switch the sim digi collections to the ones including pileup
22 from Configuration.Eras.Modifier_phase2_tracker_cff import phase2_tracker
23 from Configuration.ProcessModifiers.premix_stage2_cff import premix_stage2
24 (premix_stage2 & phase2_tracker).toModify(SimTrackerFEVTDEBUG, outputCommands = SimTrackerFEVTDEBUG.outputCommands + [
25  'drop *_simSiPixelDigis_*_*',
26  'keep *_mixData_Pixel_*',
27  'keep *_mixData_Tracker_*',
28 ])
29 
30 SimTrackerDEBUG = cms.PSet(
31  outputCommands = cms.untracked.vstring(
32  'keep PixelDigiSimLinkedmDetSetVector_simSiPixelDigis_*_*',
33  'keep StripDigiSimLinkedmDetSetVector_simSiStripDigis_*_*',
34  'drop *_mix_simSiPixelDigis*_*',
35  'drop *_mix_simSiStripDigis*_*',
36  'keep *_allTrackMCMatch_*_*')
37 )
38 #RAW content
39 SimTrackerRAW = cms.PSet(
40  outputCommands = cms.untracked.vstring(
41  'keep *_allTrackMCMatch_*_*',
42  'keep *_prunedTrackingParticles_*_*',
43  'keep *_prunedDigiSimLinks_*_*')
44 )
45 #RECO content
46 SimTrackerRECO = cms.PSet(
47  outputCommands = cms.untracked.vstring(
48  'keep *_allTrackMCMatch_*_*',
49  'keep *_prunedTrackMCMatch_*_*')
50 )
51 #AOD content
52 SimTrackerAOD = cms.PSet(
53  outputCommands = cms.untracked.vstring(
54  'keep *_allTrackMCMatch_*_*',
55  'keep *_prunedTrackMCMatch_*_*')
56 )
57 
58 # Event content for premixing library
59 SimTrackerPREMIX = cms.PSet(
60  outputCommands = cms.untracked.vstring(
61  'keep *_simSiPixelDigis_*_*', # covers digis and digiSimLinks
62  'keep *_simSiStripDigis_ZeroSuppressed_*',
63  'keep StripDigiSimLinkedmDetSetVector_simSiStripDigis_*_*',
64  'keep *_mix_AffectedAPVList_*',
65  )
66 )
67 phase2_tracker.toModify(SimTrackerPREMIX, outputCommands = [
68  'keep Phase2TrackerDigiedmDetSetVector_mix_*_*',
69  'keep *_*_Phase2OTDigiSimLink_*',
70  'keep *_simSiPixelDigis_*_*', # covers digis and digiSimLinks
71 ])
72 
73 from Configuration.Eras.Modifier_strips_vfp30_2016_cff import strips_vfp30_2016
74 for _entry in [SimTrackerFEVTDEBUG,SimTrackerDEBUG,SimTrackerRAW,SimTrackerRECO,SimTrackerAOD,SimTrackerPREMIX]:
75  strips_vfp30_2016.toModify(_entry, outputCommands = _entry.outputCommands + [
76  'keep *_simAPVsaturation_SimulatedAPVDynamicGain_*'
77  ])