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('keep *_allTrackMCMatch_*_*')
41 )
42 #RECO content
43 SimTrackerRECO = cms.PSet(
44  outputCommands = cms.untracked.vstring('keep *_allTrackMCMatch_*_*')
45 )
46 #AOD content
47 SimTrackerAOD = cms.PSet(
48  outputCommands = cms.untracked.vstring('keep *_allTrackMCMatch_*_*')
49 )
50 
51 # Event content for premixing library
52 SimTrackerPREMIX = cms.PSet(
53  outputCommands = cms.untracked.vstring(
54  'keep *_simSiPixelDigis_*_*', # covers digis and digiSimLinks
55  'keep *_simSiStripDigis_ZeroSuppressed_*',
56  'keep StripDigiSimLinkedmDetSetVector_simSiStripDigis_*_*',
57  'keep *_mix_AffectedAPVList_*',
58  )
59 )
60 phase2_tracker.toModify(SimTrackerPREMIX, outputCommands = [
61  'keep Phase2TrackerDigiedmDetSetVector_mix_*_*',
62  'keep *_*_Phase2OTDigiSimLink_*',
63  'keep *_simSiPixelDigis_*_*', # covers digis and digiSimLinks
64 ])
65 
66 from Configuration.Eras.Modifier_strips_vfp30_2016_cff import strips_vfp30_2016
67 for _entry in [SimTrackerFEVTDEBUG,SimTrackerDEBUG,SimTrackerRAW,SimTrackerRECO,SimTrackerAOD,SimTrackerPREMIX]:
68  strips_vfp30_2016.toModify(_entry, outputCommands = _entry.outputCommands + [
69  'keep *_simAPVsaturation_SimulatedAPVDynamicGain_*'
70  ])