1 import FWCore.ParameterSet.Config
as cms
3 from Configuration.Eras.Modifier_run3_common_cff
import run3_common
8 from CalibTracker.SiPixelESProducers.siPixelROCsStatusAndMappingWrapperESProducer_cfi
import siPixelROCsStatusAndMappingWrapperESProducer
9 from CalibTracker.SiPixelESProducers.siPixelGainCalibrationForHLTGPU_cfi
import siPixelGainCalibrationForHLTGPU
14 siPixelClustersPreSplittingTask = cms.Task(
16 siPixelClustersPreSplitting
20 from RecoLocalTracker.SiPixelClusterizer.siPixelRawToClusterCUDAPhase1_cfi
import siPixelRawToClusterCUDAPhase1
as _siPixelRawToClusterCUDA
21 from RecoLocalTracker.SiPixelClusterizer.siPixelRawToClusterCUDAHIonPhase1_cfi
import siPixelRawToClusterCUDAHIonPhase1
as _siPixelRawToClusterCUDAHIonPhase1
23 siPixelClustersPreSplittingCUDA = _siPixelRawToClusterCUDA.clone()
26 from Configuration.ProcessModifiers.pp_on_AA_cff
import pp_on_AA
28 from Configuration.Eras.Modifier_phase2_tracker_cff
import phase2_tracker
30 (pp_on_AA & ~phase2_tracker).toReplaceWith(siPixelClustersPreSplittingCUDA, _siPixelRawToClusterCUDAHIonPhase1.clone())
32 run3_common.toModify(siPixelClustersPreSplittingCUDA,
34 clusterThreshold_layer1 = 4000,
35 VCaltoElectronGain = 1,
36 VCaltoElectronGain_L1 = 1,
37 VCaltoElectronOffset = 0,
38 VCaltoElectronOffset_L1 = 0)
40 from RecoLocalTracker.SiPixelClusterizer.siPixelDigisClustersFromSoAPhase1_cfi
import siPixelDigisClustersFromSoAPhase1
as _siPixelDigisClustersFromSoAPhase1
41 from RecoLocalTracker.SiPixelClusterizer.siPixelDigisClustersFromSoAPhase2_cfi
import siPixelDigisClustersFromSoAPhase2
as _siPixelDigisClustersFromSoAPhase2
43 siPixelDigisClustersPreSplitting = _siPixelDigisClustersFromSoAPhase1.clone()
45 from RecoLocalTracker.SiPixelClusterizer.siPixelDigisClustersFromSoAHIonPhase1_cfi
import siPixelDigisClustersFromSoAHIonPhase1
as _siPixelDigisClustersFromSoAHIonPhase1
46 (pp_on_AA & ~phase2_tracker).toReplaceWith(siPixelDigisClustersPreSplitting, _siPixelDigisClustersFromSoAHIonPhase1.clone())
49 run3_common.toModify(siPixelDigisClustersPreSplitting,
50 clusterThreshold_layer1 = 4000)
52 gpu.toReplaceWith(siPixelClustersPreSplittingTask, cms.Task(
54 siPixelROCsStatusAndMappingWrapperESProducer,
55 siPixelGainCalibrationForHLTGPU,
57 siPixelClustersPreSplittingCUDA,
59 siPixelDigisClustersPreSplitting,
61 siPixelClustersPreSplittingTask.copy()
64 from RecoLocalTracker.SiPixelClusterizer.siPixelPhase2DigiToClusterCUDA_cfi
import siPixelPhase2DigiToClusterCUDA
as _siPixelPhase2DigiToClusterCUDA
68 from SimTracker.SiPhase2Digitizer.phase2TrackerDigitizer_cfi
import PixelDigitizerAlgorithmCommon
70 phase2_tracker.toReplaceWith(siPixelClustersPreSplittingCUDA,_siPixelPhase2DigiToClusterCUDA.clone(
71 Phase2ReadoutMode = PixelDigitizerAlgorithmCommon.Phase2ReadoutMode.value(),
72 Phase2DigiBaseline =
int(PixelDigitizerAlgorithmCommon.ThresholdInElectrons_Barrel.value()),
74 ElectronPerADCGain = PixelDigitizerAlgorithmCommon.ElectronPerAdc.value()
77 from EventFilter.SiPixelRawToDigi.siPixelDigisSoAFromCUDA_cfi
import siPixelDigisSoAFromCUDA
as _siPixelDigisSoAFromCUDA
78 siPixelDigisPhase2SoA = _siPixelDigisSoAFromCUDA.clone(
79 src =
"siPixelClustersPreSplittingCUDA" 82 phase2_tracker.toReplaceWith(siPixelDigisClustersPreSplitting, _siPixelDigisClustersFromSoAPhase2.clone(
83 clusterThreshold_layer1 = 4000,
84 clusterThreshold_otherLayers = 4000,
85 src =
"siPixelDigisPhase2SoA",
89 (gpu & phase2_tracker).toReplaceWith(siPixelClustersPreSplittingTask, cms.Task(
91 siPixelClustersPreSplittingCUDA,
93 siPixelDigisPhase2SoA,
95 siPixelDigisClustersPreSplitting,
97 siPixelClustersPreSplitting))
107 process.load(
"CalibTracker.SiPixelESProducers.siPixelCablingSoAESProducer_cfi")
108 process.load(
"CalibTracker.SiPixelESProducers.siPixelGainCalibrationForHLTSoAESProducer_cfi")
110 modifyConfigurationCalibTrackerAlpakaES_ = alpaka.makeProcessModifier(_addProcessCalibTrackerAlpakaES)
113 from RecoLocalTracker.SiPixelClusterizer.siPixelRawToClusterPhase1_cfi
import siPixelRawToClusterPhase1
as _siPixelRawToClusterAlpaka
114 siPixelClustersPreSplittingAlpaka = _siPixelRawToClusterAlpaka.clone()
116 (alpaka & run3_common).toModify(siPixelClustersPreSplittingAlpaka,
118 clusterThreshold_layer1 = 4000,
119 VCaltoElectronGain = 1,
120 VCaltoElectronGain_L1 = 1,
121 VCaltoElectronOffset = 0,
122 VCaltoElectronOffset_L1 = 0)
124 from RecoLocalTracker.SiPixelClusterizer.siPixelPhase2DigiToCluster_cfi
import siPixelPhase2DigiToCluster
as _siPixelPhase2DigiToCluster
126 (alpaka & phase2_tracker).toReplaceWith(siPixelClustersPreSplittingAlpaka, _siPixelPhase2DigiToCluster.clone(
127 Phase2ReadoutMode = PixelDigitizerAlgorithmCommon.Phase2ReadoutMode.value(),
128 Phase2DigiBaseline =
int(PixelDigitizerAlgorithmCommon.ThresholdInElectrons_Barrel.value()),
130 ElectronPerADCGain = PixelDigitizerAlgorithmCommon.ElectronPerAdc.value()
134 siPixelClustersPreSplittingAlpakaSerial =
makeSerialClone(siPixelClustersPreSplittingAlpaka)
136 from RecoLocalTracker.SiPixelClusterizer.siPixelDigisClustersFromSoAAlpakaPhase1_cfi
import siPixelDigisClustersFromSoAAlpakaPhase1
as _siPixelDigisClustersFromSoAAlpakaPhase1
137 from RecoLocalTracker.SiPixelClusterizer.siPixelDigisClustersFromSoAAlpakaPhase2_cfi
import siPixelDigisClustersFromSoAAlpakaPhase2
as _siPixelDigisClustersFromSoAAlpakaPhase2
139 (alpaka & ~phase2_tracker).toReplaceWith(siPixelDigisClustersPreSplitting,_siPixelDigisClustersFromSoAAlpakaPhase1.clone(
140 src =
"siPixelClustersPreSplittingAlpaka" 143 (alpaka & phase2_tracker).toReplaceWith(siPixelDigisClustersPreSplitting,_siPixelDigisClustersFromSoAAlpakaPhase2.clone(
144 clusterThreshold_layer1 = 4000,
145 clusterThreshold_otherLayers = 4000,
146 src =
"siPixelClustersPreSplittingAlpaka",
151 from RecoLocalTracker.SiPixelClusterizer.siPixelDigisClustersFromSoAAlpakaPhase1_cfi
import siPixelDigisClustersFromSoAAlpakaPhase1
as _siPixelDigisClustersFromSoAAlpakaPhase1
152 from RecoLocalTracker.SiPixelClusterizer.siPixelDigisClustersFromSoAAlpakaPhase2_cfi
import siPixelDigisClustersFromSoAAlpakaPhase2
as _siPixelDigisClustersFromSoAAlpakaPhase2
154 alpaka.toModify(siPixelClustersPreSplitting,
156 siPixelDigisClustersPreSplitting = cms.VPSet(
157 cms.PSet(type = cms.string(
"SiPixelClusteredmNewDetSetVector"))
163 alpaka.toReplaceWith(siPixelClustersPreSplittingTask, cms.Task(
165 siPixelClustersPreSplittingAlpaka,
167 siPixelClustersPreSplittingAlpakaSerial,
169 siPixelDigisClustersPreSplitting,
171 siPixelClustersPreSplitting)
175 (alpaka & phase2_tracker).toReplaceWith(siPixelClustersPreSplittingTask, cms.Task(
177 siPixelClustersPreSplittingAlpaka,
179 siPixelClustersPreSplittingAlpakaSerial,
181 siPixelDigisClustersPreSplitting,
183 siPixelClustersPreSplitting)
def makeSerialClone(module, kwargs)
def _addProcessCalibTrackerAlpakaES(process)
Alpaka Pixel Clusters Reco.