From e290d429c270dae5dc61c0c2db06d311f3c18fb5 Mon Sep 17 00:00:00 2001 From: Marino Missiroli Date: Mon, 9 Jan 2023 18:07:44 +0100 Subject: [PATCH] fix GEM inputs for L1REPACK:FullMC --- .../python/SimL1EmulatorRepack_FullMC_cff.py | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/Configuration/StandardSequences/python/SimL1EmulatorRepack_FullMC_cff.py b/Configuration/StandardSequences/python/SimL1EmulatorRepack_FullMC_cff.py index 828ccfd38a0f6..a521c947ace6b 100644 --- a/Configuration/StandardSequences/python/SimL1EmulatorRepack_FullMC_cff.py +++ b/Configuration/StandardSequences/python/SimL1EmulatorRepack_FullMC_cff.py @@ -3,13 +3,16 @@ ## L1REPACK FULL: Re-Emulate all of L1 and repack into RAW - from Configuration.Eras.Modifier_stage2L1Trigger_cff import stage2L1Trigger +from Configuration.Eras.Modifier_run3_GEM_cff import run3_GEM + def _print(ignored): print("# L1T WARN: L1REPACK:FullMC (intended for MC events with RAW eventcontent) only supports Stage 2 eras for now.") print("# L1T WARN: Use a legacy version of L1REPACK for now.") + stage2L1Trigger.toModify(None, _print) -(~stage2L1Trigger).toModify(None, lambda x: print("# L1T INFO: L1REPACK:FullMC will unpack Calorimetry and Muon L1T inputs, re-emulate L1T (Stage-2), and pack uGT, uGMT, and Calo Stage-2 output.")) +(~stage2L1Trigger).toModify(None, + lambda x: print("# L1T INFO: L1REPACK:FullMC will unpack Calorimetry and Muon L1T inputs, re-emulate L1T (Stage-2), and pack uGT, uGMT, and Calo Stage-2 output.")) # First, Unpack all inputs to L1: @@ -25,6 +28,10 @@ def _print(ignored): unpackCSC = EventFilter.CSCRawToDigi.cscUnpacker_cfi.muonCSCDigis.clone( InputObjects = cms.InputTag( 'rawDataCollector', processName=cms.InputTag.skipCurrentProcess())) +import EventFilter.GEMRawToDigi.muonGEMDigis_cfi +unpackGEM = EventFilter.GEMRawToDigi.muonGEMDigis_cfi.muonGEMDigis.clone( + InputLabel = cms.InputTag( 'rawDataCollector', processName=cms.InputTag.skipCurrentProcess())) + import EventFilter.EcalRawToDigi.EcalUnpackerData_cfi unpackEcal = EventFilter.EcalRawToDigi.EcalUnpackerData_cfi.ecalEBunpacker.clone( InputLabel = cms.InputTag( 'rawDataCollector', processName=cms.InputTag.skipCurrentProcess())) @@ -60,6 +67,8 @@ def _print(ignored): # CSC TPs simCscTriggerPrimitiveDigis.CSCComparatorDigiProducer = 'unpackCSC:MuonCSCComparatorDigi' simCscTriggerPrimitiveDigis.CSCWireDigiProducer = 'unpackCSC:MuonCSCWireDigi' +# GEM +run3_GEM.toModify(simMuonGEMPadDigis, InputCollection = 'unpackGEM') # TWIN-MUX simTwinMuxDigis.RPC_Source = 'unpackRPC' @@ -114,4 +123,9 @@ def _print(ignored): , packGmtStage2 , packGtStage2 , rawDataCollector)) + +_SimL1EmulatorTaskWithGEM = SimL1EmulatorTask.copy() +_SimL1EmulatorTaskWithGEM.add(unpackGEM) +(stage2L1Trigger & run3_GEM).toReplaceWith(SimL1EmulatorTask, _SimL1EmulatorTaskWithGEM) + SimL1Emulator = cms.Sequence(SimL1EmulatorTask)