CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
L1ExtraDQM_cff.py
Go to the documentation of this file.
2 
4 
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 
17 import EventFilter.L1GlobalTriggerRawToDigi.l1GtUnpack_cfi
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 #
46 # Modify for running with the Stage 1 trigger. Note that these changes are already
47 # applied to l1extraParticles before it is cloned, but the changes are overwritten
48 # in the commands above. So we need to write back the correct Run 2 values.
49 #
50 from Configuration.StandardSequences.Eras import eras
51 eras.stage1L1Trigger.toModify( dqmL1ExtraParticles, etTotalSource = cms.InputTag("caloStage1LegacyFormatDigis") )
52 eras.stage1L1Trigger.toModify( dqmL1ExtraParticles, nonIsolatedEmSource = cms.InputTag("caloStage1LegacyFormatDigis","nonIsoEm") )
53 eras.stage1L1Trigger.toModify( dqmL1ExtraParticles, etMissSource = cms.InputTag("caloStage1LegacyFormatDigis") )
54 eras.stage1L1Trigger.toModify( dqmL1ExtraParticles, htMissSource = cms.InputTag("caloStage1LegacyFormatDigis") )
55 eras.stage1L1Trigger.toModify( dqmL1ExtraParticles, forwardJetSource = cms.InputTag("caloStage1LegacyFormatDigis","forJets") )
56 eras.stage1L1Trigger.toModify( dqmL1ExtraParticles, centralJetSource = cms.InputTag("caloStage1LegacyFormatDigis","cenJets") )
57 eras.stage1L1Trigger.toModify( dqmL1ExtraParticles, tauJetSource = cms.InputTag("caloStage1LegacyFormatDigis","tauJets") )
58 eras.stage1L1Trigger.toModify( dqmL1ExtraParticles, isoTauJetSource = cms.InputTag("caloStage1LegacyFormatDigis","isoTauJets") )
59 eras.stage1L1Trigger.toModify( dqmL1ExtraParticles, isolatedEmSource = cms.InputTag("caloStage1LegacyFormatDigis","isoEm") )
60 eras.stage1L1Trigger.toModify( dqmL1ExtraParticles, etHadSource = cms.InputTag("caloStage1LegacyFormatDigis") )
61 eras.stage1L1Trigger.toModify( dqmL1ExtraParticles, hfRingEtSumsSource = cms.InputTag("caloStage1LegacyFormatDigis") )
62 eras.stage1L1Trigger.toModify( dqmL1ExtraParticles, hfRingBitCountsSource = cms.InputTag("caloStage1LegacyFormatDigis") )