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

[14.0.X] add failsafes for protecting the alpaka customization against Fake HLT menus #44253

Merged
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
12 changes: 11 additions & 1 deletion HLTrigger/Configuration/python/customizeHLTforAlpaka.py
Original file line number Diff line number Diff line change
Expand Up @@ -190,6 +190,10 @@ def customizeHLTforAlpakaParticleFlowClustering(process):
pfRecHits = cms.InputTag("hltPFRecHitSoAProducerHCALCPUSerial"),
)

## failsafe for fake menus
if(not hasattr(process,'hltParticleFlowClusterHBHE')):
return process

process.hltLegacyPFClusterProducer = cms.EDProducer("LegacyPFClusterProducer",
src = cms.InputTag("hltPFClusterSoAProducer"),
pfClusterParams = cms.ESInputTag("pfClusterParamsESProducer:"),
Expand Down Expand Up @@ -725,6 +729,10 @@ def customizeHLTforAlpakaPixelRecoVertexing(process):
src = cms.InputTag("hltPixelVerticesCPUSerial")
)

## failsafe for fake menus
if(not hasattr(process,'hltTrimmedPixelVertices')):
return process

process.HLTRecopixelvertexingTask = cms.ConditionalTask(
process.HLTRecoPixelTracksTask,
process.hltPixelVerticesSoA,
Expand Down Expand Up @@ -905,7 +913,9 @@ def customizeHLTforAlpakaEcalLocalReco(process):
if hasattr(process, 'hltEcalUncalibRecHitSoA'):
delattr(process, 'hltEcalUncalibRecHitSoA')

process.HLTDoFullUnpackingEgammaEcalTask = cms.ConditionalTask(process.HLTDoFullUnpackingEgammaEcalWithoutPreshowerTask, process.HLTPreshowerTask)
## failsafe for fake menus
if hasattr(process, 'HLTDoFullUnpackingEgammaEcalWithoutPreshowerTask') and hasattr(process, 'HLTPreshowerTask'):
process.HLTDoFullUnpackingEgammaEcalTask = cms.ConditionalTask(process.HLTDoFullUnpackingEgammaEcalWithoutPreshowerTask, process.HLTPreshowerTask)

return process

Expand Down