1 import FWCore.ParameterSet.Config
as cms
2 from Configuration.Eras.Modifier_run3_common_cff
import run3_common
6 from CalibTracker.SiPixelESProducers.siPixelROCsStatusAndMappingWrapperESProducer_cfi
import siPixelROCsStatusAndMappingWrapperESProducer
7 from CalibTracker.SiPixelESProducers.siPixelGainCalibrationForHLTGPU_cfi
import siPixelGainCalibrationForHLTGPU
12 siPixelClustersPreSplittingTask = cms.Task(
14 siPixelClustersPreSplitting
18 from RecoLocalTracker.SiPixelClusterizer.siPixelRawToClusterCUDAPhase1_cfi
import siPixelRawToClusterCUDAPhase1
as _siPixelRawToClusterCUDA
19 from RecoLocalTracker.SiPixelClusterizer.siPixelRawToClusterCUDAHIonPhase1_cfi
import siPixelRawToClusterCUDAHIonPhase1
as _siPixelRawToClusterCUDAHIonPhase1
20 siPixelClustersPreSplittingCUDA = _siPixelRawToClusterCUDA.clone()
23 from Configuration.ProcessModifiers.pp_on_AA_cff
import pp_on_AA
25 from Configuration.Eras.Modifier_phase2_tracker_cff
import phase2_tracker
27 (pp_on_AA & ~phase2_tracker).toReplaceWith(siPixelClustersPreSplittingCUDA, _siPixelRawToClusterCUDAHIonPhase1.clone())
29 run3_common.toModify(siPixelClustersPreSplittingCUDA,
31 clusterThreshold_layer1 = 4000,
32 VCaltoElectronGain = 1,
33 VCaltoElectronGain_L1 = 1,
34 VCaltoElectronOffset = 0,
35 VCaltoElectronOffset_L1 = 0)
38 from RecoLocalTracker.SiPixelClusterizer.siPixelDigisClustersFromSoAPhase1_cfi
import siPixelDigisClustersFromSoAPhase1
as _siPixelDigisClustersFromSoAPhase1
39 from RecoLocalTracker.SiPixelClusterizer.siPixelDigisClustersFromSoAPhase2_cfi
import siPixelDigisClustersFromSoAPhase2
as _siPixelDigisClustersFromSoAPhase2
41 siPixelDigisClustersPreSplitting = _siPixelDigisClustersFromSoAPhase1.clone()
43 from RecoLocalTracker.SiPixelClusterizer.siPixelDigisClustersFromSoAHIonPhase1_cfi
import siPixelDigisClustersFromSoAHIonPhase1
as _siPixelDigisClustersFromSoAHIonPhase1
44 (pp_on_AA & ~phase2_tracker).toReplaceWith(siPixelDigisClustersPreSplitting, _siPixelDigisClustersFromSoAHIonPhase1.clone())
47 run3_common.toModify(siPixelDigisClustersPreSplitting,
48 clusterThreshold_layer1 = 4000)
50 gpu.toReplaceWith(siPixelClustersPreSplittingTask, cms.Task(
52 siPixelROCsStatusAndMappingWrapperESProducer,
53 siPixelGainCalibrationForHLTGPU,
55 siPixelClustersPreSplittingCUDA,
57 siPixelDigisClustersPreSplitting,
59 siPixelClustersPreSplittingTask.copy()
62 from RecoLocalTracker.SiPixelClusterizer.siPixelPhase2DigiToClusterCUDA_cfi
import siPixelPhase2DigiToClusterCUDA
as _siPixelPhase2DigiToClusterCUDA
66 from SimTracker.SiPhase2Digitizer.phase2TrackerDigitizer_cfi
import PixelDigitizerAlgorithmCommon
68 phase2_tracker.toReplaceWith(siPixelClustersPreSplittingCUDA,_siPixelPhase2DigiToClusterCUDA.clone(
69 Phase2ReadoutMode = PixelDigitizerAlgorithmCommon.Phase2ReadoutMode.value(),
70 Phase2DigiBaseline =
int(PixelDigitizerAlgorithmCommon.ThresholdInElectrons_Barrel.value()),
72 ElectronPerADCGain = PixelDigitizerAlgorithmCommon.ElectronPerAdc.value()
75 from EventFilter.SiPixelRawToDigi.siPixelDigisSoAFromCUDA_cfi
import siPixelDigisSoAFromCUDA
as _siPixelDigisSoAFromCUDA
76 siPixelDigisPhase2SoA = _siPixelDigisSoAFromCUDA.clone(
77 src =
"siPixelClustersPreSplittingCUDA" 80 phase2_tracker.toReplaceWith(siPixelDigisClustersPreSplitting, _siPixelDigisClustersFromSoAPhase2.clone(
81 clusterThreshold_layer1 = 4000,
82 clusterThreshold_otherLayers = 4000,
83 src =
"siPixelDigisPhase2SoA",
87 (gpu & phase2_tracker).toReplaceWith(siPixelClustersPreSplittingTask, cms.Task(
89 siPixelClustersPreSplittingCUDA,
91 siPixelDigisPhase2SoA,
93 siPixelDigisClustersPreSplitting,
95 siPixelClustersPreSplitting))