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 dqmGctDigis.inputLabel = 'rawDataCollector'
12 #
13 # unpack all five samples
14 dqmGctDigis.numberOfGctSamplesToUnpack = 5
15 
16 
18 dqmGtDigis = EventFilter.L1GlobalTriggerRawToDigi.l1GtUnpack_cfi.l1GtUnpack.clone()
19 dqmGtDigis.DaqGtInputTag = 'rawDataCollector'
20 #
21 # unpack all available BxInEvent, UnpackBxInEvent read from event setup
22 dqmGtDigis.UnpackBxInEvent = -1
23 
24 
25 # import the L1Extra producer, configured to run for all BX
26 # use a clone dqmL1ExtraParticles, to not interfere with L1Reco from standard sequences
28 dqmL1ExtraParticles = L1Trigger.L1ExtraFromDigis.l1extraParticles_cfi.l1extraParticles.clone()
29 #
30 dqmL1ExtraParticles.muonSource = 'dqmGtDigis'
31 dqmL1ExtraParticles.etTotalSource = 'dqmGctDigis'
32 dqmL1ExtraParticles.nonIsolatedEmSource = 'dqmGctDigis:nonIsoEm'
33 dqmL1ExtraParticles.etMissSource = 'dqmGctDigis'
34 dqmL1ExtraParticles.htMissSource = 'dqmGctDigis'
35 dqmL1ExtraParticles.forwardJetSource = 'dqmGctDigis:forJets'
36 dqmL1ExtraParticles.centralJetSource = 'dqmGctDigis:cenJets'
37 dqmL1ExtraParticles.tauJetSource = 'dqmGctDigis:tauJets'
38 dqmL1ExtraParticles.isolatedEmSource = 'dqmGctDigis:isoEm'
39 dqmL1ExtraParticles.etHadSource = 'dqmGctDigis'
40 dqmL1ExtraParticles.hfRingEtSumsSource = 'dqmGctDigis'
41 dqmL1ExtraParticles.hfRingBitCountsSource = 'dqmGctDigis'
42 #
43 dqmL1ExtraParticles.centralBxOnly = cms.bool(False)
44 
45 # get stage1 digis
47 dqmL1ExtraParticlesStage1 = L1Trigger.L1ExtraFromDigis.l1extraParticles_cfi.l1extraParticles.clone()
48 #
49 dqmL1ExtraParticlesStage1.muonSource = 'dqmGtDigis'
50 dqmL1ExtraParticlesStage1.etTotalSource = 'caloStage1LegacyFormatDigis'
51 dqmL1ExtraParticlesStage1.nonIsolatedEmSource = 'caloStage1LegacyFormatDigis:nonIsoEm'
52 dqmL1ExtraParticlesStage1.etMissSource = 'caloStage1LegacyFormatDigis'
53 dqmL1ExtraParticlesStage1.htMissSource = 'caloStage1LegacyFormatDigis'
54 dqmL1ExtraParticlesStage1.forwardJetSource = 'caloStage1LegacyFormatDigis:forJets'
55 dqmL1ExtraParticlesStage1.centralJetSource = 'caloStage1LegacyFormatDigis:cenJets'
56 dqmL1ExtraParticlesStage1.tauJetSource = 'caloStage1LegacyFormatDigis:tauJets'
57 dqmL1ExtraParticlesStage1.isoTauJetSource = 'caloStage1LegacyFormatDigis:isoTauJets'
58 dqmL1ExtraParticlesStage1.isolatedEmSource = 'caloStage1LegacyFormatDigis:isoEm'
59 dqmL1ExtraParticlesStage1.etHadSource = 'caloStage1LegacyFormatDigis'
60 dqmL1ExtraParticlesStage1.hfRingEtSumsSource = 'caloStage1LegacyFormatDigis'
61 dqmL1ExtraParticlesStage1.hfRingBitCountsSource = 'caloStage1LegacyFormatDigis'
62 #
63 dqmL1ExtraParticlesStage1.centralBxOnly = cms.bool(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") )