CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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 from Configuration.StandardSequences.Eras import eras
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 bmtfDigis, caloStage2Digis, gmtStage2Digis, gtStage2Digis,L1TRawToDigi_Stage2
61  from EventFilter.L1TRawToDigi.bmtfDigis_cfi import bmtfDigis
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  L1TRawToDigi_Stage2 = cms.Sequence(bmtfDigis + caloStage2Digis + gmtStage2Digis + gtStage2Digis)
66 
67 #
68 # Legacy Trigger:
69 #
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);
74 
75 #
76 # Stage-1 Trigger
77 #
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)
82 
83 #
84 # Stage-2 Trigger: fow now, unpack Stage 1 and Stage 2 (in case both available)
85 #
86 if eras.stage2L1Trigger.isChosen():
87  print "L1TRawToDigi Sequence configured for Stage-2 (2016) trigger. "
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