9 import FWCore.ParameterSet.Config
as cms
13 global L1TRawToDigi_Legacy
14 global csctfDigis, dttfDigis, gctDigis, gtDigis, gtEvmDigis
15 import EventFilter.CSCTFRawToDigi.csctfunpacker_cfi
16 csctfDigis = EventFilter.CSCTFRawToDigi.csctfunpacker_cfi.csctfunpacker.clone()
17 import EventFilter.DTTFRawToDigi.dttfunpacker_cfi
18 dttfDigis = EventFilter.DTTFRawToDigi.dttfunpacker_cfi.dttfunpacker.clone()
19 import EventFilter.GctRawToDigi.l1GctHwDigis_cfi
20 gctDigis = EventFilter.GctRawToDigi.l1GctHwDigis_cfi.l1GctHwDigis.clone()
22 gtDigis = EventFilter.L1GlobalTriggerRawToDigi.l1GtUnpack_cfi.l1GtUnpack.clone()
23 import EventFilter.L1GlobalTriggerRawToDigi.l1GtEvmUnpack_cfi
24 gtEvmDigis = EventFilter.L1GlobalTriggerRawToDigi.l1GtEvmUnpack_cfi.l1GtEvmUnpack.clone()
26 csctfDigis.producer =
'rawDataCollector' 27 dttfDigis.DTTF_FED_Source =
'rawDataCollector' 28 gctDigis.inputLabel =
'rawDataCollector' 29 gtDigis.DaqGtInputTag =
'rawDataCollector' 30 gtEvmDigis.EvmGtInputTag =
'rawDataCollector' 31 L1TRawToDigi_Legacy = cms.Sequence(csctfDigis+dttfDigis+gctDigis+gtDigis+gtEvmDigis)
35 global csctfDigis, dttfDigis, gtDigis,caloStage1Digis,caloStage1FinalDigis,gctDigis
36 global caloStage1LegacyFormatDigis
37 global L1TRawToDigi_Stage1
38 import EventFilter.CSCTFRawToDigi.csctfunpacker_cfi
39 csctfDigis = EventFilter.CSCTFRawToDigi.csctfunpacker_cfi.csctfunpacker.clone()
40 import EventFilter.DTTFRawToDigi.dttfunpacker_cfi
41 dttfDigis = EventFilter.DTTFRawToDigi.dttfunpacker_cfi.dttfunpacker.clone()
43 gtDigis = EventFilter.L1GlobalTriggerRawToDigi.l1GtUnpack_cfi.l1GtUnpack.clone()
44 from EventFilter.L1TRawToDigi.caloStage1Digis_cfi
import caloStage1Digis
47 from L1Trigger.L1TCalorimeter.caloStage1FinalDigis_cfi
import caloStage1FinalDigis
48 csctfDigis.producer =
'rawDataCollector' 49 dttfDigis.DTTF_FED_Source =
'rawDataCollector' 50 gtDigis.DaqGtInputTag =
'rawDataCollector' 52 import EventFilter.GctRawToDigi.l1GctHwDigis_cfi
53 gctDigis = EventFilter.GctRawToDigi.l1GctHwDigis_cfi.l1GctHwDigis.clone()
54 gctDigis.inputLabel =
'rawDataCollector' 55 L1TRawToDigi_Stage1 = cms.Sequence(csctfDigis+dttfDigis+gtDigis+caloStage1Digis+caloStage1FinalDigis+caloStage1LegacyFormatDigis+gctDigis)
58 global L1TRawToDigi_Stage2
59 global bmtfDigis, emtfStage2Digis, caloStage2Digis, gmtStage2Digis, gtStage2Digis,L1TRawToDigi_Stage2
65 L1TRawToDigi_Stage2 = cms.Sequence(bmtfDigis + emtfStage2Digis + caloStage2Digis + gmtStage2Digis + gtStage2Digis)
70 from Configuration.Eras.Modifier_stage1L1Trigger_cff
import stage1L1Trigger
71 from Configuration.Eras.Modifier_stage2L1Trigger_cff
import stage2L1Trigger
72 if not (stage1L1Trigger.isChosen()
or stage2L1Trigger.isChosen()):
73 sys.stderr.write(
"L1TRawToDigi Sequence configured for Run1 (Legacy) trigger. \n")
75 L1TRawToDigi = cms.Sequence(L1TRawToDigi_Legacy);
80 if stage1L1Trigger.isChosen()
and not stage2L1Trigger.isChosen():
81 sys.stderr.write(
"L1TRawToDigi Sequence configured for Stage-1 (2015) trigger. \n")
83 L1TRawToDigi = cms.Sequence(L1TRawToDigi_Stage1)
88 if stage2L1Trigger.isChosen():
89 sys.stderr.write(
"L1TRawToDigi Sequence configured for Stage-2 (2016) trigger. \n")
92 L1TRawToDigi = cms.Sequence(L1TRawToDigi_Stage1+L1TRawToDigi_Stage2)
94 caloStage2Digis.MinFeds = cms.uint32(1)
95 gmtStage2Digis.MinFeds = cms.uint32(1)
96 gtStage2Digis.MinFeds = cms.uint32(1)