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  'keep *_simHitTPAssocProducer_*_*')
20 
21 )
22 # For phase2 premixing switch the sim digi collections to the ones including pileup
23 from Configuration.Eras.Modifier_phase2_tracker_cff import phase2_tracker
24 from Configuration.ProcessModifiers.premix_stage2_cff import premix_stage2
25 (premix_stage2 & phase2_tracker).toModify(SimTrackerFEVTDEBUG, outputCommands = SimTrackerFEVTDEBUG.outputCommands + [
26  'drop *_simSiPixelDigis_*_*',
27  'keep *_mixData_Pixel_*',
28  'keep *_mixData_Tracker_*',
29 ])
30 
31 SimTrackerDEBUG = cms.PSet(
32  outputCommands = cms.untracked.vstring(
33  'keep PixelDigiSimLinkedmDetSetVector_simSiPixelDigis_*_*',
34  'keep StripDigiSimLinkedmDetSetVector_simSiStripDigis_*_*',
35  'drop *_mix_simSiPixelDigis*_*',
36  'drop *_mix_simSiStripDigis*_*',
37  'keep *_allTrackMCMatch_*_*')
38 )
39 #RAW content
40 SimTrackerRAW = cms.PSet(
41  outputCommands = cms.untracked.vstring(
42  'keep *_allTrackMCMatch_*_*',
43  'keep *_prunedTrackingParticles_*_*',
44  'keep *_prunedDigiSimLinks_*_*')
45 )
46 #RECO content
47 SimTrackerRECO = cms.PSet(
48  outputCommands = cms.untracked.vstring(
49  'keep *_allTrackMCMatch_*_*',
50  'keep *_prunedTrackMCMatch_*_*')
51 )
52 #AOD content
53 SimTrackerAOD = cms.PSet(
54  outputCommands = cms.untracked.vstring(
55  'keep *_allTrackMCMatch_*_*',
56  'keep *_prunedTrackMCMatch_*_*')
57 )
58 
59 # Event content for premixing library
60 SimTrackerPREMIX = cms.PSet(
61  outputCommands = cms.untracked.vstring(
62  'keep *_simSiPixelDigis_*_*', # covers digis and digiSimLinks
63  'keep *_simSiStripDigis_ZeroSuppressed_*',
64  'keep StripDigiSimLinkedmDetSetVector_simSiStripDigis_*_*',
65  'keep *_mix_AffectedAPVList_*',
66  )
67 )
68 phase2_tracker.toModify(SimTrackerPREMIX, outputCommands = [
69  'keep Phase2TrackerDigiedmDetSetVector_mix_*_*',
70  'keep *_*_Phase2OTDigiSimLink_*',
71  'keep *_simSiPixelDigis_*_*', # covers digis and digiSimLinks
72 ])
73 
74 from Configuration.Eras.Modifier_strips_vfp30_2016_cff import strips_vfp30_2016
75 for _entry in [SimTrackerFEVTDEBUG,SimTrackerDEBUG,SimTrackerRAW,SimTrackerRECO,SimTrackerAOD,SimTrackerPREMIX]:
76  strips_vfp30_2016.toModify(_entry, outputCommands = _entry.outputCommands + [
77  'keep *_simAPVsaturation_SimulatedAPVDynamicGain_*'
78  ])