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.append(cms.InputTag("caloStage2Raw")) )
17 stage2L1Trigger.toModify( rawDataCollector.RawCollectionList, func = lambda list: list.append(cms.InputTag("gmtStage2Raw")) )
18 stage2L1Trigger.toModify( rawDataCollector.RawCollectionList, func = lambda list: list.append(cms.InputTag("gtStage2Raw")) )
19 
20 #
21 # Legacy Trigger:
22 #
23 if not (stage1L1Trigger.isChosen() or stage2L1Trigger.isChosen()):
24  sys.stderr.write("L1TDigiToRaw Sequence configured for Run1 (Legacy) trigger. \n")
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  L1TDigiToRaw = cms.Sequence(csctfpacker+dttfpacker+gctDigiToRaw+l1GtPack+l1GtEvmPack)
41 #
42 # Stage-1 Trigger
43 #
44 if stage1L1Trigger.isChosen() and not stage2L1Trigger.isChosen():
45  sys.stderr.write("L1TDigiToRaw Sequence configured for Stage-1 (2015) trigger. \n")
46  # legacy L1 packers, still in use for 2015:
49 
51  csctfpacker.lctProducer = "simCscTriggerPrimitiveDigis:MPCSORTED"
52  csctfpacker.trackProducer = 'simCsctfTrackDigis'
53  dttfpacker.DTDigi_Source = 'simDtTriggerPrimitiveDigis'
54  dttfpacker.DTTracks_Source = "simDttfDigis:DTTF"
55  l1GtPack.DaqGtInputTag = 'simGtDigis'
56  l1GtPack.MuGmtInputTag = 'simGmtDigis'
57 
58  # Initially, the stage-1 was packed via GCT... this is no longer needed.
59  # (but still needed for RCT digis!)
61  gctDigiToRaw.gctInputLabel = 'simCaloStage1LegacyFormatDigis'
62  gctDigiToRaw.rctInputLabel = 'simRctDigis'
64  L1TDigiToRaw = cms.Sequence(csctfpacker+dttfpacker+l1GtPack+caloStage1Raw)
65 
66 #
67 # Stage-2 Trigger
68 #
69 if stage2L1Trigger.isChosen():
70  sys.stderr.write("L1TDigiToRaw Sequence configured for Stage-2 (2016) trigger. \n")
74  L1TDigiToRaw = cms.Sequence(caloStage2Raw + gmtStage2Raw + gtStage2Raw)
75  # Missing: muon TFs, calo layer1
76