CMS 3D CMS Logo

SiPixelClusterizer_cfi.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
2 
3 from RecoLocalTracker.SiPixelClusterizer.SiPixelClusterizerDefault_cfi import SiPixelClusterizerDefault as _SiPixelClusterizerDefault
4 siPixelClusters = _SiPixelClusterizerDefault.clone()
5 
6 # phase1 pixel
7 from Configuration.Eras.Modifier_phase1Pixel_cff import phase1Pixel
8 phase1Pixel.toModify(siPixelClusters,
9  VCaltoElectronGain = 47, # L2-4: 47 +- 4.7
10  VCaltoElectronGain_L1 = 50, # L1: 49.6 +- 2.6
11  VCaltoElectronOffset = -60, # L2-4: -60 +- 130
12  VCaltoElectronOffset_L1 = -670, # L1: -670 +- 220
13  ChannelThreshold = 10,
14  SeedThreshold = 1000,
15  ClusterThreshold = 4000,
16  ClusterThreshold_L1 = 2000
17 )
18 
19 # Run3, changes in the gain calibration scheme
20 #from Configuration.Eras.Era_Run3_cff import Run3
21 #Run3.toModify(siPixelClusters,
22 from Configuration.Eras.Modifier_run3_common_cff import run3_common
23 run3_common.toModify(siPixelClusters,
24  VCaltoElectronGain = 1, # all gains=1, pedestals=0
25  VCaltoElectronGain_L1 = 1,
26  VCaltoElectronOffset = 0,
27  VCaltoElectronOffset_L1 = 0
28 )
29 
30 
31 # Need these until phase2 pixel templates are used
32 from Configuration.Eras.Modifier_phase2_tracker_cff import phase2_tracker
33 phase2_tracker.toModify(siPixelClusters, # FIXME
34  src = 'simSiPixelDigis:Pixel',
35  MissCalibrate = False,
36  Phase2Calibration = True,
37  Phase2ReadoutMode = -1, # Flag to decide Readout Mode : linear TDR (-1), dual slope with slope parameters (+1,+2,+3,+4 ...) with threshold subtraction
38  Phase2DigiBaseline = 1200.,
39  Phase2KinkADC = 8,
40  ElectronPerADCGain = 600. # it can be changed to something else (e.g. 135e) if needed
41 )
42 from Configuration.ProcessModifiers.premix_stage2_cff import premix_stage2
43 (premix_stage2 & phase2_tracker).toModify(siPixelClusters,
44  src = "mixData:Pixel"
45 )