CMS 3D CMS Logo

SimMuon_EventContent_cff.py
Go to the documentation of this file.
1 # The following comments couldn't be translated into the new config version:
2 
3 #save digis
4 
5 #save digis sim link and trigger infos
6 
7 import FWCore.ParameterSet.Config as cms
8 
9 # Used to make conditional changes for different running scenarios
10 
11 #Full Event content with DIGI
12 SimMuonFEVTDEBUG = cms.PSet(
13  outputCommands = cms.untracked.vstring('keep *_simMuonCSCDigis_*_*',
14  'keep *_simMuonDTDigis_*_*',
15  'keep *_simMuonRPCDigis_*_*')
16 )
17 #RAW content
18 SimMuonRAW = cms.PSet(
19  outputCommands = cms.untracked.vstring('keep StripDigiSimLinkedmDetSetVector_simMuonCSCDigis_*_*',
20  'keep CSCDetIdCSCComparatorDigiMuonDigiCollection_simMuonCSCDigis_*_*',
21  'keep DTLayerIdDTDigiSimLinkMuonDigiCollection_simMuonDTDigis_*_*',
22  'keep RPCDigiSimLinkedmDetSetVector_simMuonRPCDigis_*_*')
23 )
24 # Add extra collections if running in Run 2. Not sure why but these
25 # collections were added to pretty much all event content in the old
26 # customisation function.
27 from Configuration.Eras.Modifier_run2_common_cff import run2_common
28 run2_common.toModify( SimMuonRAW.outputCommands, func=lambda outputCommands: outputCommands.append('keep *_simMuonCSCDigis_*_*') )
29 run2_common.toModify( SimMuonRAW.outputCommands, func=lambda outputCommands: outputCommands.append('keep *_simMuonRPCDigis_*_*') )
30 
31 #RECO content
32 SimMuonRECO = cms.PSet(
33  outputCommands = cms.untracked.vstring('keep StripDigiSimLinkedmDetSetVector_simMuonCSCDigis_*_*',
34  'keep DTLayerIdDTDigiSimLinkMuonDigiCollection_simMuonDTDigis_*_*',
35  'keep RPCDigiSimLinkedmDetSetVector_simMuonRPCDigis_*_*')
36 )
37 #AOD content
38 SimMuonAOD = cms.PSet(
39  outputCommands = cms.untracked.vstring(
40  # Sim matching information
41  'keep *_muonSimClassifier_*_*'
42  )
43 )
44 SimMuonRECO.outputCommands.extend(SimMuonAOD.outputCommands)
45 
46 from Configuration.Eras.Modifier_run2_GEM_2017_cff import run2_GEM_2017
47 run2_GEM_2017.toModify( SimMuonFEVTDEBUG, outputCommands = SimMuonFEVTDEBUG.outputCommands + ['keep *_simMuonGEMDigis_*_*',
48  'keep *_simMuonGEMPadDigis_*_*',
49  'keep *_simMuonGEMPadDigiClusters_*_*'] )
50 run2_GEM_2017.toModify( SimMuonRAW, outputCommands = SimMuonRAW.outputCommands + ['keep StripDigiSimLinkedmDetSetVector_simMuonGEMDigis_*_*'] )
51 run2_GEM_2017.toModify( SimMuonRECO, outputCommands = SimMuonRECO.outputCommands + ['keep StripDigiSimLinkedmDetSetVector_simMuonGEMDigis_*_*'] )
52 
53 
54 from Configuration.Eras.Modifier_run3_GEM_cff import run3_GEM
55 run3_GEM.toModify( SimMuonFEVTDEBUG, outputCommands = SimMuonFEVTDEBUG.outputCommands + ['keep *_simMuonGEMDigis_*_*',
56  'keep *_simMuonGEMPadDigis_*_*',
57  'keep *_simMuonGEMPadDigiClusters_*_*'] )
58 run3_GEM.toModify( SimMuonRAW, outputCommands = SimMuonRAW.outputCommands + ['keep StripDigiSimLinkedmDetSetVector_simMuonGEMDigis_*_*'] )
59 run3_GEM.toModify( SimMuonRECO, outputCommands = SimMuonRECO.outputCommands + ['keep StripDigiSimLinkedmDetSetVector_simMuonGEMDigis_*_*'] )
60 
61 
62 from Configuration.Eras.Modifier_phase2_muon_cff import phase2_muon
63 phase2_muon.toModify( SimMuonFEVTDEBUG, outputCommands = SimMuonFEVTDEBUG.outputCommands + ['keep *_simMuonME0PseudoDigis_*_*',
64  'keep *_simMuonME0PseudoReDigis_*_*',
65  'keep *_simMuonME0Digis_*_*',
66  'keep *_simMuonME0PadDigis_*_*',
67  'keep *_simMuonME0PadDigiClusters_*_*'] )
68 phase2_muon.toModify( SimMuonRAW, outputCommands = SimMuonRAW.outputCommands + ['keep StripDigiSimLinkedmDetSetVector_simMuonME0Digis_*_*'] )
69 phase2_muon.toModify( SimMuonRECO, outputCommands = SimMuonRECO.outputCommands + ['keep StripDigiSimLinkedmDetSetVector_simMuonME0Digis_*_*'] )