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
47 from L1Trigger.L1TCalorimeter.caloStage1LegacyFormatDigis_cfi
import caloStage1LegacyFormatDigis
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 caloStage2Digis, gmtStage2Digis, gtStage2Digis,L1TRawToDigi_Stage2
63 from EventFilter.L1TRawToDigi.gtStage2Digis_cfi
import gtStage2Digis
64 L1TRawToDigi_Stage2 = cms.Sequence(caloStage2Digis + gmtStage2Digis + gtStage2Digis)
69 if not (eras.stage1L1Trigger.isChosen()
or eras.stage2L1Trigger.isChosen()):
70 print "L1TRawToDigi Sequence configured for Run1 (Legacy) trigger. "
72 L1TRawToDigi = cms.Sequence(L1TRawToDigi_Legacy);
77 if eras.stage1L1Trigger.isChosen()
and not eras.stage2L1Trigger.isChosen():
78 print "L1TRawToDigi Sequence configured for Stage-1 (2015) trigger. "
80 L1TRawToDigi = cms.Sequence(L1TRawToDigi_Stage1);
85 if eras.stage2L1Trigger.isChosen():
86 print "L1TRawToDigi Sequence configured for Stage-2 (2016) trigger. "
89 L1TRawToDigi = cms.Sequence(L1TRawToDigi_Stage1+L1TRawToDigi_Stage2);