CMS 3D CMS Logo

L1TDigiToRaw_cff.py
Go to the documentation of this file.
1 #
2 # L1TDigiToRaw: Defines
3 #
4 # L1TDigiToRaw = cms.Sequence(...)
5 #
6 # which contains all L1 trigger packers needed for the current era.
7 #
8 import FWCore.ParameterSet.Config as cms
9 import sys
10 
11 # Modify the Raw Data Collection Raw collection List to include upgrade collections where appropriate:
13 from Configuration.Eras.Modifier_stage1L1Trigger_cff import stage1L1Trigger
14 stage1L1Trigger.toModify( rawDataCollector.RawCollectionList, func = lambda list: list.append(cms.InputTag("caloStage1Raw")) )
15 from Configuration.Eras.Modifier_stage2L1Trigger_cff import stage2L1Trigger
16 stage2L1Trigger.toModify( rawDataCollector.RawCollectionList, func = lambda list: list.extend([cms.InputTag("caloLayer1RawFed1354"), cms.InputTag("caloLayer1RawFed1356"), cms.InputTag("caloLayer1RawFed1358")]) )
17 stage2L1Trigger.toModify( rawDataCollector.RawCollectionList, func = lambda list: list.append(cms.InputTag("bmtfStage2Raw")) )
18 stage2L1Trigger.toModify( rawDataCollector.RawCollectionList, func = lambda list: list.append(cms.InputTag("caloStage2Raw")) )
19 stage2L1Trigger.toModify( rawDataCollector.RawCollectionList, func = lambda list: list.append(cms.InputTag("gmtStage2Raw")) )
20 stage2L1Trigger.toModify( rawDataCollector.RawCollectionList, func = lambda list: list.append(cms.InputTag("gtStage2Raw")) )
21 
22 #
23 # Legacy Trigger:
24 #
25 # legacy L1 packages:
31 csctfpacker.lctProducer = "simCscTriggerPrimitiveDigis:MPCSORTED"
32 csctfpacker.trackProducer = 'simCsctfTrackDigis'
33 dttfpacker.DTDigi_Source = 'simDtTriggerPrimitiveDigis'
34 dttfpacker.DTTracks_Source = "simDttfDigis:DTTF"
35 gctDigiToRaw.rctInputLabel = 'simRctDigis'
36 gctDigiToRaw.gctInputLabel = 'simGctDigis'
37 l1GtPack.DaqGtInputTag = 'simGtDigis'
38 l1GtPack.MuGmtInputTag = 'simGmtDigis'
39 l1GtEvmPack.EvmGtInputTag = 'simGtDigis'
40 L1TDigiToRawTask = cms.Task(csctfpacker, dttfpacker, gctDigiToRaw, l1GtPack, l1GtEvmPack)
41 
42 #
43 # Stage-1 Trigger
44 #
45 # legacy L1 packers, still in use for 2015:
46 # Initially, the stage-1 was packed via GCT... this is no longer needed.
47 # (but still needed for RCT digis!)
48 (stage1L1Trigger & ~stage2L1Trigger).toModify(gctDigiToRaw, gctInputLabel = 'simCaloStage1LegacyFormatDigis')
50 (stage1L1Trigger & ~stage2L1Trigger).toReplaceWith(L1TDigiToRawTask, cms.Task(csctfpacker, dttfpacker, l1GtPack, caloStage1Raw))
51 
52 #
53 # Stage-2 Trigger
54 #
61 # Missing: muon EMTF
62 (stage2L1Trigger).toReplaceWith(L1TDigiToRawTask, cms.Task(caloLayer1Raw, caloStage2Raw, bmtfStage2Raw, omtfStage2Raw, gmtStage2Raw, gtStage2Raw))
63 
64 L1TDigiToRaw = cms.Sequence(L1TDigiToRawTask)