CMS 3D CMS Logo

stripDigitizer_cfi.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
2 
4 from SimGeneral.MixingModule.SiStripSimParameters_cfi import SiStripSimBlock
5 
6 stripDigitizer = cms.PSet(
7  SiStripSimBlock,
8  accumulatorType = cms.string("SiStripDigitizer"),
9  hitsProducer = cms.string('g4SimHits'),
10  makeDigiSimLinks = cms.untracked.bool(True)
11  )
12 
13 from Configuration.ProcessModifiers.premix_stage1_cff import premix_stage1
14 premix_stage1.toModify(stripDigitizer, makeDigiSimLinks = False)
15 
16 # Customize here instead of SiStripSimBlock as the latter is imported
17 # also to DataMixer configuration, and the original version is needed
18 # there. Customize before phase2_tracker because this customization
19 # applies only to phase0 strips, and at the moment it is unclear what
20 # needs to be done for phase2 tracker in premixing stage2.
21 from Configuration.ProcessModifiers.premix_stage2_cff import premix_stage2
22 premix_stage2.toModify(stripDigitizer,
23  Noise = False, # will be added in DataMixer
24  PreMixingMode = True, #Special mode to save all hit strips
25  FedAlgorithm = 5, # special ZS mode: accept adc>0
26  includeAPVSimulation = False # APV simulation is off for the MixingModule configuration in premix stage2
27 )
28 
29 from Configuration.Eras.Modifier_phase2_tracker_cff import phase2_tracker
30 phase2_tracker.toModify( stripDigitizer, ROUList = ["g4SimHitsTrackerHitsPixelBarrelLowTof",
31  "g4SimHitsTrackerHitsPixelEndcapLowTof"]
32 )
33