Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 14:30:10

0001 # The following comments couldn't be translated into the new config version:
0002 
0003 #save digis
0004 
0005 #save digis sim link and trigger infos
0006 
0007 import FWCore.ParameterSet.Config as cms
0008 
0009 # Used to make conditional changes for different running scenarios
0010 
0011 #Full Event content with DIGI
0012 SimMuonFEVTDEBUG = cms.PSet(
0013     outputCommands = cms.untracked.vstring('keep *_simMuonCSCDigis_*_*',
0014         'keep *_simMuonDTDigis_*_*',
0015         'keep *_simMuonRPCDigis_*_*')
0016 )
0017 #RAW content
0018 SimMuonRAW = cms.PSet(
0019     outputCommands = cms.untracked.vstring('keep StripDigiSimLinkedmDetSetVector_simMuonCSCDigis_*_*',
0020         'keep CSCDetIdCSCComparatorDigiMuonDigiCollection_simMuonCSCDigis_*_*',
0021         'keep DTLayerIdDTDigiSimLinkMuonDigiCollection_simMuonDTDigis_*_*',
0022         'keep RPCDigiSimLinkedmDetSetVector_simMuonRPCDigis_*_*')
0023 )
0024 # Add extra collections if running in Run 2. Not sure why but these
0025 # collections were added to pretty much all event content in the old
0026 # customisation function.
0027 from Configuration.Eras.Modifier_run2_common_cff import run2_common
0028 run2_common.toModify( SimMuonRAW.outputCommands, func=lambda outputCommands: outputCommands.append('keep *_simMuonCSCDigis_*_*') )
0029 run2_common.toModify( SimMuonRAW.outputCommands, func=lambda outputCommands: outputCommands.append('keep *_simMuonRPCDigis_*_*') )
0030 
0031 #RECO content
0032 SimMuonRECO = cms.PSet(
0033     outputCommands = cms.untracked.vstring('keep StripDigiSimLinkedmDetSetVector_simMuonCSCDigis_*_*',
0034         'keep DTLayerIdDTDigiSimLinkMuonDigiCollection_simMuonDTDigis_*_*',
0035         'keep RPCDigiSimLinkedmDetSetVector_simMuonRPCDigis_*_*')
0036 )
0037 
0038 #AOD content
0039 SimMuonAOD = cms.PSet(
0040     outputCommands = cms.untracked.vstring(
0041         # Sim matching information
0042         'keep *_muonSimClassifier_*_*'
0043         )
0044 )
0045 SimMuonRECO.outputCommands.extend(SimMuonAOD.outputCommands)
0046 
0047 # Event content for premixing library
0048 SimMuonPREMIX = cms.PSet(
0049     outputCommands = cms.untracked.vstring(
0050         'keep *_mix_g4SimHitsMuonDTHits_*',
0051         'keep *_mix_g4SimHitsMuonCSCHits_*',
0052         'keep *_mix_g4SimHitsMuonRPCHits_*',
0053     )
0054 )
0055 
0056 from Configuration.Eras.Modifier_run2_GEM_2017_cff import run2_GEM_2017
0057 run2_GEM_2017.toModify( SimMuonFEVTDEBUG, outputCommands = SimMuonFEVTDEBUG.outputCommands + ['keep *_simMuonGEMDigis_*_*'] )
0058 run2_GEM_2017.toModify( SimMuonRAW, outputCommands = SimMuonRAW.outputCommands + ['keep *DigiSimLinkedmDetSetVector_simMuonGEMDigis_*_*'] )
0059 run2_GEM_2017.toModify( SimMuonRECO, outputCommands = SimMuonRECO.outputCommands + ['keep *DigiSimLinkedmDetSetVector_simMuonGEMDigis_*_*'] )
0060 run2_GEM_2017.toModify( SimMuonPREMIX, outputCommands = SimMuonPREMIX.outputCommands + ['keep *_mix_g4SimHitsMuonGEMHits_*'] )
0061 
0062 
0063 from Configuration.Eras.Modifier_run3_GEM_cff import run3_GEM
0064 run3_GEM.toModify( SimMuonFEVTDEBUG, outputCommands = SimMuonFEVTDEBUG.outputCommands + ['keep *_simMuonGEMDigis_*_*'] )
0065 run3_GEM.toModify( SimMuonRAW, outputCommands = SimMuonRAW.outputCommands + ['keep *DigiSimLinkedmDetSetVector_simMuonGEMDigis_*_*'] )
0066 run3_GEM.toModify( SimMuonRECO, outputCommands = SimMuonRECO.outputCommands + ['keep *DigiSimLinkedmDetSetVector_simMuonGEMDigis_*_*'] )
0067 run3_GEM.toModify( SimMuonPREMIX, outputCommands = SimMuonPREMIX.outputCommands + ['keep *_mix_g4SimHitsMuonGEMHits_*'] )
0068 
0069 from Configuration.Eras.Modifier_phase2_muon_cff import phase2_muon
0070 phase2_muon.toModify( SimMuonFEVTDEBUG, outputCommands = SimMuonFEVTDEBUG.outputCommands + ['keep *_simMuonME0PseudoDigis_*_*',
0071                                                                                             'keep *_simMuonME0PseudoReDigis_*_*',
0072                                                                                             'keep *_simMuonME0Digis_*_*'] )
0073 phase2_muon.toModify( SimMuonRAW, outputCommands = SimMuonRAW.outputCommands + ['keep *DigiSimLinkedmDetSetVector_simMuonME0Digis_*_*'] )
0074 phase2_muon.toModify( SimMuonRECO, outputCommands = SimMuonRECO.outputCommands + ['keep *DigiSimLinkedmDetSetVector_simMuonME0Digis_*_*'] )
0075 phase2_muon.toModify( SimMuonPREMIX, outputCommands = SimMuonPREMIX.outputCommands + ['keep *_mix_g4SimHitsMuonME0Hits_*'] )
0076 
0077 
0078 # FastSim uses different naming convention
0079 from Configuration.Eras.Modifier_fastSim_cff import fastSim
0080 def _renameForFastsim(s):
0081     return s.replace("_g4Sim", "_MuonSim")
0082 
0083 fastSim.toModify(SimMuonPREMIX, outputCommands = list( ( _renameForFastsim(item) for item in SimMuonPREMIX.outputCommands.value())))