CMS 3D CMS Logo

customizeStripClustersFromRaw.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
2 
3 # replace the standard SiStripClusterizer with the switch producer
4 # meant primarily for testing
6  if hasattr(process, 'striptrackerlocalrecoTask'):
7  process.striptrackerlocalrecoTask.remove(process.siStripClusters)
8  process.load("RecoLocalTracker.SiStripClusterizer.SiStripClusterizerOnDemand_cfi")
9  # CPU should emulate the full detector clusterizer
10  process.siStripClusters.cpu.onDemand = cms.bool(False)
11  process.striptrackerlocalrecoTask.add(process.siStripClustersTask)
12 
13  return process
14 
16  if hasattr(process, 'hltSiStripRawToClustersFacility'):
17  import RecoLocalTracker.SiStripClusterizer.SiStripClusterizerOnDemand_cfi as SiStripClusterizerOnDemand_cfi
18 
19  process.load("RecoLocalTracker.SiStripClusterizer.SiStripClusterizerOnDemand_cfi")
20  process.hltSiStripRawToClustersFacility = SiStripClusterizerOnDemand_cfi.siStripClusters.clone()
21  process.HLTDoLocalStripSequence.replace(process.hltSiStripRawToClustersFacility,
22  cms.Sequence(process.hltSiStripRawToClustersFacility, process.siStripClustersTaskCUDA))
23 
24  return process