1 import FWCore.ParameterSet.Config
as cms
3 from RecoLocalTracker.SiPixelClusterizer.SiPixelClusterizerDefault_cfi
import SiPixelClusterizerDefault
as _SiPixelClusterizerDefault
4 siPixelClusters = _SiPixelClusterizerDefault.clone()
7 from Configuration.Eras.Modifier_phase1Pixel_cff
import phase1Pixel
8 phase1Pixel.toModify(siPixelClusters,
9 VCaltoElectronGain = 47,
10 VCaltoElectronGain_L1 = 50,
11 VCaltoElectronOffset = -60,
12 VCaltoElectronOffset_L1 = -670,
13 ChannelThreshold = 10,
15 ClusterThreshold = 4000,
16 ClusterThreshold_L1 = 2000
22 from Configuration.Eras.Modifier_run3_common_cff
import run3_common
23 run3_common.toModify(siPixelClusters,
24 VCaltoElectronGain = 1,
25 VCaltoElectronGain_L1 = 1,
26 VCaltoElectronOffset = 0,
27 VCaltoElectronOffset_L1 = 0,
28 ClusterThreshold_L1 = 4000
32 from Configuration.Eras.Modifier_phase2_brickedPixels_cff
import phase2_brickedPixels
33 phase2_brickedPixels.toModify(siPixelClusters,
34 ClusterMode = cms.string(
'PixelThresholdClusterizerForBricked')
38 from Configuration.Eras.Modifier_phase2_tracker_cff
import phase2_tracker
39 from SimTracker.SiPhase2Digitizer.phase2TrackerDigitizer_cfi
import PixelDigitizerAlgorithmCommon
40 phase2_tracker.toModify(siPixelClusters,
41 src =
'simSiPixelDigis:Pixel',
42 MissCalibrate =
False,
43 Phase2Calibration =
True,
44 Phase2ReadoutMode = PixelDigitizerAlgorithmCommon.Phase2ReadoutMode.value(),
45 Phase2DigiBaseline = PixelDigitizerAlgorithmCommon.ThresholdInElectrons_Barrel.value(),
47 ElectronPerADCGain = PixelDigitizerAlgorithmCommon.ElectronPerAdc.value()
49 from Configuration.ProcessModifiers.premix_stage2_cff
import premix_stage2
50 (premix_stage2 & phase2_tracker).toModify(siPixelClusters,