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 
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()
25  #
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)
32 
33 
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
45  # this adds the physical ET to unpacked data
46  from L1Trigger.L1TCalorimeter.caloStage1LegacyFormatDigis_cfi import caloStage1LegacyFormatDigis
47  from L1Trigger.L1TCalorimeter.caloStage1FinalDigis_cfi import caloStage1FinalDigis
48  csctfDigis.producer = 'rawDataCollector'
49  dttfDigis.DTTF_FED_Source = 'rawDataCollector'
50  gtDigis.DaqGtInputTag = 'rawDataCollector'
51  # unpack GCT digis too, so DQM offline doesn't crash:
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)
56 
58  global L1TRawToDigi_Stage2
59  global twinMuxStage2Digis, bmtfDigis, emtfStage2Digis, caloStage2Digis, gmtStage2Digis, gtStage2Digis,L1TRawToDigi_Stage2
60  from EventFilter.L1TRawToDigi.bmtfDigis_cfi import bmtfDigis
61  from EventFilter.L1TRawToDigi.emtfStage2Digis_cfi import emtfStage2Digis
62  from EventFilter.L1TRawToDigi.caloStage2Digis_cfi import caloStage2Digis
63  from EventFilter.L1TRawToDigi.gmtStage2Digis_cfi import gmtStage2Digis
64  from EventFilter.L1TRawToDigi.gtStage2Digis_cfi import gtStage2Digis
65  from EventFilter.L1TXRawToDigi.twinMuxStage2Digis_cfi import twinMuxStage2Digis
66  L1TRawToDigi_Stage2 = cms.Sequence(twinMuxStage2Digis * bmtfDigis + emtfStage2Digis + caloStage2Digis + gmtStage2Digis + gtStage2Digis)
67 
68 #
69 # Legacy Trigger:
70 #
71 from Configuration.Eras.Modifier_stage1L1Trigger_cff import stage1L1Trigger
72 from Configuration.Eras.Modifier_stage2L1Trigger_cff import stage2L1Trigger
73 if not (stage1L1Trigger.isChosen() or stage2L1Trigger.isChosen()):
75  L1TRawToDigi = cms.Sequence(L1TRawToDigi_Legacy);
76 
77 #
78 # Stage-1 Trigger
79 #
80 if stage1L1Trigger.isChosen() and not stage2L1Trigger.isChosen():
82  L1TRawToDigi = cms.Sequence(L1TRawToDigi_Stage1)
83 
84 #
85 # Stage-2 Trigger: fow now, unpack Stage 1 and Stage 2 (in case both available)
86 #
87 if stage2L1Trigger.isChosen():
90  L1TRawToDigi = cms.Sequence(L1TRawToDigi_Stage1+L1TRawToDigi_Stage2)
91  # we only warn if it is stage-2 era and it is an essential, always present, stage-2 payload:
92  caloStage2Digis.MinFeds = cms.uint32(1)
93  gmtStage2Digis.MinFeds = cms.uint32(1)
94  gtStage2Digis.MinFeds = cms.uint32(1)
95