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