Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-05-12 02:41:00

0001 import FWCore.ParameterSet.Config as cms
0002 
0003 ## L1REPACK: redo GCT,GT, using Run-1 or Run-2 input, making Run-2 output
0004 
0005 # If the Stage 1 trigger is running, there is also some different configuration.
0006 # Note that this next file does nothing if the stage1L1Trigger era is not active, so
0007 # it is safe to import even if the Stage 1 trigger is not required. It *MUST* be
0008 # imported into this namespace, i.e. "from <module> import *".
0009 from L1Trigger.Configuration.ConditionalStage1Configuration_cff import *
0010 
0011 ##
0012 ## run the L1 unpackers
0013 ##
0014 
0015 import EventFilter.L1GlobalTriggerRawToDigi.l1GtUnpack_cfi
0016 unpackGtDigis = EventFilter.L1GlobalTriggerRawToDigi.l1GtUnpack_cfi.l1GtUnpack.clone(
0017     DaqGtInputTag = cms.InputTag( 'rawDataCollector', processName=cms.InputTag.skipCurrentProcess())
0018 )
0019 
0020 import EventFilter.CastorRawToDigi.CastorRawToDigi_cfi
0021 unpackCastorDigis = EventFilter.CastorRawToDigi.CastorRawToDigi_cfi.castorDigis.clone(
0022     InputLabel = cms.InputTag( 'rawDataCollector', processName=cms.InputTag.skipCurrentProcess())
0023 )
0024 
0025 ##
0026 ## run the L1 emulator
0027 ##
0028 
0029 from L1Trigger.L1TCalorimeter.L1TCaloStage1_PPFromRaw_cff import *
0030 ecalDigis.cpu.InputLabel = cms.InputTag( 'rawDataCollector', processName=cms.InputTag.skipCurrentProcess())
0031 hcalDigis.InputLabel = cms.InputTag( 'rawDataCollector', processName=cms.InputTag.skipCurrentProcess())
0032 simHcalTriggerPrimitiveDigis.InputTagFEDRaw = cms.InputTag( 'rawDataCollector', processName=cms.InputTag.skipCurrentProcess())
0033 
0034 import L1Trigger.GlobalTrigger.gtDigis_cfi
0035 newGtDigis = L1Trigger.GlobalTrigger.gtDigis_cfi.gtDigis.clone(
0036     AlgorithmTriggersUnprescaled= cms.bool(True),
0037     TechnicalTriggersUnprescaled= cms.bool(True),
0038     GmtInputTag                 = cms.InputTag( 'unpackGtDigis' ),
0039     GctInputTag                 = cms.InputTag( 'simCaloStage1LegacyFormatDigis' ),
0040     CastorInputTag              = cms.InputTag( 'unpackCastorDigis' ),
0041     TechnicalTriggersInputTags  = cms.VInputTag()
0042 )
0043 
0044 ##
0045 ## pack GCT FEDs
0046 ##
0047 
0048 import EventFilter.GctRawToDigi.gctDigiToRaw_cfi
0049 packGctDigis = EventFilter.GctRawToDigi.gctDigiToRaw_cfi.gctDigiToRaw.clone(
0050   gctInputLabel = cms.InputTag( 'simCaloStage1LegacyFormatDigis' )
0051 )
0052 
0053 import L1Trigger.L1TCommon.l1tDigiToRaw_cfi
0054 packL1tDigis = L1Trigger.L1TCommon.l1tDigiToRaw_cfi.l1tDigiToRaw.clone(
0055   InputLabel = cms.InputTag("simCaloStage1FinalDigis"),
0056   TauInputLabel = cms.InputTag("simCaloStage1FinalDigis", "rlxTaus"),
0057   IsoTauInputLabel = cms.InputTag("simCaloStage1FinalDigis", "isoTaus"),
0058   HFBitCountsInputLabel = cms.InputTag("simCaloStage1FinalDigis", "HFBitCounts"),
0059   HFRingSumsInputLabel = cms.InputTag("simCaloStage1FinalDigis", "HFRingSums")
0060 )
0061 
0062 ##
0063 ## repack FEDs 812 and 813
0064 ##
0065 
0066 import EventFilter.L1GlobalTriggerRawToDigi.l1GtPack_cfi
0067 packL1Gt = EventFilter.L1GlobalTriggerRawToDigi.l1GtPack_cfi.l1GtPack.clone(
0068     DaqGtInputTag    = 'newGtDigis',
0069     MuGmtInputTag    = 'unpackGtDigis'
0070 )
0071 import EventFilter.L1GlobalTriggerRawToDigi.l1GtEvmPack_cfi
0072 packL1GtEvm = EventFilter.L1GlobalTriggerRawToDigi.l1GtEvmPack_cfi.l1GtEvmPack.clone(
0073     EvmGtInputTag = 'newGtDigis'
0074 )
0075 
0076 ##
0077 ## combine the new L1 RAW with existing RAW for other FEDs
0078 ##
0079 
0080 import EventFilter.RawDataCollector.rawDataCollectorByLabel_cfi
0081 rawDataCollector = EventFilter.RawDataCollector.rawDataCollectorByLabel_cfi.rawDataCollector.clone(
0082     verbose = cms.untracked.int32(0),
0083     RawCollectionList = cms.VInputTag(
0084         cms.InputTag('packGctDigis'),
0085         cms.InputTag('packL1tDigis'),
0086         cms.InputTag('packL1Gt'),
0087         cms.InputTag('packL1GtEvm'),
0088         cms.InputTag('rawDataCollector', processName=cms.InputTag.skipCurrentProcess())
0089     )
0090 )
0091 
0092 ##
0093 ## construct SimL1Emulator sequence
0094 ##
0095 
0096 SimL1EmulatorTask = cms.Task(
0097       unpackGtDigis      ,
0098       unpackCastorDigis  ,
0099       L1TCaloStage1_PPFromRawTask ,
0100       newGtDigis         ,
0101       packGctDigis       ,
0102       packL1tDigis       ,
0103       packL1Gt           ,
0104       packL1GtEvm        ,
0105       rawDataCollector
0106 )
0107 SimL1Emulator = cms.Sequence(SimL1EmulatorTask)