Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 12:52:49

0001 import FWCore.ParameterSet.Config as cms
0002 
0003 ## L1REPACK: redo GT, using Run-2 input, making Run-2 output
0004 
0005 ##
0006 ## run the L1 unpackers
0007 ##
0008 
0009 import L1Trigger.L1TCommon.l1tRawToDigi_cfi
0010 unpackGctStage1 = L1Trigger.L1TCommon.l1tRawToDigi_cfi.caloStage1Digis.clone(
0011     InputLabel = cms.InputTag( 'rawDataCollector', processName=cms.InputTag.skipCurrentProcess())
0012 )
0013 
0014 import L1Trigger.L1TCalorimeter.caloStage1LegacyFormatDigis_cfi
0015 unpackGctDigis = L1Trigger.L1TCalorimeter.caloStage1LegacyFormatDigis_cfi.caloStage1LegacyFormatDigis.clone(
0016     InputCollection         = cms.InputTag("unpackGctStage1"),
0017     InputRlxTauCollection   = cms.InputTag("unpackGctStage1:rlxTaus"),
0018     InputIsoTauCollection   = cms.InputTag("unpackGctStage1:isoTaus"),
0019     InputHFSumsCollection   = cms.InputTag("unpackGctStage1:HFRingSums"),
0020     InputHFCountsCollection = cms.InputTag("unpackGctStage1:HFBitCounts")
0021 )
0022 
0023 import EventFilter.L1GlobalTriggerRawToDigi.l1GtUnpack_cfi
0024 unpackGtDigis = EventFilter.L1GlobalTriggerRawToDigi.l1GtUnpack_cfi.l1GtUnpack.clone(
0025     DaqGtInputTag = cms.InputTag( 'rawDataCollector', processName=cms.InputTag.skipCurrentProcess())
0026 )
0027 
0028 import EventFilter.CastorRawToDigi.CastorRawToDigi_cfi
0029 unpackCastorDigis = EventFilter.CastorRawToDigi.CastorRawToDigi_cfi.castorDigis.clone(
0030     InputLabel = cms.InputTag( 'rawDataCollector', processName=cms.InputTag.skipCurrentProcess())
0031 )
0032 
0033 ##
0034 ## run the L1 emulator
0035 ##
0036 
0037 import L1Trigger.GlobalTrigger.gtDigis_cfi
0038 newGtDigis = L1Trigger.GlobalTrigger.gtDigis_cfi.gtDigis.clone(
0039     AlgorithmTriggersUnprescaled= cms.bool(True),
0040     TechnicalTriggersUnprescaled= cms.bool(True),
0041     GmtInputTag                 = cms.InputTag( 'unpackGtDigis' ),
0042     GctInputTag                 = cms.InputTag( 'unpackGctDigis' ),
0043     CastorInputTag              = cms.InputTag( 'unpackCastorDigis' ),
0044     TechnicalTriggersInputTags  = cms.VInputTag()
0045 )
0046 
0047 ##
0048 ## repack FEDs 812 and 813
0049 ##
0050 
0051 import EventFilter.L1GlobalTriggerRawToDigi.l1GtPack_cfi
0052 packL1Gt = EventFilter.L1GlobalTriggerRawToDigi.l1GtPack_cfi.l1GtPack.clone(
0053     DaqGtInputTag    = 'newGtDigis',
0054     MuGmtInputTag    = 'unpackGtDigis'
0055 )
0056 import EventFilter.L1GlobalTriggerRawToDigi.l1GtEvmPack_cfi
0057 packL1GtEvm = EventFilter.L1GlobalTriggerRawToDigi.l1GtEvmPack_cfi.l1GtEvmPack.clone(
0058     EvmGtInputTag = 'newGtDigis'
0059 )
0060 
0061 ##
0062 ## combine the new L1 RAW with existing RAW for other FEDs
0063 ##
0064 
0065 import EventFilter.RawDataCollector.rawDataCollectorByLabel_cfi
0066 rawDataCollector = EventFilter.RawDataCollector.rawDataCollectorByLabel_cfi.rawDataCollector.clone(
0067     verbose = cms.untracked.int32(0),
0068     RawCollectionList = cms.VInputTag(
0069         cms.InputTag('packL1Gt'),
0070         cms.InputTag('packL1GtEvm'),
0071         cms.InputTag('rawDataCollector', processName=cms.InputTag.skipCurrentProcess())
0072     )
0073 )
0074 
0075 ##
0076 ## construct SimL1Emulator sequence
0077 ##
0078 
0079 SimL1EmulatorTask = cms.Task(
0080       unpackGctStage1    ,
0081       unpackGctDigis     ,
0082       unpackGtDigis      ,
0083       unpackCastorDigis  ,
0084       newGtDigis         ,
0085       packL1Gt           ,
0086       packL1GtEvm        ,
0087       rawDataCollector
0088 )
0089 SimL1Emulator = cms.Sequence(SimL1EmulatorTask)