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 in stage2. Customize before phase2_tracker because this
17 # customization applies only to phase0/1 pixel.
18 from Configuration.ProcessModifiers.premix_stage2_cff import premix_stage2
19 premix_stage2.toModify(pixelDigitizer,
20  AddPixelInefficiency = False # will be added in DataMixer
21 )
22 
23 from SimTracker.SiPhase2Digitizer.phase2TrackerDigitizer_cfi import phase2TrackerDigitizer as _phase2TrackerDigitizer, _premixStage1ModifyDict
24 from Configuration.Eras.Modifier_phase2_tracker_cff import phase2_tracker
25 phase2_tracker.toReplaceWith(pixelDigitizer, _phase2TrackerDigitizer.clone()) # have to clone here in order to not change the original with further customizations
26 
27 # Customize here instead of phase2TrackerDigitizer as the latter is
28 # imported also to DataMixer configuration, and the original version
29 # is needed there in stage2.
30 (premix_stage2 & phase2_tracker).toModify(pixelDigitizer, **_premixStage1ModifyDict)
32 
33 # Run-dependent MC
34 from Configuration.ProcessModifiers.runDependentForPixel_cff import runDependentForPixel
35 (runDependentForPixel & premix_stage1).toModify(pixelDigitizer,
36  UseReweighting = False,
37  applyLateReweighting = False,
38  store_SimHitEntryExitPoints = True,
39  AdcFullScale = 1023,
40  MissCalibrate = False
41 )
42