test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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.StandardSequences.Eras import eras
32 if eras.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 theDigitizersMixPreMixValid = cms.PSet(
40  theDigitizersMixPreMix,
41  mergedtruth = cms.PSet(
42  trackingParticles
43  )
44  )
45