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 from RecoLocalTracker.SiPixelClusterizer.siPixelRawToClusterHIonPhase1_cfi
import siPixelRawToClusterHIonPhase1
as _siPixelRawToClusterAlpakaHIonPhase1
116 siPixelClustersPreSplittingAlpaka = _siPixelRawToClusterAlpaka.clone()
118 (alpaka & pp_on_AA & ~phase2_tracker).toReplaceWith(siPixelClustersPreSplittingAlpaka,_siPixelRawToClusterAlpakaHIonPhase1.clone())
120 (alpaka & run3_common).toModify(siPixelClustersPreSplittingAlpaka,
122 clusterThreshold_layer1 = 4000,
123 VCaltoElectronGain = 1,
124 VCaltoElectronGain_L1 = 1,
125 VCaltoElectronOffset = 0,
126 VCaltoElectronOffset_L1 = 0)
128 from RecoLocalTracker.SiPixelClusterizer.siPixelPhase2DigiToCluster_cfi
import siPixelPhase2DigiToCluster
as _siPixelPhase2DigiToCluster
130 (alpaka & phase2_tracker).toReplaceWith(siPixelClustersPreSplittingAlpaka, _siPixelPhase2DigiToCluster.clone(
131 Phase2ReadoutMode = PixelDigitizerAlgorithmCommon.Phase2ReadoutMode.value(),
132 Phase2DigiBaseline =
int(PixelDigitizerAlgorithmCommon.ThresholdInElectrons_Barrel.value()),
134 ElectronPerADCGain = PixelDigitizerAlgorithmCommon.ElectronPerAdc.value()
138 siPixelClustersPreSplittingAlpakaSerial =
makeSerialClone(siPixelClustersPreSplittingAlpaka)
140 from RecoLocalTracker.SiPixelClusterizer.siPixelDigisClustersFromSoAAlpakaPhase1_cfi
import siPixelDigisClustersFromSoAAlpakaPhase1
as _siPixelDigisClustersFromSoAAlpakaPhase1
141 from RecoLocalTracker.SiPixelClusterizer.siPixelDigisClustersFromSoAAlpakaPhase2_cfi
import siPixelDigisClustersFromSoAAlpakaPhase2
as _siPixelDigisClustersFromSoAAlpakaPhase2
142 from RecoLocalTracker.SiPixelClusterizer.siPixelDigisClustersFromSoAAlpakaHIonPhase1_cfi
import siPixelDigisClustersFromSoAAlpakaHIonPhase1
as _siPixelDigisClustersFromSoAAlpakaHIonPhase1
144 (alpaka & ~phase2_tracker).toReplaceWith(siPixelDigisClustersPreSplitting,_siPixelDigisClustersFromSoAAlpakaPhase1.clone(
145 src =
"siPixelClustersPreSplittingAlpaka" 148 (alpaka & pp_on_AA & ~phase2_tracker).toReplaceWith(siPixelDigisClustersPreSplitting,_siPixelDigisClustersFromSoAAlpakaHIonPhase1.clone(
149 src =
"siPixelClustersPreSplittingAlpaka" 152 (alpaka & phase2_tracker).toReplaceWith(siPixelDigisClustersPreSplitting,_siPixelDigisClustersFromSoAAlpakaPhase2.clone(
153 clusterThreshold_layer1 = 4000,
154 clusterThreshold_otherLayers = 4000,
155 src =
"siPixelClustersPreSplittingAlpaka",
160 alpaka.toModify(siPixelClustersPreSplitting,
162 siPixelDigisClustersPreSplitting = cms.VPSet(
163 cms.PSet(type = cms.string(
"SiPixelClusteredmNewDetSetVector"))
170 from EventFilter.SiPixelRawToDigi.siPixelDigiErrorsFromSoAAlpaka_cfi
import siPixelDigiErrorsFromSoAAlpaka
as _siPixelDigiErrorsFromSoAAlpaka
171 siPixelDigiErrorsAlpaka = _siPixelDigiErrorsFromSoAAlpaka.clone(
172 digiErrorSoASrc = cms.InputTag(
'siPixelClustersPreSplittingAlpaka'),
173 fmtErrorsSoASrc = cms.InputTag(
'siPixelClustersPreSplittingAlpaka'),
174 UsePhase1 = cms.bool(
True)
177 siPixelDigiErrorsAlpakaSerial = siPixelDigiErrorsAlpaka.clone(
178 digiErrorSoASrc = cms.InputTag(
'siPixelClustersPreSplittingAlpakaSerial'),
179 fmtErrorsSoASrc = cms.InputTag(
'siPixelClustersPreSplittingAlpakaSerial')
183 alpaka.toReplaceWith(siPixelClustersPreSplittingTask, cms.Task(
185 siPixelClustersPreSplittingAlpaka,
187 siPixelClustersPreSplittingAlpakaSerial,
189 siPixelDigiErrorsAlpaka,
190 siPixelDigiErrorsAlpakaSerial,
192 siPixelDigisClustersPreSplitting,
194 siPixelClustersPreSplitting)
198 (alpaka & phase2_tracker).toReplaceWith(siPixelClustersPreSplittingTask, cms.Task(
200 siPixelClustersPreSplittingAlpaka,
202 siPixelClustersPreSplittingAlpakaSerial,
204 siPixelDigiErrorsAlpaka,
205 siPixelDigiErrorsAlpakaSerial,
207 siPixelDigisClustersPreSplitting,
209 siPixelClustersPreSplitting)
def makeSerialClone(module, kwargs)
def _addProcessCalibTrackerAlpakaES(process)
Alpaka Pixel Clusters Reco.