CMS 3D CMS Logo

L1TRawToDigi_cff.py
Go to the documentation of this file.
1 #
2 # L1TRawToDigi: Defines
3 #
4 # L1TRawToDigi = cms.Sequence(...)
5 #
6 # which contains all packers needed for the current era.
7 #
8 
9 import FWCore.ParameterSet.Config as cms
10 import sys
11 
12 
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()
26  #
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)
33 
34 
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
46  # this adds the physical ET to unpacked data
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'
52  # unpack GCT digis too, so DQM offline doesn't crash:
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)
57 
59  global L1TRawToDigi_Stage2
60  global RPCTwinMuxRawToDigi, twinMuxStage2Digis, bmtfDigis, omtfStage2Digis, emtfStage2Digis, caloLayer1Digis, caloStage2Digis, gmtStage2Digis, gtStage2Digis,L1TRawToDigi_Stage2
61  from EventFilter.RPCRawToDigi.RPCTwinMuxRawToDigi_cfi import RPCTwinMuxRawToDigi
62  from EventFilter.L1TRawToDigi.bmtfDigis_cfi import bmtfDigis
63  from EventFilter.L1TRawToDigi.omtfStage2Digis_cfi import omtfStage2Digis
64  from EventFilter.L1TRawToDigi.emtfStage2Digis_cfi import emtfStage2Digis
65  from EventFilter.L1TRawToDigi.caloLayer1Digis_cfi import caloLayer1Digis
66  from EventFilter.L1TRawToDigi.caloStage2Digis_cfi import caloStage2Digis
67  from EventFilter.L1TRawToDigi.gmtStage2Digis_cfi import gmtStage2Digis
68  from EventFilter.L1TRawToDigi.gtStage2Digis_cfi import gtStage2Digis
69  from EventFilter.L1TXRawToDigi.twinMuxStage2Digis_cfi import twinMuxStage2Digis
70  L1TRawToDigi_Stage2 = cms.Sequence(twinMuxStage2Digis * bmtfDigis + omtfStage2Digis + emtfStage2Digis + caloLayer1Digis + caloStage2Digis + gmtStage2Digis + gtStage2Digis)
71 
72 #
73 # Legacy Trigger:
74 #
75 from Configuration.Eras.Modifier_stage1L1Trigger_cff import stage1L1Trigger
76 from Configuration.Eras.Modifier_stage2L1Trigger_cff import stage2L1Trigger
77 if not (stage1L1Trigger.isChosen() or stage2L1Trigger.isChosen()):
79  L1TRawToDigi = cms.Sequence(L1TRawToDigi_Legacy);
80 
81 #
82 # Stage-1 Trigger
83 #
84 if stage1L1Trigger.isChosen() and not stage2L1Trigger.isChosen():
86  L1TRawToDigi = cms.Sequence(L1TRawToDigi_Stage1)
87 
88 #
89 # Stage-2 Trigger: fow now, unpack Stage 1 and Stage 2 (in case both available)
90 #
91 if stage2L1Trigger.isChosen():
94  L1TRawToDigi = cms.Sequence(L1TRawToDigi_Stage1+L1TRawToDigi_Stage2)
95  # we only warn if it is stage-2 era and it is an essential, always present, stage-2 payload:
96  caloStage2Digis.MinFeds = cms.uint32(1)
97  gmtStage2Digis.MinFeds = cms.uint32(1)
98  gtStage2Digis.MinFeds = cms.uint32(1)
99