Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2023-10-25 10:04:44

0001 import FWCore.ParameterSet.Config as cms
0002 
0003 from SimGeneral.MixingModule.SiPixelSimParameters_cfi import SiPixelSimBlock
0004 
0005 pixelDigitizer = cms.PSet(
0006     SiPixelSimBlock,
0007     accumulatorType = cms.string("SiPixelDigitizer"),
0008     hitsProducer = cms.string('g4SimHits'),
0009     makeDigiSimLinks = cms.untracked.bool(True)
0010 )
0011 from Configuration.ProcessModifiers.premix_stage1_cff import premix_stage1
0012 premix_stage1.toModify(pixelDigitizer, makeDigiSimLinks = False)
0013 
0014 # ESProducer for SiPixelQuality with "forDigitizer" label
0015 from CalibTracker.SiPixelESProducers.siPixelQualityForDigitizerESProducer_cfi import *
0016 
0017 # Customize here instead of SiPixelSimBlock as the latter is imported
0018 # also to DataMixer configuration, and the original version is needed
0019 # there in stage2. Customize before phase2_tracker because this
0020 # customization applies only to phase0/1 pixel.
0021 from Configuration.ProcessModifiers.premix_stage2_cff import premix_stage2
0022 premix_stage2.toModify(pixelDigitizer,
0023     AddPixelInefficiency = False # will be added in DataMixer
0024 )
0025 
0026 from SimTracker.SiPhase2Digitizer.phase2TrackerDigitizer_cfi import phase2TrackerDigitizer as _phase2TrackerDigitizer, _premixStage1ModifyDict
0027 from Configuration.Eras.Modifier_phase2_tracker_cff import phase2_tracker
0028 phase2_tracker.toReplaceWith(pixelDigitizer, _phase2TrackerDigitizer.clone()) # have to clone here in order to not change the original with further customizations
0029 
0030 # Customize here instead of phase2TrackerDigitizer as the latter is
0031 # imported also to DataMixer configuration, and the original version
0032 # is needed there in stage2.
0033 (premix_stage2 & phase2_tracker).toModify(pixelDigitizer, **_premixStage1ModifyDict)
0034 from CalibTracker.SiPixelESProducers.PixelFEDChannelCollectionProducer_cfi import *
0035 
0036 # Run-dependent MC
0037 from Configuration.ProcessModifiers.runDependentForPixel_cff import runDependentForPixel
0038 (runDependentForPixel & premix_stage1).toModify(pixelDigitizer, 
0039          UseReweighting = False,
0040          applyLateReweighting = False,
0041          store_SimHitEntryExitPoints = True,
0042          AdcFullScale = 1023,
0043          MissCalibrate = False
0044 )
0045