CMS 3D CMS Logo

L1ExtraDQM_cff.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
2 
5 
6 # for DQM, unpack all BxInEvent available for GCT, GMT & GT (common unpacker for GMT and GT)
7 # use clones dqmGctDigis and dqmGtDigis, to not interfere with RawToDigi from standard sequences
8 
9 import EventFilter.GctRawToDigi.l1GctHwDigis_cfi
10 dqmGctDigis = EventFilter.GctRawToDigi.l1GctHwDigis_cfi.l1GctHwDigis.clone(
11  inputLabel = 'rawDataCollector'
12 )
13 #
14 # unpack all five samples
15 dqmGctDigis.numberOfGctSamplesToUnpack = 5
16 
17 
19 dqmGtDigis = EventFilter.L1GlobalTriggerRawToDigi.l1GtUnpack_cfi.l1GtUnpack.clone(
20  DaqGtInputTag = 'rawDataCollector'
21 )
22 #
23 # unpack all available BxInEvent, UnpackBxInEvent read from event setup
24 dqmGtDigis.UnpackBxInEvent = -1
25 
26 
27 # import the L1Extra producer, configured to run for all BX
28 # use a clone dqmL1ExtraParticles, to not interfere with L1Reco from standard sequences
30 dqmL1ExtraParticles = L1Trigger.L1ExtraFromDigis.l1extraParticles_cfi.l1extraParticles.clone(
31  #
32  muonSource = 'dqmGtDigis',
33  etTotalSource = 'dqmGctDigis',
34  nonIsolatedEmSource = 'dqmGctDigis:nonIsoEm',
35  etMissSource = 'dqmGctDigis',
36  htMissSource = 'dqmGctDigis',
37  forwardJetSource = 'dqmGctDigis:forJets',
38  centralJetSource = 'dqmGctDigis:cenJets',
39  tauJetSource = 'dqmGctDigis:tauJets',
40  isolatedEmSource = 'dqmGctDigis:isoEm',
41  etHadSource = 'dqmGctDigis',
42  hfRingEtSumsSource = 'dqmGctDigis',
43  hfRingBitCountsSource = 'dqmGctDigis',
44  centralBxOnly = False
45 )
46 # get stage1 digis
48 dqmL1ExtraParticlesStage1 = L1Trigger.L1ExtraFromDigis.l1extraParticles_cfi.l1extraParticles.clone(
49  #
50  muonSource = 'dqmGtDigis',
51  etTotalSource = 'caloStage1LegacyFormatDigis',
52  nonIsolatedEmSource = 'caloStage1LegacyFormatDigis:nonIsoEm',
53  etMissSource = 'caloStage1LegacyFormatDigis',
54  htMissSource = 'caloStage1LegacyFormatDigis',
55  forwardJetSource = 'caloStage1LegacyFormatDigis:forJets',
56  centralJetSource = 'caloStage1LegacyFormatDigis:cenJets',
57  tauJetSource = 'caloStage1LegacyFormatDigis:tauJets',
58  isoTauJetSource = 'caloStage1LegacyFormatDigis:isoTauJets',
59  isolatedEmSource = 'caloStage1LegacyFormatDigis:isoEm',
60  etHadSource = 'caloStage1LegacyFormatDigis',
61  hfRingEtSumsSource = 'caloStage1LegacyFormatDigis',
62  hfRingBitCountsSource = 'caloStage1LegacyFormatDigis',
63  centralBxOnly = False
64 )
65 #
66 # Modify for running with the Stage 1 trigger. Note that these changes are already
67 # applied to l1extraParticles before it is cloned, but the changes are overwritten
68 # in the commands above. So we need to write back the correct Run 2 values.
69 #
70 from Configuration.Eras.Modifier_stage1L1Trigger_cff import stage1L1Trigger
71 stage1L1Trigger.toModify( dqmL1ExtraParticles, etTotalSource = cms.InputTag("caloStage1LegacyFormatDigis") )
72 stage1L1Trigger.toModify( dqmL1ExtraParticles, nonIsolatedEmSource = cms.InputTag("caloStage1LegacyFormatDigis","nonIsoEm") )
73 stage1L1Trigger.toModify( dqmL1ExtraParticles, etMissSource = cms.InputTag("caloStage1LegacyFormatDigis") )
74 stage1L1Trigger.toModify( dqmL1ExtraParticles, htMissSource = cms.InputTag("caloStage1LegacyFormatDigis") )
75 stage1L1Trigger.toModify( dqmL1ExtraParticles, forwardJetSource = cms.InputTag("caloStage1LegacyFormatDigis","forJets") )
76 stage1L1Trigger.toModify( dqmL1ExtraParticles, centralJetSource = cms.InputTag("caloStage1LegacyFormatDigis","cenJets") )
77 stage1L1Trigger.toModify( dqmL1ExtraParticles, tauJetSource = cms.InputTag("caloStage1LegacyFormatDigis","tauJets") )
78 stage1L1Trigger.toModify( dqmL1ExtraParticles, isoTauJetSource = cms.InputTag("caloStage1LegacyFormatDigis","isoTauJets") )
79 stage1L1Trigger.toModify( dqmL1ExtraParticles, isolatedEmSource = cms.InputTag("caloStage1LegacyFormatDigis","isoEm") )
80 stage1L1Trigger.toModify( dqmL1ExtraParticles, etHadSource = cms.InputTag("caloStage1LegacyFormatDigis") )
81 stage1L1Trigger.toModify( dqmL1ExtraParticles, hfRingEtSumsSource = cms.InputTag("caloStage1LegacyFormatDigis") )
82 stage1L1Trigger.toModify( dqmL1ExtraParticles, hfRingBitCountsSource = cms.InputTag("caloStage1LegacyFormatDigis") )