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