File indexing completed on 2024-04-06 12:30:55
0001 import FWCore.ParameterSet.Config as cms
0002
0003
0004
0005
0006
0007 def customizeSiPhase2ITSignalShape(process):
0008
0009 if hasattr(process,'mix') and hasattr(process.mix,'digitizers') and hasattr(process.mix.digitizers,'pixel'):
0010 if hasattr(process.mix.digitizers.pixel,'PixelDigitizerAlgorithm'):
0011 print("# Activating signal shape emulation in IT pixel (planar)")
0012 process.mix.digitizers.pixel.PixelDigitizerAlgorithm.ApplyTimewalk = True
0013 if hasattr(process.mix.digitizers.pixel,'Pixel3DDigitizerAlgorithm'):
0014 print("# Activating signal shape emulation in IT pixel (3D)")
0015 process.mix.digitizers.pixel.Pixel3DDigitizerAlgorithm.ApplyTimewalk = True
0016
0017
0018
0019 if hasattr(process, "mixData") and hasattr(process.mixData, "workers") and hasattr(process.mixData.workers, "pixel"):
0020 if hasattr(process.mixData.workers.pixel,'PixelDigitizerAlgorithm'):
0021 print("# Activating signal shape emulation in IT pixel (planar)")
0022 process.mixData.workers.pixel.PixelDigitizerAlgorithm.ApplyTimewalk = True
0023 if hasattr(process.mixData.workers.pixel,'Pixel3DDigitizerAlgorithm'):
0024 print("# Activating signal shape emulation in IT pixel (3D)")
0025 process.mixData.workers.pixel.Pixel3DDigitizerAlgorithm.ApplyTimewalk = True
0026
0027 return process