Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 14:22:30

0001 import FWCore.ParameterSet.Config as cms
0002 
0003 l1extraParticles = cms.EDProducer("L1ExtraParticlesProd",
0004     muonSource = cms.InputTag("gtDigis"),
0005     etTotalSource = cms.InputTag("gctDigis"),
0006     nonIsolatedEmSource = cms.InputTag("gctDigis","nonIsoEm"),
0007     etMissSource = cms.InputTag("gctDigis"),
0008     htMissSource = cms.InputTag("gctDigis"),
0009     produceMuonParticles = cms.bool(True),
0010     forwardJetSource = cms.InputTag("gctDigis","forJets"),
0011     centralJetSource = cms.InputTag("gctDigis","cenJets"),
0012     produceCaloParticles = cms.bool(True),
0013     tauJetSource = cms.InputTag("gctDigis","tauJets"),
0014     isoTauJetSource = cms.InputTag("gctDigis","isoTauJets"),
0015     isolatedEmSource = cms.InputTag("gctDigis","isoEm"),
0016     etHadSource = cms.InputTag("gctDigis"),
0017     hfRingEtSumsSource = cms.InputTag("gctDigis"),
0018     hfRingBitCountsSource = cms.InputTag("gctDigis"),
0019     centralBxOnly = cms.bool(False),
0020     ignoreHtMiss = cms.bool(False)
0021 )
0022 
0023 #
0024 # Modify for running with the Stage 1 or Stage 2 trigger
0025 #
0026 from Configuration.Eras.Modifier_stage1L1Trigger_cff import stage1L1Trigger
0027 from Configuration.Eras.Modifier_stage2L1Trigger_cff import stage2L1Trigger 
0028 _caloStage1LegacyFormatDigis = "caloStage1LegacyFormatDigis"
0029 _params = dict(
0030     etTotalSource         = cms.InputTag(_caloStage1LegacyFormatDigis),
0031     nonIsolatedEmSource   = cms.InputTag(_caloStage1LegacyFormatDigis,"nonIsoEm"),
0032     etMissSource          = cms.InputTag(_caloStage1LegacyFormatDigis),
0033     htMissSource          = cms.InputTag(_caloStage1LegacyFormatDigis),
0034     forwardJetSource      = cms.InputTag(_caloStage1LegacyFormatDigis,"forJets"),
0035     centralJetSource      = cms.InputTag(_caloStage1LegacyFormatDigis,"cenJets"),
0036     tauJetSource          = cms.InputTag(_caloStage1LegacyFormatDigis,"tauJets"),
0037     isoTauJetSource       = cms.InputTag(_caloStage1LegacyFormatDigis,"isoTauJets"),
0038     isolatedEmSource      = cms.InputTag(_caloStage1LegacyFormatDigis,"isoEm"),
0039     etHadSource           = cms.InputTag(_caloStage1LegacyFormatDigis),
0040     hfRingEtSumsSource    = cms.InputTag(_caloStage1LegacyFormatDigis),
0041     hfRingBitCountsSource = cms.InputTag(_caloStage1LegacyFormatDigis),
0042     muonSource            = cms.InputTag("gtDigis"),
0043     centralBxOnly         = True)
0044 
0045 stage1L1Trigger.toModify( l1extraParticles, **_params)
0046 stage2L1Trigger.toModify( l1extraParticles, **_params)
0047 
0048 # fastsim runs L1Reco and HLT in one step
0049 # this requires to set :
0050 from Configuration.Eras.Modifier_fastSim_cff import fastSim
0051 fastSim.toModify(l1extraParticles, centralBxOnly = True)