Back to home page

Project CMSSW displayed by LXR

 
 

    


Warning, file /RecoLocalTracker/SiPixelClusterizer/python/SiPixelClusterizer_cfi.py was not indexed or was modified since last indexation (in which case cross-reference links may be missing, inaccurate or erroneous).

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 
0021 from Configuration.Eras.Modifier_run3_common_cff import run3_common
0022 run3_common.toModify(siPixelClusters,
0023   VCaltoElectronGain      = 1,  # all gains=1, pedestals=0
0024   VCaltoElectronGain_L1   = 1,
0025   VCaltoElectronOffset    = 0,
0026   VCaltoElectronOffset_L1 = 0,
0027   ClusterThreshold_L1     = 4000
0028 )
0029 
0030 # lowered L1 cluster charge threshold to cope with reduced charge collection efficiency in the sensor caused by radiation damage
0031 from Configuration.Eras.Modifier_run3_SiPixel_2025_cff import run3_SiPixel_2025
0032 run3_SiPixel_2025.toModify(siPixelClusters,
0033   ClusterThreshold_L1 = 2000
0034 )
0035 
0036 # Need these until phase2 pixel templates are used
0037 from Configuration.Eras.Modifier_phase2_tracker_cff import phase2_tracker
0038 from SimTracker.SiPhase2Digitizer.phase2TrackerDigitizer_cfi import PixelDigitizerAlgorithmCommon
0039 phase2_tracker.toModify(siPixelClusters, # FIXME
0040   src = 'simSiPixelDigis:Pixel',
0041   DropDuplicates = False, # do not drop duplicates for phase-2 until the digitizer can handle them consistently
0042   payloadType = 'None', # do not run gain calibration
0043   MissCalibrate = False,
0044   Phase2Calibration = True,
0045   Phase2ReadoutMode = PixelDigitizerAlgorithmCommon.Phase2ReadoutMode.value(), # Flag to decide Readout Mode : linear TDR (-1), dual slope with slope parameters (+1,+2,+3,+4 ...) with threshold subtraction
0046   Phase2DigiBaseline = PixelDigitizerAlgorithmCommon.ThresholdInElectrons_Barrel.value(), #Same for barrel and endcap
0047   Phase2KinkADC = 8,
0048   ElectronPerADCGain = PixelDigitizerAlgorithmCommon.ElectronPerAdc.value()
0049 )
0050 from Configuration.ProcessModifiers.premix_stage2_cff import premix_stage2
0051 (premix_stage2 & phase2_tracker).toModify(siPixelClusters,
0052     src = "mixData:Pixel"
0053 )