Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Phase2-L1T] Turn on L1CaloTrigger, L1TrackMatch and L1ParticleFlow #30520

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Configuration/PyReleaseValidation/python/relval_steps.py
Original file line number Diff line number Diff line change
Expand Up @@ -3265,7 +3265,7 @@ def gen2021HiMix(fragment,howMuch):
}

# Adding Track trigger step in step2
upgradeStepDict['DigiFullTrigger'][k] = {'-s':'DIGI:pdigi_valid,L1,L1TrackTrigger,DIGI2RAW,HLT:%s'%(hltversion),
upgradeStepDict['DigiFullTrigger'][k] = {'-s':'DIGI:pdigi_valid,L1TrackTrigger,L1,DIGI2RAW,HLT:%s'%(hltversion),
'--conditions':gt,
'--datatier':'GEN-SIM-DIGI-RAW',
'-n':'10',
Expand Down
79 changes: 75 additions & 4 deletions L1Trigger/Configuration/python/SimL1Emulator_cff.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,10 +58,81 @@
# soon to be removed when availble in GTs
from L1Trigger.L1TTwinMux.fakeTwinMuxParams_cff import *

# Customisation for the phase2_hgcal era. Includes the HGCAL L1 trigger
from L1Trigger.L1THGCal.hgcalTriggerPrimitives_cff import *
_phase2_siml1emulator = SimL1EmulatorTask.copy()

# ########################################################################
# ########################################################################
#
# Phase-2
#
# ########################################################################
# ########################################################################

# ########################################################################
# Phase-2 Trigger Primitives
# ########################################################################

# HGCAL TP
# ########################################################################
from L1Trigger.L1THGCal.hgcalTriggerPrimitives_cff import *
_phase2_siml1emulator.add(hgcalTriggerPrimitivesTask)

# ########################################################################
# Phase 2 L1T
# ########################################################################

# Barrel and EndCap EGamma
# ########################################################################

from L1Trigger.L1CaloTrigger.L1EGammaCrystalsEmulatorProducer_cfi import *
_phase2_siml1emulator.add(L1EGammaClusterEmuProducer)

from L1Trigger.L1CaloTrigger.l1EGammaEEProducer_cfi import *
_phase2_siml1emulator.add(l1EGammaEEProducer)

# ########################################################################
# Phase-2 L1T - TrackTrigger dependent modules
# ########################################################################

# Tk + StandaloneObj, including L1TkPrimaryVertex
# ########################################################################
from L1Trigger.L1TTrackMatch.L1TkObjectProducers_cff import *

_phase2_siml1emulator.add(L1TkPrimaryVertex)

_phase2_siml1emulator.add(L1TkElectronsCrystal)
_phase2_siml1emulator.add(L1TkElectronsLooseCrystal)
_phase2_siml1emulator.add(L1TkElectronsEllipticMatchCrystal)
_phase2_siml1emulator.add(L1TkIsoElectronsCrystal)
_phase2_siml1emulator.add(L1TkPhotonsCrystal)

_phase2_siml1emulator.add(L1TkElectronsHGC)
_phase2_siml1emulator.add(L1TkElectronsEllipticMatchHGC)
_phase2_siml1emulator.add(L1TkIsoElectronsHGC)
_phase2_siml1emulator.add(L1TkPhotonsHGC)

_phase2_siml1emulator.add( L1TkMuons )

# PF Candidates
# ########################################################################
from L1Trigger.Phase2L1ParticleFlow.l1ParticleFlow_cff import *
_phase2_siml1emulator.add(l1ParticleFlowTask)

# PF JetMET
# ########################################################################
from L1Trigger.Phase2L1ParticleFlow.l1pfJetMet_cff import *
# Describe here l1PFJets Task
# ###############################
l1PFJetsTask = cms.Task(
ak4PFL1Calo , ak4PFL1PF , ak4PFL1Puppi ,
ak4PFL1CaloCorrected , ak4PFL1PFCorrected , ak4PFL1PuppiCorrected)
_phase2_siml1emulator.add(l1PFJetsTask)
# Describe here l1PFMets Task
# ###############################
l1PFMetsTask = cms.Task(l1PFMetCalo , l1PFMetPF , l1PFMetPuppi)
_phase2_siml1emulator.add(l1PFMetsTask)

from Configuration.Eras.Modifier_phase2_hgcal_cff import phase2_hgcal
phase2_hgcal.toReplaceWith( SimL1EmulatorTask , _phase2_siml1emulator )
# --> add modules
from Configuration.Eras.Modifier_phase2_trigger_cff import phase2_trigger
from Configuration.Eras.Modifier_phase2_trackerV14_cff import phase2_trackerV14
(phase2_trigger & phase2_trackerV14).toReplaceWith( SimL1EmulatorTask , _phase2_siml1emulator)
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ fi
# DIGI comes next
if checkFile SingleMuPt10_step2_DIGI_L1_DIGI2RAW_HLT_PhaseII.root ; then
cmsDriver.py step2 \
-s DIGI:pdigi_valid,L1,L1TrackTrigger,DIGI2RAW,HLT:@fake2 \
-s DIGI:pdigi_valid,L1TrackTrigger,L1,DIGI2RAW,HLT:@fake2 \
--conditions auto:phase2_realistic \
-n -1 \
--era Phase2C2 \
Expand Down