Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:26:20

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   payloadType = 'None', # do not run gain calibration
0038   MissCalibrate = False,
0039   Phase2Calibration = True,
0040   Phase2ReadoutMode = PixelDigitizerAlgorithmCommon.Phase2ReadoutMode.value(), # Flag to decide Readout Mode : linear TDR (-1), dual slope with slope parameters (+1,+2,+3,+4 ...) with threshold subtraction
0041   Phase2DigiBaseline = PixelDigitizerAlgorithmCommon.ThresholdInElectrons_Barrel.value(), #Same for barrel and endcap
0042   Phase2KinkADC = 8,
0043   ElectronPerADCGain = PixelDigitizerAlgorithmCommon.ElectronPerAdc.value()
0044 )
0045 from Configuration.ProcessModifiers.premix_stage2_cff import premix_stage2
0046 (premix_stage2 & phase2_tracker).toModify(siPixelClusters,
0047     src = "mixData:Pixel"
0048 )
0049 from Configuration.ProcessModifiers.pixelNtupletFit_cff import pixelNtupletFit
0050 (phase2_tracker & pixelNtupletFit).toModify(siPixelClusters, #at the moment the duplicate dropping is not imnplemented in Phase2
0051     DropDuplicates = False
0052 )