Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2025-01-08 03:35:44

0001 import FWCore.ParameterSet.Config as cms
0002 
0003 # AlCaReco for track based alignment using ZMuMu events
0004 OutALCARECOTkAlZMuMu_noDrop = cms.PSet(
0005     SelectEvents = cms.untracked.PSet(
0006         SelectEvents = cms.vstring('pathALCARECOTkAlZMuMu')
0007     ),
0008     outputCommands = cms.untracked.vstring(
0009         'keep recoTracks_ALCARECOTkAlZMuMu_*_*',
0010         'keep recoTrackExtras_ALCARECOTkAlZMuMu_*_*',
0011         'keep TrackingRecHitsOwned_ALCARECOTkAlZMuMu_*_*',
0012         'keep SiPixelClusteredmNewDetSetVector_ALCARECOTkAlZMuMu_*_*',
0013         'keep SiStripClusteredmNewDetSetVector_ALCARECOTkAlZMuMu_*_*',
0014         'keep L1AcceptBunchCrossings_*_*_*',
0015         'keep L1GlobalTriggerReadoutRecord_gtDigis_*_*',
0016         'keep *_TriggerResults_*_*',
0017         'keep DcsStatuss_scalersRawToDigi_*_*',
0018         'keep *_offlinePrimaryVertices_*_*',
0019         'keep *_offlineBeamSpot_*_*')
0020 )
0021 
0022 # add branches for MC truth evaluation
0023 from GeneratorInterface.Configuration.GeneratorInterface_EventContent_cff import GeneratorInterfaceAOD
0024 from SimGeneral.Configuration.SimGeneral_EventContent_cff import SimGeneralAOD
0025 
0026 OutALCARECOTkAlZMuMu_noDrop.outputCommands.extend(GeneratorInterfaceAOD.outputCommands)
0027 _modifiedCommandsForGEN =  OutALCARECOTkAlZMuMu_noDrop.outputCommands.copy()
0028 _modifiedCommandsForGEN.remove('keep *_genParticles_*_*')    # full genParticles list is too heavy
0029 _modifiedCommandsForGEN.append('keep *_TkAlZMuMuGenMuonSelector_*_*') # Keep only the filtered gen muons
0030 OutALCARECOTkAlZMuMu_noDrop.outputCommands = _modifiedCommandsForGEN
0031 
0032 OutALCARECOTkAlZMuMu_noDrop.outputCommands.extend(SimGeneralAOD.outputCommands)
0033 
0034 # in Run3, SCAL digis replaced by onlineMetaDataDigis
0035 import copy
0036 _run3_common_removedCommands = OutALCARECOTkAlZMuMu_noDrop.outputCommands.copy()
0037 _run3_common_removedCommands.remove('keep DcsStatuss_scalersRawToDigi_*_*')
0038 
0039 _run3_common_extraCommands = ['keep DCSRecord_onlineMetaDataDigis_*_*']
0040 
0041 from Configuration.Eras.Modifier_run3_common_cff import run3_common
0042 run3_common.toModify(OutALCARECOTkAlZMuMu_noDrop, outputCommands = _run3_common_removedCommands + _run3_common_extraCommands)
0043 
0044 # in Phase2, remove the SiStrip clusters and keep the OT ones instead
0045 _phase2_common_removedCommands = OutALCARECOTkAlZMuMu_noDrop.outputCommands.copy()
0046 _phase2_common_removedCommands.remove('keep SiStripClusteredmNewDetSetVector_ALCARECOTkAlZMuMu_*_*')
0047 
0048 _phase2_common_extraCommands = ['keep Phase2TrackerCluster1DedmNewDetSetVector_ALCARECOTkAlZMuMu_*_*']
0049 
0050 from Configuration.Eras.Modifier_phase2_common_cff import phase2_common
0051 phase2_common.toModify(OutALCARECOTkAlZMuMu_noDrop, outputCommands = _phase2_common_removedCommands + _phase2_common_extraCommands )
0052 
0053 OutALCARECOTkAlZMuMu = OutALCARECOTkAlZMuMu_noDrop.clone()
0054 OutALCARECOTkAlZMuMu.outputCommands.insert(0, "drop *")