CMS 3D CMS Logo

TrackingTools_EventContent_cff.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
2 
3 #AOD content
4 TrackingToolsAOD = cms.PSet(
5  outputCommands = cms.untracked.vstring('keep recoTracks_GsfGlobalElectronTest_*_*',
6  'keep recoGsfTracks_electronGsfTracks_*_*'
7  )
8 )
9 
10 from Configuration.Eras.Modifier_phase2_hgcal_cff import phase2_hgcal
11 phase2_hgcal.toModify( TrackingToolsAOD,
12  outputCommands = TrackingToolsAOD.outputCommands + ['keep recoGsfTracks_electronGsfTracksFromMultiCl_*_*'])
13 
14 #RECO content
15 TrackingToolsRECO = cms.PSet(
16  outputCommands = cms.untracked.vstring('keep *_CkfElectronCandidates_*_*',
17  'keep *_GsfGlobalElectronTest_*_*',
18  'keep *_electronMergedSeeds_*_*',
19  'keep recoGsfTrackExtras_electronGsfTracks_*_*',
20  'keep recoTrackExtras_electronGsfTracks_*_*',
21  'keep TrackingRecHitsOwned_electronGsfTracks_*_*'
22  )
23 )
24 TrackingToolsRECO.outputCommands.extend(TrackingToolsAOD.outputCommands)
25 _phase2_hgcal_TrackingRECO_tokeep = [
26  'keep recoGsfTracks_electronGsfTracksFromMultiCl_*_*',
27  'keep recoGsfTrackExtras_electronGsfTracksFromMultiCl_*_*',
28  'keep recoTrackExtras_electronGsfTracksFromMultiCl_*_*',
29  'keep TrackingRecHitsOwned_electronGsfTracksFromMultiCl_*_*',
30  'keep *_electronMergedSeedsFromMultiCl_*_*'
31 ]
32 phase2_hgcal.toModify( TrackingToolsRECO,
33  outputCommands = TrackingToolsRECO.outputCommands + _phase2_hgcal_TrackingRECO_tokeep)
34 
35 #FEVT content
36 TrackingToolsFEVT = cms.PSet(
37  outputCommands = cms.untracked.vstring('keep *_electronGsfTracks_*_*'
38  )
39 )
40 TrackingToolsFEVT.outputCommands.extend(TrackingToolsRECO.outputCommands)