CMS 3D CMS Logo

SiPixelClusterizer_cfi.py
Go to the documentation of this file.
1 
2 import FWCore.ParameterSet.Config as cms
3 
4 #
6 siPixelClusters = cms.EDProducer("SiPixelClusterProducer",
7  SiPixelGainCalibrationServiceParameters,
8  src = cms.InputTag("siPixelDigis"),
9  ChannelThreshold = cms.int32(1000),
10  MissCalibrate = cms.untracked.bool(True),
11  SplitClusters = cms.bool(False),
12  VCaltoElectronGain = cms.int32(65),
13  VCaltoElectronGain_L1 = cms.int32(65),
14  VCaltoElectronOffset = cms.int32(-414),
15  VCaltoElectronOffset_L1 = cms.int32(-414),
16  # **************************************
17  # **** payLoadType Options ****
18  # **** HLT - column granularity ****
19  # **** Offline - gain:col/ped:pix ****
20  # **************************************
21  payloadType = cms.string('Offline'),
22  #payloadType = cms.string('Full'),
23  SeedThreshold = cms.int32(1000),
24  ClusterThreshold = cms.int32(4000),
25  ClusterThreshold_L1 = cms.int32(4000),
26  # **************************************
27  maxNumberOfClusters = cms.int32(-1), # -1 means no limit.
28  ElectronPerADCGain = cms.double(135.0),
29  Phase2Calibration = cms.bool(False),
30  Phase2ReadoutMode = cms.int32(-1),
31  Phase2DigiBaseline = cms.double(1200.),
32  Phase2KinkADC = cms.int32(8),
33 )
34 
35 # phase1 pixel
36 from Configuration.Eras.Modifier_phase1Pixel_cff import phase1Pixel
37 phase1Pixel.toModify(siPixelClusters,
38  VCaltoElectronGain = cms.int32(47), # L2-4: 47 +- 4.7
39  VCaltoElectronGain_L1 = cms.int32(50), # L1: 49.6 +- 2.6
40  VCaltoElectronOffset = cms.int32(-60), # L2-4: -60 +- 130
41  VCaltoElectronOffset_L1 = cms.int32(-670), # L1: -670 +- 220
42  ChannelThreshold = cms.int32(10),
43  SeedThreshold = cms.int32(1000),
44  ClusterThreshold = cms.int32(4000),
45  ClusterThreshold_L1 = cms.int32(2000)
46 
47 )
48 
49 # Need these until phase2 pixel templates are used
50 from Configuration.Eras.Modifier_phase2_tracker_cff import phase2_tracker
51 phase2_tracker.toModify(siPixelClusters, # FIXME
52  src = cms.InputTag('simSiPixelDigis', "Pixel"),
53  MissCalibrate = False,
54  Phase2Calibration = cms.bool(True),
55  Phase2ReadoutMode = cms.int32(-1), # Flag to decide Readout Mode : linear TDR (-1), dual slope with slope parameters (+1,+2,+3,+4 ...) with threshold subtraction
56  Phase2DigiBaseline = cms.double(1200.),
57  Phase2KinkADC = cms.int32(8),
58  ElectronPerADCGain = cms.double(600.) # it can be changed to something else (e.g. 135e) if needed
59 )
60 from Configuration.ProcessModifiers.premix_stage2_cff import premix_stage2
61 (premix_stage2 & phase2_tracker).toModify(siPixelClusters,
62  src = "mixData:Pixel"
63 )