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 fastSim.toModify(theDigitizersMixPreMix,
36  # fastsim does not model castor
37  castor = None,
38  # fastsim does not digitize pixel and strip hits
39  pixel = None,
40  strip = None
41 )
42 
43 from Configuration.Eras.Modifier_run3_common_cff import run3_common
44 run3_common.toModify( theDigitizersMixPreMix, castor = None )
45 
46 theDigitizersMixPreMixValid = cms.PSet( theDigitizersMixPreMix )
47 theDigitizersMixPreMix.mergedtruth.select.signalOnlyTP = cms.bool(True)
48