Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:19:27

0001 #
0002 #  L1TDigiToRaw:  Defines
0003 #
0004 #     L1TDigiToRaw = cms.Sequence(...)
0005 #
0006 # which contains all L1 trigger packers needed for the current era.
0007 #
0008 import FWCore.ParameterSet.Config as cms
0009 import sys
0010 
0011 # Modify the Raw Data Collection Raw collection List to include upgrade collections where appropriate:
0012 from EventFilter.RawDataCollector.rawDataCollector_cfi import *
0013 from Configuration.Eras.Modifier_stage1L1Trigger_cff import stage1L1Trigger
0014 stage1L1Trigger.toModify( rawDataCollector.RawCollectionList, func = lambda list: list.append(cms.InputTag("caloStage1Raw")) )
0015 from Configuration.Eras.Modifier_stage2L1Trigger_cff import stage2L1Trigger
0016 stage2L1Trigger.toModify( rawDataCollector.RawCollectionList, func = lambda list: list.extend([cms.InputTag("caloLayer1RawFed1354"), cms.InputTag("caloLayer1RawFed1356"), cms.InputTag("caloLayer1RawFed1358")]) )
0017 stage2L1Trigger.toModify( rawDataCollector.RawCollectionList, func = lambda list: list.append(cms.InputTag("bmtfStage2Raw")) )
0018 stage2L1Trigger.toModify( rawDataCollector.RawCollectionList, func = lambda list: list.append(cms.InputTag("caloStage2Raw")) )
0019 stage2L1Trigger.toModify( rawDataCollector.RawCollectionList, func = lambda list: list.append(cms.InputTag("gmtStage2Raw")) )
0020 stage2L1Trigger.toModify( rawDataCollector.RawCollectionList, func = lambda list: list.append(cms.InputTag("gtStage2Raw")) )
0021 
0022 #
0023 # Legacy Trigger:
0024 #
0025 # legacy L1 packages:
0026 from EventFilter.CSCTFRawToDigi.csctfpacker_cfi import *
0027 from EventFilter.DTTFRawToDigi.dttfpacker_cfi import *
0028 from EventFilter.GctRawToDigi.gctDigiToRaw_cfi import *
0029 from EventFilter.L1GlobalTriggerRawToDigi.l1GtPack_cfi import *
0030 from EventFilter.L1GlobalTriggerRawToDigi.l1GtEvmPack_cfi import *
0031 csctfpacker.lctProducer = "simCscTriggerPrimitiveDigis:MPCSORTED"
0032 csctfpacker.trackProducer = 'simCsctfTrackDigis'
0033 dttfpacker.DTDigi_Source = 'simDtTriggerPrimitiveDigis'
0034 dttfpacker.DTTracks_Source = "simDttfDigis:DTTF"
0035 gctDigiToRaw.rctInputLabel = 'simRctDigis'
0036 gctDigiToRaw.gctInputLabel = 'simGctDigis'
0037 l1GtPack.DaqGtInputTag = 'simGtDigis'
0038 l1GtPack.MuGmtInputTag = 'simGmtDigis'
0039 l1GtEvmPack.EvmGtInputTag = 'simGtDigis'
0040 L1TDigiToRawTask = cms.Task(csctfpacker, dttfpacker, gctDigiToRaw, l1GtPack, l1GtEvmPack)
0041 
0042 #
0043 # Stage-1 Trigger
0044 #
0045 # legacy L1 packers, still in use for 2015:
0046 # Initially, the stage-1 was packed via GCT... this is no longer needed.
0047 # (but still needed for RCT digis!)
0048 (stage1L1Trigger & ~stage2L1Trigger).toModify(gctDigiToRaw, gctInputLabel = 'simCaloStage1LegacyFormatDigis')
0049 from EventFilter.L1TRawToDigi.caloStage1Raw_cfi import *
0050 (stage1L1Trigger & ~stage2L1Trigger).toReplaceWith(L1TDigiToRawTask, cms.Task(csctfpacker, dttfpacker, l1GtPack, caloStage1Raw))
0051 
0052 #
0053 # Stage-2 Trigger
0054 #
0055 from EventFilter.L1TRawToDigi.caloLayer1Raw_cfi import *
0056 from EventFilter.L1TRawToDigi.caloStage2Raw_cfi import *
0057 from EventFilter.L1TRawToDigi.bmtfStage2Raw_cfi import *
0058 from EventFilter.L1TRawToDigi.omtfStage2Raw_cfi import *
0059 from EventFilter.L1TRawToDigi.gmtStage2Raw_cfi import *
0060 from EventFilter.L1TRawToDigi.gtStage2Raw_cfi import *
0061 # Missing: muon EMTF
0062 (stage2L1Trigger).toReplaceWith(L1TDigiToRawTask, cms.Task(caloLayer1Raw, caloStage2Raw, bmtfStage2Raw, omtfStage2Raw, gmtStage2Raw, gtStage2Raw))
0063 
0064 L1TDigiToRaw = cms.Sequence(L1TDigiToRawTask)