def setCrossingFrameOn(process): process.mix.mixObjects.mixCH.crossingFrames = cms.untracked.vstring( 'CaloHitsTk', 'CastorBU', 'CastorFI', 'CastorPL', 'CastorTU', 'EcalHitsEB', 'EcalHitsEE', 'EcalHitsES', 'EcalTBH4BeamHits', 'HcalHits', 'HcalTB06BeamHits', 'ZDCHITS') process.mix.mixObjects.mixTracks.makeCrossingFrame = cms.untracked.bool( True) process.mix.mixObjects.mixVertices.makeCrossingFrame = cms.untracked.bool( True) process.mix.mixObjects.mixHepMC.makeCrossingFrame = cms.untracked.bool( True) process.mix.mixObjects.mixSH.crossingFrames = cms.untracked.vstring( 'BSCHits', 'FP420SI', 'MuonCSCHits', 'MuonDTHits', 'MuonRPCHits', 'TotemHitsRP', 'TotemHitsT1', 'TotemHitsT2Gem', 'TrackerHitsPixelBarrelHighTof', 'TrackerHitsPixelBarrelLowTof', 'TrackerHitsPixelEndcapHighTof', 'TrackerHitsPixelEndcapLowTof', 'TrackerHitsTECHighTof', 'TrackerHitsTECLowTof', 'TrackerHitsTIBHighTof', 'TrackerHitsTIBLowTof', 'TrackerHitsTIDHighTof', 'TrackerHitsTIDLowTof', 'TrackerHitsTOBHighTof', 'TrackerHitsTOBLowTof') from Configuration.Eras.Modifier_run2_GEM_2017_cff import run2_GEM_2017 run2_GEM_2017.toModify( process.mix.mixObjects, mixSH=dict(crossingFrames=process.mix.mixObjects.mixSH.crossingFrames + ['MuonGEMHits'])) from Configuration.Eras.Modifier_run3_GEM_cff import run3_GEM run3_GEM.toModify( process.mix.mixObjects, mixSH=dict(crossingFrames=process.mix.mixObjects.mixSH.crossingFrames + ['MuonGEMHits'])) from Configuration.Eras.Modifier_phase2_muon_cff import phase2_muon phase2_muon.toModify( process.mix.mixObjects, mixSH=dict(crossingFrames=process.mix.mixObjects.mixSH.crossingFrames + ['MuonME0Hits'])) from Configuration.Eras.Modifier_phase2_timing_layer_cff import phase2_timing_layer phase2_timing_layer.toModify( process.mix.mixObjects, mixSH=dict(crossingFrames=process.mix.mixObjects.mixSH.crossingFrames + ['FastTimerHitsBarrel', 'FastTimerHitsEndcap'])) return (process)
import FWCore.ParameterSet.Config as cms from EventFilter.GEMRawToDigi.muonGEMDigisDefault_cfi import muonGEMDigisDefault as _muonGEMDigisDefault muonGEMDigis = _muonGEMDigisDefault.clone() from Configuration.Eras.Modifier_run2_GEM_2017_cff import run2_GEM_2017 run2_GEM_2017.toModify(muonGEMDigis, useDBEMap=True)
pdgIdTP=cms.vint32(), signalOnlyTP=cms.bool(True), intimeOnlyTP=cms.bool(False), minRapidityTP=cms.double(-2.6), minHitTP=cms.int32(3), ptMinTP=cms.double(0.2), ptMaxTP=cms.double(1e100), maxRapidityTP=cms.double(2.6), tipTP=cms.double(1000))) trackingParticleSelection = cms.Sequence(mergedtruth) from Configuration.Eras.Modifier_run2_GEM_2017_cff import run2_GEM_2017 run2_GEM_2017.toModify( trackingParticleSelection, simHitCollections=dict( muon=trackingParticleSelection.simHitCollections.muon + ["g4SimHitsMuonGEMHits"])) from Configuration.Eras.Modifier_run3_GEM_cff import run3_GEM run3_GEM.toModify(trackingParticleSelection, simHitCollections=dict( muon=trackingParticleSelection.simHitCollections.muon + ["g4SimHitsMuonGEMHits"])) from Configuration.Eras.Modifier_phase2_muon_cff import phase2_muon phase2_muon.toModify( trackingParticleSelection, simHitCollections=dict( muon=trackingParticleSelection.simHitCollections.muon + ["g4SimHitsMuonME0Hits"]))
input = cms.VInputTag(cms.InputTag("CFWriter","g4SimHits")), type = cms.string('SimVertexPCrossingFrame') ) mixPCFHepMCProducts = cms.PSet( input = cms.VInputTag(cms.InputTag("CFWriter","generator")), type = cms.string('HepMCProductPCrossingFrame') ) from SimCalorimetry.HGCalSimProducers.hgcalDigitizer_cfi import hgceeDigitizer, hgchefrontDigitizer, hfnoseDigitizer from Configuration.Eras.Modifier_run2_GEM_2017_cff import run2_GEM_2017 run2_GEM_2017.toModify( theMixObjects, mixSH = dict( input = theMixObjects.mixSH.input + [ cms.InputTag("g4SimHits","MuonGEMHits") ], subdets = theMixObjects.mixSH.subdets + [ 'MuonGEMHits' ], crossingFrames = theMixObjects.mixSH.crossingFrames + [ 'MuonGEMHits' ] ) ) from Configuration.Eras.Modifier_run3_GEM_cff import run3_GEM run3_GEM.toModify( theMixObjects, mixSH = dict( input = theMixObjects.mixSH.input + [ cms.InputTag("g4SimHits","MuonGEMHits") ], subdets = theMixObjects.mixSH.subdets + [ 'MuonGEMHits' ], crossingFrames = theMixObjects.mixSH.crossingFrames + [ 'MuonGEMHits' ] ) ) from Configuration.Eras.Modifier_phase2_muon_cff import phase2_muon phase2_muon.toModify( theMixObjects, mixSH = dict( input = theMixObjects.mixSH.input + [ cms.InputTag("g4SimHits","MuonME0Hits") ],
cms.InputTag('cscpacker', 'CSCRawData'), cms.InputTag('csctfpacker', 'CSCTFRawData'), cms.InputTag('dtpacker'), cms.InputTag('dttfpacker'), cms.InputTag('ecalPacker'), cms.InputTag('esDigiToRaw'), cms.InputTag('gctDigiToRaw'), cms.InputTag('hcalRawDataVME'), cms.InputTag('l1GtEvmPack'), cms.InputTag('l1GtPack'), cms.InputTag('rpcpacker'), cms.InputTag('siPixelRawData') ), ) # # Make changes if using the Stage 1 trigger # from Configuration.Eras.Modifier_stage1L1Trigger_cff import stage1L1Trigger stage1L1Trigger.toModify( rawDataCollector.RawCollectionList, func = lambda list: list.append(cms.InputTag("l1tDigiToRaw")) ) from Configuration.Eras.Modifier_run2_HCAL_2017_cff import run2_HCAL_2017 run2_HCAL_2017.toModify( rawDataCollector.RawCollectionList, func = lambda list: list.append(cms.InputTag("hcalRawDatauHTR")) ) # GEM settings from Configuration.Eras.Modifier_run2_GEM_2017_cff import run2_GEM_2017 run2_GEM_2017.toModify( rawDataCollector.RawCollectionList, func = lambda list: list.append(cms.InputTag("gemPacker")) ) from Configuration.Eras.Modifier_run3_GEM_cff import run3_GEM run3_GEM.toModify( rawDataCollector.RawCollectionList, func = lambda list: list.append(cms.InputTag("gemPacker")) )
def setCrossingFrameOn(process): process.mix.mixObjects.mixCH.crossingFrames = cms.untracked.vstring( 'CaloHitsTk', 'CastorBU', 'CastorFI', 'CastorPL', 'CastorTU', 'EcalHitsEB', 'EcalHitsEE', 'EcalHitsES', 'EcalTBH4BeamHits', 'HcalHits', 'HcalTB06BeamHits', 'ZDCHITS') process.mix.mixObjects.mixTracks.makeCrossingFrame = cms.untracked.bool(True) process.mix.mixObjects.mixVertices.makeCrossingFrame = cms.untracked.bool(True) process.mix.mixObjects.mixHepMC.makeCrossingFrame = cms.untracked.bool(True) process.mix.mixObjects.mixSH.crossingFrames = cms.untracked.vstring( 'BSCHits', 'FP420SI', 'MuonCSCHits', 'MuonDTHits', 'MuonRPCHits', 'TotemHitsRP', 'TotemHitsT1', 'TotemHitsT2Gem', 'TrackerHitsPixelBarrelHighTof', 'TrackerHitsPixelBarrelLowTof', 'TrackerHitsPixelEndcapHighTof', 'TrackerHitsPixelEndcapLowTof', 'TrackerHitsTECHighTof', 'TrackerHitsTECLowTof', 'TrackerHitsTIBHighTof', 'TrackerHitsTIBLowTof', 'TrackerHitsTIDHighTof', 'TrackerHitsTIDLowTof', 'TrackerHitsTOBHighTof', 'TrackerHitsTOBLowTof') from Configuration.Eras.Modifier_run2_GEM_2017_cff import run2_GEM_2017 run2_GEM_2017.toModify( process.mix.mixObjects, mixSH = dict( crossingFrames = process.mix.mixObjects.mixSH.crossingFrames + [ 'MuonGEMHits' ] ) ) from Configuration.Eras.Modifier_run3_GEM_cff import run3_GEM run3_GEM.toModify( process.mix.mixObjects, mixSH = dict( crossingFrames = process.mix.mixObjects.mixSH.crossingFrames + [ 'MuonGEMHits' ] ) ) from Configuration.Eras.Modifier_phase2_muon_cff import phase2_muon phase2_muon.toModify( process.mix.mixObjects, mixSH = dict( crossingFrames = process.mix.mixObjects.mixSH.crossingFrames + [ 'MuonME0Hits' ] ) ) return(process)
fastSim.toModify(_entry, outputCommands = _entry.outputCommands + fastSimEC.dropPatTrigger) for _entry in [FEVTDEBUGEventContent,FEVTDEBUGHLTEventContent,FEVTEventContent]: phase2_tracker.toModify(_entry, outputCommands = _entry.outputCommands + [ 'keep Phase2TrackerDigiedmDetSetVector_mix_*_*', 'keep *_TTClustersFromPhase2TrackerDigis_*_*', 'keep *_TTStubsFromPhase2TrackerDigis_*_*' ]) from Configuration.Eras.Modifier_run2_GEM_2017_cff import run2_GEM_2017 from Configuration.Eras.Modifier_run3_GEM_cff import run3_GEM from Configuration.Eras.Modifier_phase2_muon_cff import phase2_muon from Configuration.Eras.Modifier_pp_on_AA_2018_cff import pp_on_AA_2018 for _entry in [FEVTDEBUGEventContent,FEVTDEBUGHLTEventContent,FEVTEventContent]: run2_GEM_2017.toModify(_entry, outputCommands = _entry.outputCommands + ['keep *_muonGEMDigis_*_*']) run3_GEM.toModify(_entry, outputCommands = _entry.outputCommands + ['keep *_muonGEMDigis_*_*']) phase2_muon.toModify(_entry, outputCommands = _entry.outputCommands + ['keep *_muonGEMDigis_*_*']) pp_on_AA_2018.toModify(_entry, outputCommands = _entry.outputCommands + ['keep FEDRawDataCollection_rawDataRepacker_*_*']) from RecoLocalFastTime.Configuration.RecoLocalFastTime_EventContent_cff import RecoLocalFastTimeFEVT, RecoLocalFastTimeRECO, RecoLocalFastTimeAOD from Configuration.Eras.Modifier_phase2_timing_layer_cff import phase2_timing_layer def _addOutputCommands(mod, newCommands): phase2_timing_layer.toModify(mod, outputCommands = mod.outputCommands + newCommands.outputCommands) _addOutputCommands(FEVTDEBUGEventContent,RecoLocalFastTimeFEVT) _addOutputCommands(FEVTDEBUGHLTEventContent,RecoLocalFastTimeFEVT) _addOutputCommands(FEVTEventContent,RecoLocalFastTimeFEVT) _addOutputCommands(RECOSIMEventContent,RecoLocalFastTimeRECO) _addOutputCommands(AODSIMEventContent,RecoLocalFastTimeAOD)
input = cms.VInputTag(cms.InputTag("CFWriter","g4SimHits")), type = cms.string('SimVertexPCrossingFrame') ) mixPCFHepMCProducts = cms.PSet( input = cms.VInputTag(cms.InputTag("CFWriter","generator")), type = cms.string('HepMCProductPCrossingFrame') ) from SimCalorimetry.HGCalSimProducers.hgcalDigitizer_cfi import hgceeDigitizer, hgchefrontDigitizer from Configuration.Eras.Modifier_run2_GEM_2017_cff import run2_GEM_2017 run2_GEM_2017.toModify( theMixObjects, mixSH = dict( input = theMixObjects.mixSH.input + [ cms.InputTag("g4SimHits","MuonGEMHits") ], subdets = theMixObjects.mixSH.subdets + [ 'MuonGEMHits' ], crossingFrames = theMixObjects.mixSH.crossingFrames + [ 'MuonGEMHits' ] ) ) from Configuration.Eras.Modifier_run3_GEM_cff import run3_GEM run3_GEM.toModify( theMixObjects, mixSH = dict( input = theMixObjects.mixSH.input + [ cms.InputTag("g4SimHits","MuonGEMHits") ], subdets = theMixObjects.mixSH.subdets + [ 'MuonGEMHits' ], crossingFrames = theMixObjects.mixSH.crossingFrames + [ 'MuonGEMHits' ] ) ) from Configuration.Eras.Modifier_phase2_muon_cff import phase2_muon phase2_muon.toModify( theMixObjects, mixSH = dict( input = theMixObjects.mixSH.input + [ cms.InputTag("g4SimHits","MuonME0Hits") ],
# to save the status of the last event (useful for crashes) , saveFileName=cms.untracked.string('') # to restore the status of the last event, # comment the line above and decomment the following one # ,restoreFileName = cms.untracked.string('RandomEngineState.log') # to reproduce events using the RandomEngineStateProducer (source excluded), # decomment the following one # ,restoreStateLabel = cms.untracked.string('randomEngineStateProducer') ) randomEngineStateProducer = cms.EDProducer("RandomEngineStateProducer") from Configuration.Eras.Modifier_run2_GEM_2017_cff import run2_GEM_2017 run2_GEM_2017.toModify(RandomNumberGeneratorService, simMuonGEMDigis=cms.PSet( initialSeed=cms.untracked.uint32(1234567), engineName=cms.untracked.string('HepJamesRandom'))) from Configuration.Eras.Modifier_run3_GEM_cff import run3_GEM run3_GEM.toModify(RandomNumberGeneratorService, simMuonGEMDigis=cms.PSet( initialSeed=cms.untracked.uint32(1234567), engineName=cms.untracked.string('HepJamesRandom'))) from Configuration.Eras.Modifier_phase2_muon_cff import phase2_muon phase2_muon.toModify( RandomNumberGeneratorService, simMuonME0Digis=cms.PSet( initialSeed=cms.untracked.uint32(1234567), engineName=cms.untracked.string('HepJamesRandom')), simMuonME0PseudoDigis=cms.PSet(
'keep *_mixData_RPCDigiSimLink_*', 'keep DTLayerIdDTDigiSimLinkMuonDigiCollection_mixData_*_*', ]) #AOD content SimMuonAOD = cms.PSet( outputCommands = cms.untracked.vstring( # Sim matching information 'keep *_muonSimClassifier_*_*' ) ) SimMuonRECO.outputCommands.extend(SimMuonAOD.outputCommands) from Configuration.Eras.Modifier_run2_GEM_2017_cff import run2_GEM_2017 run2_GEM_2017.toModify( SimMuonFEVTDEBUG, outputCommands = SimMuonFEVTDEBUG.outputCommands + ['keep *_simMuonGEMDigis_*_*', 'keep *_simMuonGEMPadDigis_*_*', 'keep *_simMuonGEMPadDigiClusters_*_*'] ) run2_GEM_2017.toModify( SimMuonRAW, outputCommands = SimMuonRAW.outputCommands + ['keep StripDigiSimLinkedmDetSetVector_simMuonGEMDigis_*_*'] ) run2_GEM_2017.toModify( SimMuonRECO, outputCommands = SimMuonRECO.outputCommands + ['keep StripDigiSimLinkedmDetSetVector_simMuonGEMDigis_*_*'] ) from Configuration.Eras.Modifier_run3_GEM_cff import run3_GEM run3_GEM.toModify( SimMuonFEVTDEBUG, outputCommands = SimMuonFEVTDEBUG.outputCommands + ['keep *_simMuonGEMDigis_*_*', 'keep *_simMuonGEMPadDigis_*_*', 'keep *_simMuonGEMPadDigiClusters_*_*'] ) run3_GEM.toModify( SimMuonRAW, outputCommands = SimMuonRAW.outputCommands + ['keep StripDigiSimLinkedmDetSetVector_simMuonGEMDigis_*_*'] ) run3_GEM.toModify( SimMuonRECO, outputCommands = SimMuonRECO.outputCommands + ['keep StripDigiSimLinkedmDetSetVector_simMuonGEMDigis_*_*'] ) from Configuration.Eras.Modifier_phase2_muon_cff import phase2_muon phase2_muon.toModify( SimMuonFEVTDEBUG, outputCommands = SimMuonFEVTDEBUG.outputCommands + ['keep *_simMuonME0PseudoDigis_*_*',
from Configuration.Eras.Modifier_fastSim_cff import fastSim fastSim.toModify(trackingParticles, # for unknown reasons, fastsim needs this flag on allowDifferentSimHitProcesses = True, # fastsim labels for simhits, simtracks, simvertices simHitCollections = cms.PSet( muon = cms.VInputTag( cms.InputTag('MuonSimHits','MuonDTHits'), cms.InputTag('MuonSimHits','MuonCSCHits'), cms.InputTag('MuonSimHits','MuonRPCHits') ), trackerAndPixel = cms.VInputTag( cms.InputTag('famosSimHits','TrackerHits') ) ), simTrackCollection = 'famosSimHits', simVertexCollection = 'famosSimHits' ) from Configuration.Eras.Modifier_run2_GEM_2017_cff import run2_GEM_2017 run2_GEM_2017.toModify(trackingParticles, simHitCollections = dict( muon = trackingParticles.simHitCollections.muon+[cms.InputTag("g4SimHits","MuonGEMHits")])) from Configuration.Eras.Modifier_run3_GEM_cff import run3_GEM run3_GEM.toModify(trackingParticles, simHitCollections = dict( muon = trackingParticles.simHitCollections.muon+[cms.InputTag("g4SimHits","MuonGEMHits")])) from Configuration.Eras.Modifier_phase2_muon_cff import phase2_muon phase2_muon.toModify( trackingParticles, simHitCollections = dict( muon = trackingParticles.simHitCollections.muon+[cms.InputTag("g4SimHits","MuonME0Hits")])) from Configuration.Eras.Modifier_phase2_tracker_cff import phase2_tracker phase2_tracker.toModify( trackingParticles, simHitCollections = dict( tracker = []) )
import FWCore.ParameterSet.Config as cms from EventFilter.GEMRawToDigi.gemPackerDefault_cfi import gemPackerDefault as _gemPackerDefault gemPacker = _gemPackerDefault.clone() from Configuration.Eras.Modifier_run2_GEM_2017_cff import run2_GEM_2017 run2_GEM_2017.toModify(gemPacker, useDBEMap=True)
) # to save the status of the last event (useful for crashes) ,saveFileName = cms.untracked.string('') # to restore the status of the last event, # comment the line above and decomment the following one # ,restoreFileName = cms.untracked.string('RandomEngineState.log') # to reproduce events using the RandomEngineStateProducer (source excluded), # decomment the following one # ,restoreStateLabel = cms.untracked.string('randomEngineStateProducer') ) randomEngineStateProducer = cms.EDProducer("RandomEngineStateProducer") from Configuration.Eras.Modifier_run2_GEM_2017_cff import run2_GEM_2017 run2_GEM_2017.toModify(RandomNumberGeneratorService, simMuonGEMDigis = cms.PSet( initialSeed = cms.untracked.uint32(1234567), engineName = cms.untracked.string('HepJamesRandom')) ) from Configuration.Eras.Modifier_run3_GEM_cff import run3_GEM run3_GEM.toModify( RandomNumberGeneratorService, simMuonGEMDigis = cms.PSet( initialSeed = cms.untracked.uint32(1234567), engineName = cms.untracked.string('HepJamesRandom')) ) from Configuration.Eras.Modifier_phase2_muon_cff import phase2_muon phase2_muon.toModify( RandomNumberGeneratorService, simMuonME0Digis = cms.PSet( initialSeed = cms.untracked.uint32(1234567),
), select = cms.PSet( lipTP = cms.double(1000), chargedOnlyTP = cms.bool(True), pdgIdTP = cms.vint32(), signalOnlyTP = cms.bool(True), intimeOnlyTP = cms.bool(False), minRapidityTP = cms.double(-2.6), minHitTP = cms.int32(3), ptMinTP = cms.double(0.2), ptMaxTP = cms.double(1e100), maxRapidityTP = cms.double(2.6), tipTP = cms.double(1000) ) ) trackingParticleSelection = cms.Sequence(mergedtruth) from Configuration.Eras.Modifier_run2_GEM_2017_cff import run2_GEM_2017 run2_GEM_2017.toModify(trackingParticleSelection, simHitCollections = dict( muon = trackingParticleSelection.simHitCollections.muon+["g4SimHitsMuonGEMHits"])) from Configuration.Eras.Modifier_run3_GEM_cff import run3_GEM run3_GEM.toModify(trackingParticleSelection, simHitCollections = dict( muon = trackingParticleSelection.simHitCollections.muon+["g4SimHitsMuonGEMHits"])) from Configuration.Eras.Modifier_phase2_muon_cff import phase2_muon phase2_muon.toModify( trackingParticleSelection, simHitCollections = dict( muon = trackingParticleSelection.simHitCollections.muon+["g4SimHitsMuonME0Hits"]))
) # to save the status of the last event (useful for crashes) ,saveFileName = cms.untracked.string('') # to restore the status of the last event, # comment the line above and decomment the following one # ,restoreFileName = cms.untracked.string('RandomEngineState.log') # to reproduce events using the RandomEngineStateProducer (source excluded), # decomment the following one # ,restoreStateLabel = cms.untracked.string('randomEngineStateProducer') ) randomEngineStateProducer = cms.EDProducer("RandomEngineStateProducer") from Configuration.Eras.Modifier_run2_GEM_2017_cff import run2_GEM_2017 run2_GEM_2017.toModify(RandomNumberGeneratorService, simMuonGEMDigis = cms.PSet( initialSeed = cms.untracked.uint32(1234567), engineName = FullSimEngine) ) from Configuration.Eras.Modifier_run3_GEM_cff import run3_GEM run3_GEM.toModify( RandomNumberGeneratorService, simMuonGEMDigis = cms.PSet( initialSeed = cms.untracked.uint32(1234567), engineName = FullSimEngine) ) from Configuration.Eras.Modifier_phase2_muon_cff import phase2_muon phase2_muon.toModify( RandomNumberGeneratorService, simMuonME0Digis = cms.PSet( initialSeed = cms.untracked.uint32(1234567),
'keep *_muonSimClassifier_*_*' ) ) SimMuonRECO.outputCommands.extend(SimMuonAOD.outputCommands) # Event content for premixing library SimMuonPREMIX = cms.PSet( outputCommands = cms.untracked.vstring( 'keep *_mix_g4SimHitsMuonDTHits_*', 'keep *_mix_g4SimHitsMuonCSCHits_*', 'keep *_mix_g4SimHitsMuonRPCHits_*', ) ) from Configuration.Eras.Modifier_run2_GEM_2017_cff import run2_GEM_2017 run2_GEM_2017.toModify( SimMuonFEVTDEBUG, outputCommands = SimMuonFEVTDEBUG.outputCommands + ['keep *_simMuonGEMDigis_*_*'] ) run2_GEM_2017.toModify( SimMuonRAW, outputCommands = SimMuonRAW.outputCommands + ['keep *DigiSimLinkedmDetSetVector_simMuonGEMDigis_*_*'] ) run2_GEM_2017.toModify( SimMuonRECO, outputCommands = SimMuonRECO.outputCommands + ['keep *DigiSimLinkedmDetSetVector_simMuonGEMDigis_*_*'] ) run2_GEM_2017.toModify( SimMuonPREMIX, outputCommands = SimMuonPREMIX.outputCommands + ['keep *_mix_g4SimHitsMuonGEMHits_*'] ) from Configuration.Eras.Modifier_run3_GEM_cff import run3_GEM run3_GEM.toModify( SimMuonFEVTDEBUG, outputCommands = SimMuonFEVTDEBUG.outputCommands + ['keep *_simMuonGEMDigis_*_*'] ) run3_GEM.toModify( SimMuonRAW, outputCommands = SimMuonRAW.outputCommands + ['keep *DigiSimLinkedmDetSetVector_simMuonGEMDigis_*_*'] ) run3_GEM.toModify( SimMuonRECO, outputCommands = SimMuonRECO.outputCommands + ['keep *DigiSimLinkedmDetSetVector_simMuonGEMDigis_*_*'] ) run3_GEM.toModify( SimMuonPREMIX, outputCommands = SimMuonPREMIX.outputCommands + ['keep *_mix_g4SimHitsMuonGEMHits_*'] ) from Configuration.Eras.Modifier_phase2_muon_cff import phase2_muon phase2_muon.toModify( SimMuonFEVTDEBUG, outputCommands = SimMuonFEVTDEBUG.outputCommands + ['keep *_simMuonME0PseudoDigis_*_*', 'keep *_simMuonME0PseudoReDigis_*_*', 'keep *_simMuonME0Digis_*_*'] )
import FWCore.ParameterSet.Config as cms # AOD content RecoLocalMuonAOD = cms.PSet(outputCommands=cms.untracked.vstring()) from Configuration.Eras.Modifier_run2_GEM_2017_cff import run2_GEM_2017 from Configuration.Eras.Modifier_run3_GEM_cff import run3_GEM from Configuration.Eras.Modifier_phase2_muon_cff import phase2_muon run2_GEM_2017.toModify(RecoLocalMuonAOD, outputCommands=RecoLocalMuonAOD.outputCommands + ['keep *_gemRecHits_*_*', 'keep *_gemSegments_*_*']) run3_GEM.toModify(RecoLocalMuonAOD, outputCommands=RecoLocalMuonAOD.outputCommands + ['keep *_gemRecHits_*_*', 'keep *_gemSegments_*_*']) phase2_muon.toModify(RecoLocalMuonAOD, outputCommands=RecoLocalMuonAOD.outputCommands + ['keep *_me0RecHits_*_*', 'keep *_me0Segments_*_*']) # RECO content RecoLocalMuonRECO = cms.PSet(outputCommands=cms.untracked.vstring( 'keep *_muonDTDigis_*_*', 'keep *_dttfDigis_*_*', 'keep *_dt1DRecHits_*_*', 'keep *_dt4DSegments_*_*', 'keep *_dt4DSegmentsT0Seg_*_*', 'keep *_csc2DRecHits_*_*', 'keep *_cscSegments_*_*', 'keep RPCDetIdRPCDigiMuonDigiCollection_muonRPCDigis_*_*', 'keep *_rpcRecHits_*_*')) RecoLocalMuonRECO.outputCommands.extend(RecoLocalMuonAOD.outputCommands) # Full Event content RecoLocalMuonFEVT = cms.PSet(outputCommands=cms.untracked.vstring( 'keep RPCDetIdRPCDigiMuonDigiCollection_*_*_*')) RecoLocalMuonFEVT.outputCommands.extend(RecoLocalMuonRECO.outputCommands)
FEVTEventContent.outputCommands.extend(CommonEventContent.outputCommands) ctpps.toModify(FEVTEventContent, outputCommands = FEVTEventContent.outputCommands + RecoCTPPSFEVT.outputCommands) phase2_hgcal.toModify(FEVTEventContent, outputCommands = FEVTEventContent.outputCommands + TICL_FEVT.outputCommands) phase2_tracker.toModify(FEVTEventContent, outputCommands = FEVTEventContent.outputCommands + [ 'keep Phase2TrackerDigiedmDetSetVector_mix_*_*', 'keep *_TTClustersFromPhase2TrackerDigis_*_*', 'keep *_TTStubsFromPhase2TrackerDigis_*_*', 'keep *_TrackerDTC_*_*', 'keep *_*_Level1TTTracks_*']) phase2_muon.toModify(FEVTEventContent, outputCommands = FEVTEventContent.outputCommands + ['keep *_muonGEMDigis_*_*']) run2_GEM_2017.toModify(FEVTEventContent, outputCommands = FEVTEventContent.outputCommands + ['keep *_muonGEMDigis_*_*']) run3_GEM.toModify(FEVTEventContent, outputCommands = FEVTEventContent.outputCommands + ['keep *_muonGEMDigis_*_*']) pp_on_AA.toModify(FEVTEventContent, outputCommands = FEVTEventContent.outputCommands + ['keep FEDRawDataCollection_rawDataRepacker_*_*']) phase2_timing_layer.toModify(FEVTEventContent, outputCommands = FEVTEventContent.outputCommands + RecoLocalFastTimeFEVT.outputCommands) phase2_timing_layer.toModify(FEVTEventContent, outputCommands = FEVTEventContent.outputCommands + RecoMTDFEVT.outputCommands) FEVTHLTALLEventContent = cms.PSet( outputCommands = cms.untracked.vstring('drop *'), splitLevel = cms.untracked.int32(0), ) FEVTHLTALLEventContent.outputCommands.extend(FEVTEventContent.outputCommands) FEVTHLTALLEventContent.outputCommands.append('keep *_*_*_HLT')
# for unknown reasons, fastsim needs this flag on allowDifferentSimHitProcesses=True, # fastsim labels for simhits, simtracks, simvertices simHitCollections=cms.PSet(muon=cms.VInputTag( cms.InputTag('MuonSimHits', 'MuonDTHits'), cms.InputTag('MuonSimHits', 'MuonCSCHits'), cms.InputTag('MuonSimHits', 'MuonRPCHits')), trackerAndPixel=cms.VInputTag( cms.InputTag('famosSimHits', 'TrackerHits'))), simTrackCollection='famosSimHits', simVertexCollection='famosSimHits') from Configuration.Eras.Modifier_run2_GEM_2017_cff import run2_GEM_2017 run2_GEM_2017.toModify( trackingParticles, simHitCollections=dict(muon=trackingParticles.simHitCollections.muon + [cms.InputTag("g4SimHits", "MuonGEMHits")])) from Configuration.Eras.Modifier_run3_GEM_cff import run3_GEM run3_GEM.toModify( trackingParticles, simHitCollections=dict(muon=trackingParticles.simHitCollections.muon + [cms.InputTag("g4SimHits", "MuonGEMHits")])) from Configuration.Eras.Modifier_phase2_muon_cff import phase2_muon phase2_muon.toModify( trackingParticles, simHitCollections=dict(muon=trackingParticles.simHitCollections.muon + [cms.InputTag("g4SimHits", "MuonME0Hits")])) from Configuration.Eras.Modifier_phase2_tracker_cff import phase2_tracker
from Configuration.Eras.Modifier_stage1L1Trigger_cff import stage1L1Trigger stage1L1Trigger.toModify( rawDataCollector.RawCollectionList, func=lambda list: list.append(cms.InputTag("l1tDigiToRaw"))) from Configuration.Eras.Modifier_run2_HCAL_2017_cff import run2_HCAL_2017 run2_HCAL_2017.toModify( rawDataCollector.RawCollectionList, func=lambda list: list.append(cms.InputTag("hcalRawDatauHTR"))) # GEM settings from Configuration.Eras.Modifier_run2_GEM_2017_cff import run2_GEM_2017 run2_GEM_2017.toModify( rawDataCollector.RawCollectionList, func=lambda list: list.append(cms.InputTag("gemPacker"))) from Configuration.Eras.Modifier_run3_GEM_cff import run3_GEM run3_GEM.toModify(rawDataCollector.RawCollectionList, func=lambda list: list.append(cms.InputTag("gemPacker"))) # For Run2 it is needed to include the general ctpps era ctpps_2016 from Configuration.Eras.Modifier_ctpps_2021_cff import ctpps_2021 ctpps_2021.toModify( rawDataCollector.RawCollectionList, func=lambda list: list.extend( [cms.InputTag("ctppsTotemRawData"), cms.InputTag("ctppsPixelRawData")]))
import FWCore.ParameterSet.Config as cms from EventFilter.GEMRawToDigi.muonGEMDigisDefault_cfi import muonGEMDigisDefault as _muonGEMDigisDefault muonGEMDigis = _muonGEMDigisDefault.clone() from Configuration.Eras.Modifier_run2_GEM_2017_cff import run2_GEM_2017 run2_GEM_2017.toModify(muonGEMDigis, useDBEMap = True)
, saveFileName=cms.untracked.string('') # to restore the status of the last event, # comment the line above and decomment the following one # ,restoreFileName = cms.untracked.string('RandomEngineState.log') # to reproduce events using the RandomEngineStateProducer (source excluded), # decomment the following one # ,restoreStateLabel = cms.untracked.string('randomEngineStateProducer') ) randomEngineStateProducer = cms.EDProducer("RandomEngineStateProducer") from Configuration.Eras.Modifier_run2_GEM_2017_cff import run2_GEM_2017 run2_GEM_2017.toModify(RandomNumberGeneratorService, simMuonGEMDigis=cms.PSet( initialSeed=cms.untracked.uint32(1234567), engineName=FullSimEngine)) from Configuration.Eras.Modifier_run3_GEM_cff import run3_GEM run3_GEM.toModify(RandomNumberGeneratorService, simMuonGEMDigis=cms.PSet( initialSeed=cms.untracked.uint32(1234567), engineName=FullSimEngine)) from Configuration.Eras.Modifier_phase2_muon_cff import phase2_muon phase2_muon.toModify( RandomNumberGeneratorService, simMuonME0Digis=cms.PSet(initialSeed=cms.untracked.uint32(1234567), engineName=FullSimEngine),
import FWCore.ParameterSet.Config as cms from EventFilter.GEMRawToDigi.gemPackerDefault_cfi import gemPackerDefault as _gemPackerDefault gemPacker = _gemPackerDefault.clone() from Configuration.Eras.Modifier_run2_GEM_2017_cff import run2_GEM_2017 run2_GEM_2017.toModify(gemPacker, useDBEMap = True)