Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2022-06-04 01:26:20

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 # Customize here instead of SiPixelSimBlock as the latter is imported
0015 # also to DataMixer configuration, and the original version is needed
0016 # there in stage2. Customize before phase2_tracker because this
0017 # customization applies only to phase0/1 pixel.
0018 from Configuration.ProcessModifiers.premix_stage2_cff import premix_stage2
0019 premix_stage2.toModify(pixelDigitizer,
0020     AddPixelInefficiency = False # will be added in DataMixer
0021 )
0022 
0023 from SimTracker.SiPhase2Digitizer.phase2TrackerDigitizer_cfi import phase2TrackerDigitizer as _phase2TrackerDigitizer, _premixStage1ModifyDict
0024 from Configuration.Eras.Modifier_phase2_tracker_cff import phase2_tracker
0025 phase2_tracker.toReplaceWith(pixelDigitizer, _phase2TrackerDigitizer.clone()) # have to clone here in order to not change the original with further customizations
0026 
0027 # Customize here instead of phase2TrackerDigitizer as the latter is
0028 # imported also to DataMixer configuration, and the original version
0029 # is needed there in stage2.
0030 (premix_stage2 & phase2_tracker).toModify(pixelDigitizer, **_premixStage1ModifyDict)
0031 from CalibTracker.SiPixelESProducers.PixelFEDChannelCollectionProducer_cfi import *
0032 
0033 # Run-dependent MC
0034 from Configuration.ProcessModifiers.runDependentForPixel_cff import runDependentForPixel
0035 (runDependentForPixel & premix_stage1).toModify(pixelDigitizer, 
0036          UseReweighting = False,
0037          applyLateReweighting = False,
0038          store_SimHitEntryExitPoints = True,
0039          AdcFullScale = 1023,
0040          MissCalibrate = False
0041 )
0042