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 # add branches for MC truth evaluation
29 
30 OutALCARECOTkAlDiMuonAndVertex_noDrop.outputCommands.extend(GeneratorInterfaceAOD.outputCommands)
31 _modifiedCommandsForGEN = OutALCARECOTkAlDiMuonAndVertex_noDrop.outputCommands.copy()
32 _modifiedCommandsForGEN.remove('keep *_genParticles_*_*') # full genParticles list is too heavy
33 _modifiedCommandsForGEN.append('keep *_TkAlDiMuonAndVertexGenMuonSelector_*_*') # Keep only the filtered gen muons
34 OutALCARECOTkAlDiMuonAndVertex_noDrop.outputCommands = _modifiedCommandsForGEN
35 
36 OutALCARECOTkAlDiMuonAndVertex_noDrop.outputCommands.extend(SimGeneralAOD.outputCommands)
37 
38 # in Phase2, remove the SiStrip clusters and keep the OT ones instead
39 _phase2_common_removedCommands = OutALCARECOTkAlDiMuonAndVertex_noDrop.outputCommands.copy()
40 _phase2_common_removedCommands.remove('keep SiStripClusteredmNewDetSetVector_ALCARECOTkAlDiMuon_*_*')
41 _phase2_common_removedCommands.remove('keep SiStripClusteredmNewDetSetVector_ALCARECOTkAlDiMuonVertexTracks_*_*')
42 
43 _phase2_common_extraCommands = ['keep Phase2TrackerCluster1DedmNewDetSetVector_ALCARECOTkAlDiMuon_*_*',
44  'keep Phase2TrackerCluster1DedmNewDetSetVector_ALCARECOTkAlDiMuonVertexTracks_*_*']
45 
46 from Configuration.Eras.Modifier_phase2_common_cff import phase2_common
47 phase2_common.toModify(OutALCARECOTkAlDiMuonAndVertex_noDrop, outputCommands = _phase2_common_removedCommands + _phase2_common_extraCommands )
48 
49 OutALCARECOTkAlDiMuonAndVertex = OutALCARECOTkAlDiMuonAndVertex_noDrop.clone()
50 OutALCARECOTkAlDiMuonAndVertex.outputCommands.insert(0, "drop *")