File indexing completed on 2024-11-28 23:10:45
0001 import FWCore.ParameterSet.Config as cms
0002
0003
0004
0005 from Configuration.Eras.Modifier_stage2L1Trigger_cff import stage2L1Trigger
0006
0007 (~stage2L1Trigger).toModify(None, lambda x:
0008 print("# L1T WARN: L1REPACK:uGT only supports Stage-2 eras for now.\n# L1T WARN: Use a legacy version of L1REPACK for now."))
0009 stage2L1Trigger.toModify(None, lambda x:
0010 print("# L1T INFO: L1REPACK:uGT will unpack uGMT and CaloLayer2 outputs, and re-emulate uGT"))
0011
0012
0013 import EventFilter.L1TRawToDigi.gtStage2Digis_cfi
0014 unpackGtStage2 = EventFilter.L1TRawToDigi.gtStage2Digis_cfi.gtStage2Digis.clone(
0015 InputLabel = cms.InputTag( 'rawDataCollector', processName=cms.InputTag.skipCurrentProcess()))
0016
0017 import EventFilter.OnlineMetaDataRawToDigi.tcdsRawToDigi_cfi
0018 unpackTcds = EventFilter.OnlineMetaDataRawToDigi.tcdsRawToDigi_cfi.tcdsRawToDigi.clone(
0019 InputLabel = cms.InputTag( 'rawDataCollector', processName=cms.InputTag.skipCurrentProcess()))
0020
0021 from L1Trigger.Configuration.SimL1Emulator_cff import *
0022
0023 simGtExtFakeStage2Digis.tcdsRecordLabel= cms.InputTag("unpackTcds","tcdsRecord")
0024
0025 simGtStage2Digis.MuonInputTag = "unpackGtStage2:Muon"
0026 simGtStage2Digis.MuonShowerInputTag = "unpackGtStage2:MuonShower"
0027 simGtStage2Digis.EGammaInputTag = "unpackGtStage2:EGamma"
0028 simGtStage2Digis.TauInputTag = "unpackGtStage2:Tau"
0029 simGtStage2Digis.JetInputTag = "unpackGtStage2:Jet"
0030 simGtStage2Digis.EtSumInputTag = "unpackGtStage2:EtSum"
0031 simGtStage2Digis.EtSumZdcInputTag = "unpackGtStage2:EtSumZDC"
0032 simGtStage2Digis.CICADAInputTag = "unpackGtStage2:CICADAScore"
0033 simGtStage2Digis.ExtInputTag = "unpackGtStage2"
0034
0035
0036
0037
0038
0039 from EventFilter.L1TRawToDigi.gtStage2Raw_cfi import gtStage2Raw as packGtStage2
0040 packGtStage2.MuonInputTag = "unpackGtStage2:Muon"
0041 packGtStage2.ShowerInputLabel = "unpackGtStage2:MuonShower"
0042 packGtStage2.EGammaInputTag = "unpackGtStage2:EGamma"
0043 packGtStage2.TauInputTag = "unpackGtStage2:Tau"
0044 packGtStage2.JetInputTag = "unpackGtStage2:Jet"
0045 packGtStage2.EtSumInputTag = "unpackGtStage2:EtSum"
0046 packGtStage2.EtSumZDCInputTag = "unpackGtStage2:EtSumZDC"
0047 packGtStage2.CICADAScoreInputTag = "unpackGtStage2:CICADAScore"
0048 packGtStage2.GtInputTag = "simGtStage2Digis"
0049 packGtStage2.ExtInputTag = "unpackGtStage2"
0050
0051
0052
0053 import EventFilter.RawDataCollector.rawDataCollectorByLabel_cfi
0054 rawDataCollector = EventFilter.RawDataCollector.rawDataCollectorByLabel_cfi.rawDataCollector.clone(
0055 verbose = 0,
0056 RawCollectionList = [
0057 'packGtStage2',
0058 cms.InputTag('rawDataCollector', processName=cms.InputTag.skipCurrentProcess()),
0059 ]
0060 )
0061
0062
0063 SimL1EmulatorTask = cms.Task()
0064 stage2L1Trigger.toReplaceWith(SimL1EmulatorTask, cms.Task(unpackGtStage2
0065 ,unpackTcds
0066 ,SimL1TechnicalTriggersTask
0067 ,SimL1TGlobalTask
0068 ,packGtStage2
0069 ,rawDataCollector))
0070 SimL1Emulator = cms.Sequence(SimL1EmulatorTask)