Skip to content

Commit

Permalink
include CPU serial to DQM_HcalReconstruction_v path only if it exists
Browse files Browse the repository at this point in the history
  • Loading branch information
waredjeb committed Feb 21, 2024
1 parent 0a56692 commit e6e2d97
Showing 1 changed file with 14 additions and 6 deletions.
20 changes: 14 additions & 6 deletions HLTrigger/Configuration/python/customizeHLTforAlpaka.py
Original file line number Diff line number Diff line change
Expand Up @@ -245,19 +245,27 @@ def replaceItemsInSequence(process, itemsToReplace, replacingSequence):

process.HLTPFClusterHBHECPUSerial = cms.Sequence(process.hltHBHERecHitToSoA+process.hltPFRecHitSoAProducerHCALCPUSerial+process.hltPFClusterSoAProducerCPUSerial)

# Add CPUSerial sequences to DQM_HcalReconstruction_v6 Path
dqmHcalRecoPathName = "DQM_HcalReconstruction_v6"
dqmHcalPath= getattr(process, dqmHcalRecoPathName)
dqmHcalRecoPathIndex = dqmHcalPath.index(process.hltHcalConsumerGPU) + 1
dqmHcalPath.insert(dqmHcalRecoPathIndex , process.HLTPFClusterHBHECPUSerial)

# modify EventContent of DQMGPUvsCPU stream
if hasattr(process, 'hltOutputDQMGPUvsCPU'):
process.hltOutputDQMGPUvsCPU.outputCommands.extend([
'keep *_hltPFClusterSoAProducer_*_*',
'keep *_hltPFClusterSoAProducerCPUSerial_*_*',
])

# Add CPUSerial sequences to DQM_HcalReconstruction_v Path
dqmHcalRecoPathName = None
for pathName in process.paths_():
if pathName.startswith('DQM_HcalReconstruction_v'):
dqmHcalRecoPathName = pathName
break

if dqmHcalRecoPathName == None:
return process

dqmHcalPath = getattr(process, dqmHcalRecoPathName)
dqmHcalRecoPathIndex = dqmHcalPath.index(process.hltHcalConsumerGPU) + 1
dqmHcalPath.insert(dqmHcalRecoPathIndex , process.HLTPFClusterHBHECPUSerial)

return process

## Pixel HLT in Alpaka
Expand Down

0 comments on commit e6e2d97

Please sign in to comment.