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  mergedtruth = cms.PSet(
25  trackingParticles
26  )
27 )
28 
29 theDigitizersMixPreMix.strip.Noise = cms.bool(False) # will be added in DataMixer
30 theDigitizersMixPreMix.strip.PreMixingMode = cms.bool(True) #Special mode to save all hit strips
31 theDigitizersMixPreMix.strip.FedAlgorithm = cms.int32(5) # special ZS mode: accept adc>0
32 theDigitizersMixPreMix.pixel.AddPixelInefficiency = cms.bool(False) # will be added in DataMixer
33 
34 from Configuration.Eras.Modifier_fastSim_cff import fastSim
35 if fastSim.isChosen():
36  # fastsim does not model castor
37  delattr(theDigitizersMixPreMix,"castor")
38  # fastsim does not digitize pixel and strip hits
39  delattr(theDigitizersMixPreMix,"pixel")
40  delattr(theDigitizersMixPreMix,"strip")
41 
42 from Configuration.Eras.Modifier_run3_common_cff import run3_common
43 run3_common.toModify( theDigitizersMixPreMix, castor = None )
44 
45 theDigitizersMixPreMixValid = cms.PSet( theDigitizersMixPreMix )
46 theDigitizersMixPreMix.mergedtruth.select.signalOnlyTP = cms.bool(True)
47