1 import FWCore.ParameterSet.Config
as cms
4 TrackingToolsAOD = cms.PSet(
5 outputCommands = cms.untracked.vstring(
'keep recoTracks_GsfGlobalElectronTest_*_*',
6 'keep recoGsfTracks_electronGsfTracks_*_*'
10 from Configuration.Eras.Modifier_phase2_hgcal_cff
import phase2_hgcal
11 phase2_hgcal.toModify( TrackingToolsAOD,
12 outputCommands = TrackingToolsAOD.outputCommands + [
'keep recoGsfTracks_electronGsfTracksFromMultiCl_*_*'])
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_*_*'
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_*_*'
32 phase2_hgcal.toModify( TrackingToolsRECO,
33 outputCommands = TrackingToolsRECO.outputCommands + _phase2_hgcal_TrackingRECO_tokeep)
36 TrackingToolsFEVT = cms.PSet(
37 outputCommands = cms.untracked.vstring(
'keep *_electronGsfTracks_*_*'
40 TrackingToolsFEVT.outputCommands.extend(TrackingToolsRECO.outputCommands)