CMS 3D CMS Logo

ALCARECOTkAlZMuMu_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
4 OutALCARECOTkAlZMuMu_noDrop = cms.PSet(
5  SelectEvents = cms.untracked.PSet(
6  SelectEvents = cms.vstring('pathALCARECOTkAlZMuMu')
7  ),
8  outputCommands = cms.untracked.vstring(
9  'keep recoTracks_ALCARECOTkAlZMuMu_*_*',
10  'keep recoTrackExtras_ALCARECOTkAlZMuMu_*_*',
11  'keep TrackingRecHitsOwned_ALCARECOTkAlZMuMu_*_*',
12  'keep SiPixelClusteredmNewDetSetVector_ALCARECOTkAlZMuMu_*_*',
13  'keep SiStripClusteredmNewDetSetVector_ALCARECOTkAlZMuMu_*_*',
14  'keep L1AcceptBunchCrossings_*_*_*',
15  'keep L1GlobalTriggerReadoutRecord_gtDigis_*_*',
16  'keep *_TriggerResults_*_*',
17  'keep DcsStatuss_scalersRawToDigi_*_*',
18  'keep *_offlinePrimaryVertices_*_*')
19 )
20 
21 # add branches for MC truth evaluation
24 
25 OutALCARECOTkAlZMuMu_noDrop.outputCommands.extend(GeneratorInterfaceAOD.outputCommands)
26 _modifiedCommandsForGEN = OutALCARECOTkAlZMuMu_noDrop.outputCommands.copy()
27 _modifiedCommandsForGEN.remove('keep *_genParticles_*_*') # full genParticles list is too heavy
28 _modifiedCommandsForGEN.append('keep *_TkAlZMuMuGenMuonSelector_*_*') # Keep only the filtered gen muons
29 OutALCARECOTkAlZMuMu_noDrop.outputCommands = _modifiedCommandsForGEN
30 
31 OutALCARECOTkAlZMuMu_noDrop.outputCommands.extend(SimGeneralAOD.outputCommands)
32 
33 # in Run3, SCAL digis replaced by onlineMetaDataDigis
34 import copy
35 _run3_common_removedCommands = OutALCARECOTkAlZMuMu_noDrop.outputCommands.copy()
36 _run3_common_removedCommands.remove('keep DcsStatuss_scalersRawToDigi_*_*')
37 
38 _run3_common_extraCommands = ['keep DCSRecord_onlineMetaDataDigis_*_*']
39 
40 from Configuration.Eras.Modifier_run3_common_cff import run3_common
41 run3_common.toModify(OutALCARECOTkAlZMuMu_noDrop, outputCommands = _run3_common_removedCommands + _run3_common_extraCommands)
42 
43 # in Phase2, remove the SiStrip clusters and keep the OT ones instead
44 _phase2_common_removedCommands = OutALCARECOTkAlZMuMu_noDrop.outputCommands.copy()
45 _phase2_common_removedCommands.remove('keep SiStripClusteredmNewDetSetVector_ALCARECOTkAlZMuMu_*_*')
46 
47 _phase2_common_extraCommands = ['keep Phase2TrackerCluster1DedmNewDetSetVector_ALCARECOTkAlZMuMu_*_*']
48 
49 from Configuration.Eras.Modifier_phase2_common_cff import phase2_common
50 phase2_common.toModify(OutALCARECOTkAlZMuMu_noDrop, outputCommands = _phase2_common_removedCommands + _phase2_common_extraCommands )
51 
52 OutALCARECOTkAlZMuMu = OutALCARECOTkAlZMuMu_noDrop.clone()
53 OutALCARECOTkAlZMuMu.outputCommands.insert(0, "drop *")