# # define sequences # from DQMOffline.L1Trigger.L1TPhase2Offline_cfi import * ############################################################################## # sequence to run for all datasets Phase2l1TriggerOffline = cms.Sequence( dqmEnvL1T ) ############################################################################## # DQM sequences for step 1 # DQM Offline sequence Phase2l1TriggerDqmOffline = cms.Sequence( l1tPhase2OfflineDQM ) ############################################################################## # DQM sequences for step 2 # DQM Offline sequence Phase2l1TriggerDqmOfflineClient = cms.Sequence( DQMHarvestL1TPhase2 ) #replacements for phase2 phase2_trigger.toReplaceWith(l1TriggerOffline, Phase2l1TriggerOffline) phase2_trigger.toReplaceWith(l1TriggerDqmOffline, Phase2l1TriggerDqmOffline) phase2_trigger.toReplaceWith(l1TriggerDqmOfflineClient, Phase2l1TriggerDqmOfflineClient)
# # stage2L1Trigger.toReplaceWith( SimL1TMuonTask, cms.Task(SimL1TMuonCommonTask, simTwinMuxDigis, simBmtfDigis, simEmtfDigis, simOmtfDigis, simGmtCaloSumDigis, simGmtStage2Digis)) # # Phase-2 Trigger # from L1Trigger.L1TMuonBarrel.simKBmtfStubs_cfi import * from L1Trigger.L1TMuonBarrel.simKBmtfDigis_cfi import * from Configuration.Eras.Modifier_phase2_trigger_cff import phase2_trigger phase2_trigger.toReplaceWith( SimL1TMuonTask, cms.Task(SimL1TMuonCommonTask, simTwinMuxDigis, simBmtfDigis, simKBmtfStubs, simKBmtfDigis, simEmtfDigis, simOmtfDigis, simGmtCaloSumDigis, simGmtStage2Digis)) ## GEM TPs from L1Trigger.L1TGEM.simGEMDigis_cff import * _run3_SimL1TMuonTask = SimL1TMuonTask.copy() _run3_SimL1TMuonTask.add(simMuonGEMPadTask) from Configuration.Eras.Modifier_run3_GEM_cff import run3_GEM (stage2L1Trigger & run3_GEM).toReplaceWith(SimL1TMuonTask, _run3_SimL1TMuonTask) ## ME0 TPs from L1Trigger.L1TGEM.me0TriggerDigis_cff import * _phase2_SimL1TMuonTask = SimL1TMuonTask.copy()
pfMet.calculateSignificance = False l1MetCalo = pfMet.clone(src="l1pfProducer:Calo") l1MetTK = pfMet.clone(src="l1pfProducer:TK") l1MetTKV = pfMet.clone(src="l1pfProducer:TKVtx") l1MetTightTK = pfMet.clone(src="l1pfProducerTightTK:TK") l1MetTightTKV = pfMet.clone(src="l1pfProducerTightTK:TKVtx") l1MetPF = pfMet.clone(src="l1pfProducer:PF") l1MetPuppi = pfMet.clone(src="l1pfProducer:Puppi") l1PFMets = cms.Sequence(l1MetCalo + l1MetTK + l1MetTKV + l1MetPF + l1MetPuppi + l1MetTightTK + l1MetTightTKV) phase2_SimL1Emulator += l1PFMets # PF Jets # ######################################################################## from RecoJets.JetProducers.ak4PFJets_cfi import ak4PFJets ak4L1Calo = ak4PFJets.clone(src='l1pfProducer:Calo') ak4L1TK = ak4PFJets.clone(src='l1pfProducer:TK') ak4L1TKV = ak4PFJets.clone(src='l1pfProducer:TKVtx') ak4L1TightTK = ak4PFJets.clone(src='l1pfProducerTightTK:TK') ak4L1TightTKV = ak4PFJets.clone(src='l1pfProducerTightTK:TKVtx') ak4L1PF = ak4PFJets.clone(src='l1pfProducer:PF') ak4L1Puppi = ak4PFJets.clone(src='l1pfProducer:Puppi') l1PFJets = cms.Sequence(ak4L1Calo + ak4L1TK + ak4L1TKV + ak4L1PF + ak4L1Puppi + ak4L1TightTK + ak4L1TightTKV) phase2_SimL1Emulator += l1PFJets from Configuration.Eras.Modifier_phase2_trigger_cff import phase2_trigger phase2_trigger.toReplaceWith(SimL1Emulator, phase2_SimL1Emulator)
_phase2_siml1emulator.add(L1TkPhotonsHGC) _phase2_siml1emulator.add(L1TkMuons) # PF Candidates # ######################################################################## from L1Trigger.Phase2L1ParticleFlow.l1ParticleFlow_cff import * _phase2_siml1emulator.add(l1ParticleFlowTask) # PF Jet # ######################################################################## from L1Trigger.L1CaloTrigger.Phase1L1TJets_cff import * # Describe here l1PFJets_a_la_Phase1 Task # ############################### l1PFJetsPhase1Task = cms.Task(Phase1L1TJetProducer, Phase1L1TJetCalibrator) _phase2_siml1emulator.add(l1PFJetsPhase1Task) # PF MET # ######################################################################## from L1Trigger.Phase2L1ParticleFlow.l1pfJetMet_cff import * # Describe here l1PFMets Task # ############################### l1PFMetsTask = cms.Task(l1PFMetCalo, l1PFMetPF, l1PFMetPuppi) _phase2_siml1emulator.add(l1PFMetsTask) # --> add modules from Configuration.Eras.Modifier_phase2_trigger_cff import phase2_trigger phase2_trigger.toReplaceWith(SimL1EmulatorTask, _phase2_siml1emulator)
import FWCore.ParameterSet.Config as cms from L1Trigger.TrackTrigger.TrackTrigger_cff import * from SimTracker.TrackTriggerAssociation.TrackTriggerAssociator_cff import * from L1Trigger.TrackerDTC.ProducerED_cff import * from L1Trigger.TrackFindingTracklet.L1HybridEmulationTracks_cff import * L1TrackTrigger = cms.Sequence(TrackTriggerClustersStubs * TrackTriggerAssociatorClustersStubs * TrackerDTCProducer) # Customisation to enable TTTracks in geometry D41 and later (corresponding to phase2_trackerV14 or later). Includes the HGCAL L1 trigger _tttracks_l1tracktrigger = L1TrackTrigger.copy() _tttracks_l1tracktrigger = cms.Sequence( _tttracks_l1tracktrigger + L1PromptExtendedHybridTracksWithAssociators) from Configuration.Eras.Modifier_phase2_trigger_cff import phase2_trigger phase2_trigger.toReplaceWith(L1TrackTrigger, _tttracks_l1tracktrigger)