Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2022-09-21 02:12:48

0001 import FWCore.ParameterSet.Config as cms
0002 
0003 from RecoLocalTracker.SiPixelClusterizer.SiPixelClusterizerDefault_cfi import SiPixelClusterizerDefault as _SiPixelClusterizerDefault
0004 siPixelClusters = _SiPixelClusterizerDefault.clone()
0005 
0006 # phase1 pixel
0007 from Configuration.Eras.Modifier_phase1Pixel_cff import phase1Pixel
0008 phase1Pixel.toModify(siPixelClusters,
0009   VCaltoElectronGain      = 47,   # L2-4: 47 +- 4.7
0010   VCaltoElectronGain_L1   = 50,   # L1:   49.6 +- 2.6
0011   VCaltoElectronOffset    = -60,  # L2-4: -60 +- 130
0012   VCaltoElectronOffset_L1 = -670, # L1:   -670 +- 220
0013   ChannelThreshold        = 10,
0014   SeedThreshold           = 1000,
0015   ClusterThreshold        = 4000,
0016   ClusterThreshold_L1     = 2000
0017 )
0018 
0019 # Run3, changes in the gain calibration scheme 
0020 #from Configuration.Eras.Era_Run3_cff import Run3
0021 #Run3.toModify(siPixelClusters,
0022 from Configuration.Eras.Modifier_run3_common_cff import run3_common
0023 run3_common.toModify(siPixelClusters,
0024   VCaltoElectronGain      = 1,  # all gains=1, pedestals=0
0025   VCaltoElectronGain_L1   = 1,   
0026   VCaltoElectronOffset    = 0,   
0027   VCaltoElectronOffset_L1 = 0,  
0028   ClusterThreshold_L1     = 4000
0029 )
0030 
0031 # Need these until phase2 pixel templates are used
0032 from Configuration.Eras.Modifier_phase2_tracker_cff import phase2_tracker
0033 from SimTracker.SiPhase2Digitizer.phase2TrackerDigitizer_cfi import PixelDigitizerAlgorithmCommon
0034 phase2_tracker.toModify(siPixelClusters, # FIXME
0035   src = 'simSiPixelDigis:Pixel',
0036   DropDuplicates = False, # do not drop duplicates for phase-2 until the digitizer can handle them consistently
0037   MissCalibrate = False,
0038   Phase2Calibration = True,
0039   Phase2ReadoutMode = PixelDigitizerAlgorithmCommon.Phase2ReadoutMode.value(), # Flag to decide Readout Mode : linear TDR (-1), dual slope with slope parameters (+1,+2,+3,+4 ...) with threshold subtraction
0040   Phase2DigiBaseline = PixelDigitizerAlgorithmCommon.ThresholdInElectrons_Barrel.value(), #Same for barrel and endcap
0041   Phase2KinkADC = 8,
0042   ElectronPerADCGain = PixelDigitizerAlgorithmCommon.ElectronPerAdc.value()
0043 )
0044 from Configuration.ProcessModifiers.premix_stage2_cff import premix_stage2
0045 (premix_stage2 & phase2_tracker).toModify(siPixelClusters,
0046     src = "mixData:Pixel"
0047 )
0048