CMS 3D CMS Logo

pixelDigitizer_cfi.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
2 
3 from SimGeneral.MixingModule.SiPixelSimParameters_cfi import SiPixelSimBlock
4 
5 pixelDigitizer = cms.PSet(
6  SiPixelSimBlock,
7  accumulatorType = cms.string("SiPixelDigitizer"),
8  hitsProducer = cms.string('g4SimHits'),
9  makeDigiSimLinks = cms.untracked.bool(True)
10 )
11 from Configuration.ProcessModifiers.premix_stage1_cff import premix_stage1
12 premix_stage1.toModify(pixelDigitizer, makeDigiSimLinks = False)
13 
14 # Customize here instead of SiPixelSimBlock as the latter is imported
15 # also to DataMixer configuration, and the original version is needed
16 # there. Customize before phase2_tracker because this customization
17 # applies only to phase0/1 pixel, and at the moment it is unclear what
18 # needs to be done for phase2 tracker in premixing stage2.
19 from Configuration.ProcessModifiers.premix_stage2_cff import premix_stage2
20 premix_stage2.toModify(pixelDigitizer,
21  AddPixelInefficiency = False # will be added in DataMixer
22 )
23 
24 from SimTracker.SiPhase2Digitizer.phase2TrackerDigitizer_cfi import phase2TrackerDigitizer as _phase2TrackerDigitizer
25 from Configuration.Eras.Modifier_phase2_tracker_cff import phase2_tracker
26 phase2_tracker.toReplaceWith(pixelDigitizer, _phase2TrackerDigitizer)
27