CMS 3D CMS Logo

customizeForPhase2TrackerSignalShape.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
2 
3 #
4 # activate signal shape in IT only
5 #
6 
8 
9  if hasattr(process,'mix') and hasattr(process.mix,'digitizers') and hasattr(process.mix.digitizers,'pixel'):
10  if hasattr(process.mix.digitizers.pixel,'PixelDigitizerAlgorithm'):
11  print("# Activating signal shape emulation in IT pixel (planar)")
12  process.mix.digitizers.pixel.PixelDigitizerAlgorithm.ApplyTimewalk = True
13  if hasattr(process.mix.digitizers.pixel,'Pixel3DDigitizerAlgorithm'):
14  print("# Activating signal shape emulation in IT pixel (3D)")
15  process.mix.digitizers.pixel.Pixel3DDigitizerAlgorithm.ApplyTimewalk = True
16 
17 
18 
19  if hasattr(process, "mixData") and hasattr(process.mixData, "workers") and hasattr(process.mixData.workers, "pixel"):
20  if hasattr(process.mixData.workers.pixel,'PixelDigitizerAlgorithm'):
21  print("# Activating signal shape emulation in IT pixel (planar)")
22  process.mixData.workers.pixel.PixelDigitizerAlgorithm.ApplyTimewalk = True
23  if hasattr(process.mixData.workers.pixel,'Pixel3DDigitizerAlgorithm'):
24  print("# Activating signal shape emulation in IT pixel (3D)")
25  process.mixData.workers.pixel.Pixel3DDigitizerAlgorithm.ApplyTimewalk = True
26 
27  return process
void print(TMatrixD &m, const char *label=nullptr, bool mathematicaFormat=false)
Definition: Utilities.cc:47