Skip to content

Commit

Permalink
customize hlt
Browse files Browse the repository at this point in the history
  • Loading branch information
Dan Riley authored and Dan Riley committed Jul 25, 2021
1 parent 8c82f38 commit 320209c
Showing 1 changed file with 17 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -1,9 +1,22 @@
import FWCore.ParameterSet.Config as cms
import RecoLocalTracker.SiStripClusterizer.SiStripClusterizerOnDemand_cfi as SiStripClusterizerOnDemand_cfi

def customizeStripClustersFromRaw(process):
process.striptrackerlocalrecoTask.remove(process.siStripClusters)
process.load("RecoLocalTracker.SiStripClusterizer.SiStripClusterizerOnDemand_cfi")
#process.siStripClusterizerFromRaw.onDemand = cms.bool(False)
process.striptrackerlocalrecoTask.add(process.siStripClustersTask)
if hasattr(process, 'striptrackerlocalrecoTask'):
process.striptrackerlocalrecoTask.remove(process.siStripClusters)
process.load("RecoLocalTracker.SiStripClusterizer.SiStripClusterizerOnDemand_cfi")
# CPU should emulate the full detector clusterizer
process.siStripClusterizerFromRaw.onDemand = cms.bool(False)
process.striptrackerlocalrecoTask.add(process.siStripClustersTask)

return process

def customizeHLTStripClustersFromRaw(process):
if hasattr(process, 'hltSiStripRawToClustersFacility'):
process.load("RecoLocalTracker.SiStripClusterizer.SiStripClusterizerConditionsGPUESProducer_cfi")
process.load("RecoLocalTracker.SiStripClusterizer.SiStripClusterizerOnDemand_cfi")
process.hltSiStripRawToClustersFacility = SiStripClusterizerOnDemand_cfi.siStripClusters.clone()
process.HLTDoLocalStripSequence.replace(process.hltSiStripRawToClustersFacility,
cms.Sequence(process.hltSiStripRawToClustersFacility, process.siStripClustersTask))

return process

0 comments on commit 320209c

Please sign in to comment.