9 import FWCore.ParameterSet.Config
as cms
10 from Configuration.StandardSequences.Eras
import eras
14 global L1TRawToDigi_Legacy
15 global csctfDigis, dttfDigis, gctDigis, gtDigis, gtEvmDigis
16 import EventFilter.CSCTFRawToDigi.csctfunpacker_cfi
17 csctfDigis = EventFilter.CSCTFRawToDigi.csctfunpacker_cfi.csctfunpacker.clone()
18 import EventFilter.DTTFRawToDigi.dttfunpacker_cfi
19 dttfDigis = EventFilter.DTTFRawToDigi.dttfunpacker_cfi.dttfunpacker.clone()
20 import EventFilter.GctRawToDigi.l1GctHwDigis_cfi
21 gctDigis = EventFilter.GctRawToDigi.l1GctHwDigis_cfi.l1GctHwDigis.clone()
23 gtDigis = EventFilter.L1GlobalTriggerRawToDigi.l1GtUnpack_cfi.l1GtUnpack.clone()
24 import EventFilter.L1GlobalTriggerRawToDigi.l1GtEvmUnpack_cfi
25 gtEvmDigis = EventFilter.L1GlobalTriggerRawToDigi.l1GtEvmUnpack_cfi.l1GtEvmUnpack.clone()
27 csctfDigis.producer =
'rawDataCollector'
28 dttfDigis.DTTF_FED_Source =
'rawDataCollector'
29 gctDigis.inputLabel =
'rawDataCollector'
30 gtDigis.DaqGtInputTag =
'rawDataCollector'
31 gtEvmDigis.EvmGtInputTag =
'rawDataCollector'
32 L1TRawToDigi_Legacy = cms.Sequence(csctfDigis+dttfDigis+gctDigis+gtDigis+gtEvmDigis)
36 global csctfDigis, dttfDigis, gtDigis,caloStage1Digis,caloStage1FinalDigis,gctDigis
37 global caloStage1LegacyFormatDigis
38 global L1TRawToDigi_Stage1
39 import EventFilter.CSCTFRawToDigi.csctfunpacker_cfi
40 csctfDigis = EventFilter.CSCTFRawToDigi.csctfunpacker_cfi.csctfunpacker.clone()
41 import EventFilter.DTTFRawToDigi.dttfunpacker_cfi
42 dttfDigis = EventFilter.DTTFRawToDigi.dttfunpacker_cfi.dttfunpacker.clone()
44 gtDigis = EventFilter.L1GlobalTriggerRawToDigi.l1GtUnpack_cfi.l1GtUnpack.clone()
45 from EventFilter.L1TRawToDigi.caloStage1Digis_cfi
import caloStage1Digis
48 from L1Trigger.L1TCalorimeter.caloStage1FinalDigis_cfi
import caloStage1FinalDigis
49 csctfDigis.producer =
'rawDataCollector'
50 dttfDigis.DTTF_FED_Source =
'rawDataCollector'
51 gtDigis.DaqGtInputTag =
'rawDataCollector'
53 import EventFilter.GctRawToDigi.l1GctHwDigis_cfi
54 gctDigis = EventFilter.GctRawToDigi.l1GctHwDigis_cfi.l1GctHwDigis.clone()
55 gctDigis.inputLabel =
'rawDataCollector'
56 L1TRawToDigi_Stage1 = cms.Sequence(csctfDigis+dttfDigis+gtDigis+caloStage1Digis+caloStage1FinalDigis+caloStage1LegacyFormatDigis+gctDigis)
59 global L1TRawToDigi_Stage2
60 global bmtfDigis, caloStage2Digis, gmtStage2Digis, gtStage2Digis,L1TRawToDigi_Stage2
61 from EventFilter.L1TRawToDigi.bmtfDigis_cfi
import bmtfDigis
65 L1TRawToDigi_Stage2 = cms.Sequence(bmtfDigis + caloStage2Digis + gmtStage2Digis + gtStage2Digis)
70 if not (eras.stage1L1Trigger.isChosen()
or eras.stage2L1Trigger.isChosen()):
71 print "L1TRawToDigi Sequence configured for Run1 (Legacy) trigger. "
73 L1TRawToDigi = cms.Sequence(L1TRawToDigi_Legacy);
78 if eras.stage1L1Trigger.isChosen()
and not eras.stage2L1Trigger.isChosen():
79 print "L1TRawToDigi Sequence configured for Stage-1 (2015) trigger. "
81 L1TRawToDigi = cms.Sequence(L1TRawToDigi_Stage1)
86 if eras.stage2L1Trigger.isChosen():
87 print "L1TRawToDigi Sequence configured for Stage-2 (2016) trigger. "
90 L1TRawToDigi = cms.Sequence(L1TRawToDigi_Stage1+L1TRawToDigi_Stage2)
92 caloStage2Digis.MinFeds = cms.uint32(1)
93 gmtStage2Digis.MinFeds = cms.uint32(1)
94 gtStage2Digis.MinFeds = cms.uint32(1)