Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2023-10-25 09:42:32

0001 import FWCore.ParameterSet.Config as cms
0002 
0003 from DQM.L1TMonitor.l1ExtraDQM_cfi import *
0004 from DQM.L1TMonitor.l1ExtraDQMStage1_cfi import *
0005 
0006 # for DQM, unpack all BxInEvent available for GCT, GMT & GT (common unpacker for GMT and GT)
0007 # use clones dqmGctDigis and dqmGtDigis, to not interfere with RawToDigi from standard sequences
0008 
0009 import EventFilter.GctRawToDigi.l1GctHwDigis_cfi
0010 dqmGctDigis = EventFilter.GctRawToDigi.l1GctHwDigis_cfi.l1GctHwDigis.clone(
0011   inputLabel = 'rawDataCollector'
0012 )
0013 #
0014 # unpack all five samples
0015 dqmGctDigis.numberOfGctSamplesToUnpack = 5
0016 
0017 
0018 import EventFilter.L1GlobalTriggerRawToDigi.l1GtUnpack_cfi
0019 dqmGtDigis = EventFilter.L1GlobalTriggerRawToDigi.l1GtUnpack_cfi.l1GtUnpack.clone(
0020   DaqGtInputTag = 'rawDataCollector'
0021 )
0022 #
0023 # unpack all available BxInEvent, UnpackBxInEvent read from event setup
0024 dqmGtDigis.UnpackBxInEvent = -1
0025 
0026 
0027 # import the L1Extra producer, configured to run for all BX
0028 # use a clone dqmL1ExtraParticles, to not interfere with L1Reco from standard sequences
0029 import L1Trigger.L1ExtraFromDigis.l1extraParticles_cfi
0030 dqmL1ExtraParticles = L1Trigger.L1ExtraFromDigis.l1extraParticles_cfi.l1extraParticles.clone(
0031   #
0032   muonSource = 'dqmGtDigis',
0033   etTotalSource = 'dqmGctDigis',
0034   nonIsolatedEmSource = 'dqmGctDigis:nonIsoEm',
0035   etMissSource = 'dqmGctDigis',
0036   htMissSource = 'dqmGctDigis',
0037   forwardJetSource = 'dqmGctDigis:forJets',
0038   centralJetSource = 'dqmGctDigis:cenJets',
0039   tauJetSource = 'dqmGctDigis:tauJets',
0040   isolatedEmSource = 'dqmGctDigis:isoEm',
0041   etHadSource = 'dqmGctDigis',
0042   hfRingEtSumsSource = 'dqmGctDigis',
0043   hfRingBitCountsSource = 'dqmGctDigis',
0044   centralBxOnly = False
0045 )
0046 # get stage1 digis
0047 import L1Trigger.L1ExtraFromDigis.l1extraParticles_cfi
0048 dqmL1ExtraParticlesStage1 = L1Trigger.L1ExtraFromDigis.l1extraParticles_cfi.l1extraParticles.clone(
0049   #
0050   muonSource = 'dqmGtDigis',
0051   etTotalSource = 'caloStage1LegacyFormatDigis',
0052   nonIsolatedEmSource = 'caloStage1LegacyFormatDigis:nonIsoEm',
0053   etMissSource = 'caloStage1LegacyFormatDigis',
0054   htMissSource = 'caloStage1LegacyFormatDigis',
0055   forwardJetSource = 'caloStage1LegacyFormatDigis:forJets',
0056   centralJetSource = 'caloStage1LegacyFormatDigis:cenJets',
0057   tauJetSource = 'caloStage1LegacyFormatDigis:tauJets',
0058   isoTauJetSource = 'caloStage1LegacyFormatDigis:isoTauJets',
0059   isolatedEmSource = 'caloStage1LegacyFormatDigis:isoEm',
0060   etHadSource = 'caloStage1LegacyFormatDigis',
0061   hfRingEtSumsSource = 'caloStage1LegacyFormatDigis',
0062   hfRingBitCountsSource = 'caloStage1LegacyFormatDigis',
0063   centralBxOnly = False
0064 )
0065 #
0066 # Modify for running with the Stage 1 trigger. Note that these changes are already
0067 # applied to l1extraParticles before it is cloned, but the changes are overwritten
0068 # in the commands above. So we need to write back the correct Run 2 values.
0069 #
0070 from Configuration.Eras.Modifier_stage1L1Trigger_cff import stage1L1Trigger
0071 stage1L1Trigger.toModify( dqmL1ExtraParticles, etTotalSource = cms.InputTag("caloStage1LegacyFormatDigis") )
0072 stage1L1Trigger.toModify( dqmL1ExtraParticles, nonIsolatedEmSource = cms.InputTag("caloStage1LegacyFormatDigis","nonIsoEm") )
0073 stage1L1Trigger.toModify( dqmL1ExtraParticles, etMissSource = cms.InputTag("caloStage1LegacyFormatDigis") )
0074 stage1L1Trigger.toModify( dqmL1ExtraParticles, htMissSource = cms.InputTag("caloStage1LegacyFormatDigis") )
0075 stage1L1Trigger.toModify( dqmL1ExtraParticles, forwardJetSource = cms.InputTag("caloStage1LegacyFormatDigis","forJets") )
0076 stage1L1Trigger.toModify( dqmL1ExtraParticles, centralJetSource = cms.InputTag("caloStage1LegacyFormatDigis","cenJets") )
0077 stage1L1Trigger.toModify( dqmL1ExtraParticles, tauJetSource = cms.InputTag("caloStage1LegacyFormatDigis","tauJets") )
0078 stage1L1Trigger.toModify( dqmL1ExtraParticles, isoTauJetSource = cms.InputTag("caloStage1LegacyFormatDigis","isoTauJets") )
0079 stage1L1Trigger.toModify( dqmL1ExtraParticles, isolatedEmSource = cms.InputTag("caloStage1LegacyFormatDigis","isoEm") )
0080 stage1L1Trigger.toModify( dqmL1ExtraParticles, etHadSource = cms.InputTag("caloStage1LegacyFormatDigis") )
0081 stage1L1Trigger.toModify( dqmL1ExtraParticles, hfRingEtSumsSource = cms.InputTag("caloStage1LegacyFormatDigis") )
0082 stage1L1Trigger.toModify( dqmL1ExtraParticles, hfRingBitCountsSource = cms.InputTag("caloStage1LegacyFormatDigis") )