CMS 3D CMS Logo

ALCARECOTkAlDiMuonAndVertex_Output_cff.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
2 
3 # AlCaReco for track based alignment using ZMuMu events (including the tracks from the PV)
4 OutALCARECOTkAlDiMuonAndVertex_noDrop = cms.PSet(
5  SelectEvents = cms.untracked.PSet(
6  SelectEvents = cms.vstring('pathALCARECOTkAlDiMuonAndVertex')
7  ),
8  outputCommands = cms.untracked.vstring(
9  'keep recoTracks_ALCARECOTkAlDiMuon_*_*',
10  'keep recoTrackExtras_ALCARECOTkAlDiMuon_*_*',
11  'keep TrackingRecHitsOwned_ALCARECOTkAlDiMuon_*_*',
12  'keep SiPixelClusteredmNewDetSetVector_ALCARECOTkAlDiMuon_*_*',
13  'keep SiStripClusteredmNewDetSetVector_ALCARECOTkAlDiMuon_*_*',
14  'keep recoTracks_ALCARECOTkAlDiMuonVertexTracks_*_*',
15  'keep recoTrackExtras_ALCARECOTkAlDiMuonVertexTracks_*_*',
16  'keep TrackingRecHitsOwned_ALCARECOTkAlDiMuonVertexTracks_*_*',
17  'keep SiPixelClusteredmNewDetSetVector_ALCARECOTkAlDiMuonVertexTracks_*_*',
18  'keep SiStripClusteredmNewDetSetVector_ALCARECOTkAlDiMuonVertexTracks_*_*',
19  'keep L1AcceptBunchCrossings_*_*_*',
20  'keep L1GlobalTriggerReadoutRecord_gtDigis_*_*',
21  'keep *_TriggerResults_*_*',
22  'keep DcsStatuss_scalersRawToDigi_*_*',
23  'keep *_offlinePrimaryVertices_*_*')
24 )
25 
26 # in Phase2, remove the SiStrip clusters and keep the OT ones instead
27 _phase2_common_removedCommands = OutALCARECOTkAlDiMuonAndVertex_noDrop.outputCommands.copy()
28 _phase2_common_removedCommands.remove('keep SiStripClusteredmNewDetSetVector_ALCARECOTkAlDiMuon_*_*')
29 _phase2_common_removedCommands.remove('keep SiStripClusteredmNewDetSetVector_ALCARECOTkAlDiMuonVertexTracks_*_*')
30 
31 _phase2_common_extraCommands = ['keep Phase2TrackerCluster1DedmNewDetSetVector_ALCARECOTkAlDiMuon_*_*',
32  'keep Phase2TrackerCluster1DedmNewDetSetVector_ALCARECOTkAlDiMuonVertexTracks_*_*']
33 
34 from Configuration.Eras.Modifier_phase2_common_cff import phase2_common
35 phase2_common.toModify(OutALCARECOTkAlDiMuonAndVertex_noDrop, outputCommands = _phase2_common_removedCommands + _phase2_common_extraCommands )
36 
37 OutALCARECOTkAlDiMuonAndVertex = OutALCARECOTkAlDiMuonAndVertex_noDrop.clone()
38 OutALCARECOTkAlDiMuonAndVertex.outputCommands.insert(0, "drop *")