-
Notifications
You must be signed in to change notification settings - Fork 4.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- 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.
There are no files selected for viewing
21 changes: 17 additions & 4 deletions
21
RecoLocalTracker/SiStripClusterizer/python/customizeStripClustersFromRaw.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |