CMS 3D CMS Logo

digi_MixPreMix_cfi.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
2 
3 # configuration to model pileup for initial physics phase
10 
11 theDigitizersMixPreMix = cms.PSet(
12  pixel = cms.PSet(
13  pixelDigitizer
14  ),
15  strip = cms.PSet(
16  stripDigitizer
17  ),
18  castor = cms.PSet(
19  castorDigitizer
20  ),
21  puVtx = cms.PSet(
22  pileupVtxDigitizer
23  )
24 )
25 
26 theDigitizersMixPreMix.strip.Noise = cms.bool(False) # will be added in DataMixer
27 theDigitizersMixPreMix.strip.PreMixingMode = cms.bool(True) #Special mode to save all hit strips
28 theDigitizersMixPreMix.strip.FedAlgorithm = cms.int32(5) # special ZS mode: accept adc>0
29 theDigitizersMixPreMix.pixel.AddPixelInefficiency = cms.bool(False) # will be added in DataMixer
30 
31 from Configuration.Eras.Modifier_fastSim_cff import fastSim
32 if fastSim.isChosen():
33  # fastsim does not model castor
34  delattr(theDigitizersMixPreMix,"castor")
35  # fastsim does not digitize pixel and strip hits
36  delattr(theDigitizersMixPreMix,"pixel")
37  delattr(theDigitizersMixPreMix,"strip")
38 
39 from Configuration.Eras.Modifier_run3_common_cff import run3_common
40 run3_common.toModify( theDigitizersMixPreMix, castor = None )
41 
42 theDigitizersMixPreMixValid = cms.PSet(
43  theDigitizersMixPreMix,
44  mergedtruth = cms.PSet(
45  trackingParticles
46  )
47  )
48