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 
13 #
14 # Legacy Trigger:
15 #
16 import EventFilter.CSCTFRawToDigi.csctfunpacker_cfi
17 csctfDigis = EventFilter.CSCTFRawToDigi.csctfunpacker_cfi.csctfunpacker.clone(producer = 'rawDataCollector')
18 import EventFilter.DTTFRawToDigi.dttfunpacker_cfi
19 dttfDigis = EventFilter.DTTFRawToDigi.dttfunpacker_cfi.dttfunpacker.clone(DTTF_FED_Source = 'rawDataCollector')
20 import EventFilter.GctRawToDigi.l1GctHwDigis_cfi
21 gctDigis = EventFilter.GctRawToDigi.l1GctHwDigis_cfi.l1GctHwDigis.clone(inputLabel = 'rawDataCollector')
23 gtDigis = EventFilter.L1GlobalTriggerRawToDigi.l1GtUnpack_cfi.l1GtUnpack.clone(DaqGtInputTag = 'rawDataCollector')
24 import EventFilter.L1GlobalTriggerRawToDigi.l1GtEvmUnpack_cfi
25 gtEvmDigis = EventFilter.L1GlobalTriggerRawToDigi.l1GtEvmUnpack_cfi.l1GtEvmUnpack.clone(EvmGtInputTag = 'rawDataCollector')
26 L1TRawToDigi_Legacy = cms.Task(csctfDigis,dttfDigis,gctDigis,gtDigis,gtEvmDigis)
27 L1TRawToDigiTask = cms.Task(L1TRawToDigi_Legacy)
28 
29 #
30 # Stage-1 Trigger
31 #
32 from EventFilter.L1TRawToDigi.caloStage1Digis_cfi import caloStage1Digis
33 # this adds the physical ET to unpacked data
34 from L1Trigger.L1TCalorimeter.caloStage1LegacyFormatDigis_cfi import caloStage1LegacyFormatDigis
35 from L1Trigger.L1TCalorimeter.caloStage1FinalDigis_cfi import caloStage1FinalDigis
36 from Configuration.Eras.Modifier_stage1L1Trigger_cff import stage1L1Trigger
37 from Configuration.Eras.Modifier_stage2L1Trigger_cff import stage2L1Trigger
38 L1TRawToDigi_Stage1 = L1TRawToDigi_Legacy.copyAndExclude([gctDigis, gtDigis, gtEvmDigis])
39 L1TRawToDigi_Stage1.add(gtDigis,caloStage1Digis,caloStage1FinalDigis,caloStage1LegacyFormatDigis,gctDigis)
40 (stage1L1Trigger & ~stage2L1Trigger).toReplaceWith(L1TRawToDigiTask, cms.Task(L1TRawToDigi_Stage1))
41 
42 #
43 # Stage-2 Trigger: fow now, unpack Stage 1 and Stage 2 (in case both available)
44 #
45 from EventFilter.RPCRawToDigi.rpcTwinMuxRawToDigi_cfi import rpcTwinMuxRawToDigi
46 from EventFilter.RPCRawToDigi.rpcUnpacker_cfi import rpcunpacker
47 from EventFilter.RPCRawToDigi.RPCCPPFRawToDigi_cfi import rpcCPPFRawToDigi
48 from EventFilter.L1TRawToDigi.bmtfDigis_cfi import bmtfDigis
49 from EventFilter.L1TRawToDigi.omtfStage2Digis_cfi import omtfStage2Digis
50 from EventFilter.L1TRawToDigi.emtfStage2Digis_cfi import emtfStage2Digis
51 from EventFilter.L1TRawToDigi.caloLayer1Digis_cfi import caloLayer1Digis
52 from EventFilter.L1TRawToDigi.caloStage2Digis_cfi import caloStage2Digis
53 from EventFilter.L1TRawToDigi.gmtStage2Digis_cfi import gmtStage2Digis
54 from EventFilter.L1TRawToDigi.gtStage2Digis_cfi import gtStage2Digis
55 from EventFilter.L1TRawToDigi.gtTestcrateStage2Digis_cfi import gtTestcrateStage2Digis
56 from EventFilter.L1TXRawToDigi.twinMuxStage2Digis_cfi import twinMuxStage2Digis
57 # we only warn if it is stage-2 era and it is an essential, always present, stage-2 payload:
58 stage2L1Trigger.toModify(caloStage2Digis, MinFeds = cms.uint32(1))
59 stage2L1Trigger.toModify(gmtStage2Digis, MinFeds = cms.uint32(1))
60 stage2L1Trigger.toModify(gtStage2Digis, MinFeds = cms.uint32(1))
61 L1TRawToDigi_Stage2 = cms.Task(rpcunpacker,rpcTwinMuxRawToDigi, twinMuxStage2Digis, bmtfDigis, omtfStage2Digis, rpcCPPFRawToDigi, emtfStage2Digis, caloLayer1Digis, caloStage2Digis, gmtStage2Digis, gtStage2Digis, gtTestcrateStage2Digis)
62 stage2L1Trigger.toReplaceWith(L1TRawToDigiTask, cms.Task(L1TRawToDigi_Stage1,L1TRawToDigi_Stage2))
63 
64 L1TRawToDigi = cms.Sequence(L1TRawToDigiTask)