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-1 input, making Run-1 output
0004 
0005 ##
0006 ## run the L1 unpackers
0007 ##
0008 
0009 import EventFilter.GctRawToDigi.l1GctHwDigis_cfi
0010 unpackGctDigis = EventFilter.GctRawToDigi.l1GctHwDigis_cfi.l1GctHwDigis.clone(
0011     inputLabel = cms.InputTag( 'rawDataCollector', processName=cms.InputTag.skipCurrentProcess())
0012 )
0013 
0014 import EventFilter.L1GlobalTriggerRawToDigi.l1GtUnpack_cfi
0015 unpackGtDigis = EventFilter.L1GlobalTriggerRawToDigi.l1GtUnpack_cfi.l1GtUnpack.clone(
0016     DaqGtInputTag = cms.InputTag( 'rawDataCollector', processName=cms.InputTag.skipCurrentProcess())
0017 )
0018 
0019 import EventFilter.CastorRawToDigi.CastorRawToDigi_cfi
0020 unpackCastorDigis = EventFilter.CastorRawToDigi.CastorRawToDigi_cfi.castorDigis.clone(
0021     InputLabel = cms.InputTag( 'rawDataCollector', processName=cms.InputTag.skipCurrentProcess())
0022 )
0023 
0024 ##
0025 ## run the L1 emulator
0026 ##
0027 
0028 import L1Trigger.GlobalTrigger.gtDigis_cfi
0029 newGtDigis = L1Trigger.GlobalTrigger.gtDigis_cfi.gtDigis.clone(
0030     AlgorithmTriggersUnprescaled= cms.bool(True),
0031     TechnicalTriggersUnprescaled= cms.bool(True),
0032     GmtInputTag                 = cms.InputTag( 'unpackGtDigis' ),
0033     GctInputTag                 = cms.InputTag( 'unpackGctDigis' ),
0034     CastorInputTag              = cms.InputTag( 'unpackCastorDigis' ),
0035     TechnicalTriggersInputTags  = cms.VInputTag()
0036 )
0037 
0038 ##
0039 ## repack FEDs 812 and 813
0040 ##
0041 
0042 import EventFilter.L1GlobalTriggerRawToDigi.l1GtPack_cfi
0043 packL1Gt = EventFilter.L1GlobalTriggerRawToDigi.l1GtPack_cfi.l1GtPack.clone(
0044     DaqGtInputTag    = 'newGtDigis',
0045     MuGmtInputTag    = 'unpackGtDigis'
0046 )
0047 import EventFilter.L1GlobalTriggerRawToDigi.l1GtEvmPack_cfi
0048 packL1GtEvm = EventFilter.L1GlobalTriggerRawToDigi.l1GtEvmPack_cfi.l1GtEvmPack.clone(
0049     EvmGtInputTag = 'newGtDigis'
0050 )
0051 
0052 ##
0053 ## combine the new L1 RAW with existing RAW for other FEDs
0054 ##
0055 
0056 import EventFilter.RawDataCollector.rawDataCollectorByLabel_cfi
0057 rawDataCollector = EventFilter.RawDataCollector.rawDataCollectorByLabel_cfi.rawDataCollector.clone(
0058     verbose = cms.untracked.int32(0),
0059     RawCollectionList = cms.VInputTag(
0060         cms.InputTag('packL1Gt'),
0061         cms.InputTag('packL1GtEvm'),
0062         cms.InputTag('rawDataCollector', processName=cms.InputTag.skipCurrentProcess())
0063     )
0064 )
0065 
0066 ##
0067 ## construct SimL1Emulator sequence
0068 ##
0069 
0070 SimL1EmulatorTask = cms.Task(
0071       unpackGctDigis     ,
0072       unpackGtDigis      ,
0073       unpackCastorDigis  ,
0074       newGtDigis         ,
0075       packL1Gt           ,
0076       packL1GtEvm        ,
0077       rawDataCollector
0078 )
0079 SimL1Emulator = cms.Sequence(SimL1EmulatorTask)