CMS 3D CMS Logo

digi_noNoise_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
5 
6 theDigitizersNoNoise = SimGeneral.MixingModule.digitizers_cfi.theDigitizers.clone()
7 
8 theDigitizersNoNoise.hcal.doNoise = cms.bool(False)
9 theDigitizersNoNoise.hcal.doEmpty = cms.bool(False)
10 theDigitizersNoNoise.hcal.doIonFeedback = cms.bool(False)
11 theDigitizersNoNoise.hcal.doThermalNoise = cms.bool(False)
12 theDigitizersNoNoise.hcal.doTimeSlew = cms.bool(False)
13 theDigitizersNoNoise.ecal.doENoise = cms.bool(False)
14 theDigitizersNoNoise.ecal.doESNoise = cms.bool(False)
15 theDigitizersNoNoise.ecal.applyConstantTerm = cms.bool(False)
16 theDigitizersNoNoise.ecal.EcalPreMixStage1 = cms.bool(True)
17 theDigitizersNoNoise.hcal.HcalPreMixStage1 = cms.bool(True)
18 
19 # no pixel in fastsim era
20 if hasattr(theDigitizersNoNoise,"pixel"):
21  theDigitizersNoNoise.pixel.AddNoise = cms.bool(True)
22  theDigitizersNoNoise.pixel.addNoisyPixels = cms.bool(False)
23  theDigitizersNoNoise.pixel.AddPixelInefficiency = cms.bool(False) #done in second step
24  theDigitizersNoNoise.pixel.makeDigiSimLinks = cms.untracked.bool(False)
25 # no strip in fastsim era
26 if hasattr(theDigitizersNoNoise,"strip"):
27  theDigitizersNoNoise.strip.Noise = cms.bool(False)
28  theDigitizersNoNoise.strip.PreMixingMode = cms.bool(True)
29  theDigitizersNoNoise.strip.FedAlgorithm = cms.int32(5) # special ZS mode: accept adc>0
30  theDigitizersNoNoise.strip.makeDigiSimLinks = cms.untracked.bool(False)
31 theDigitizersNoNoiseValid = cms.PSet(
32  theDigitizersNoNoise,
33  mergedtruth = SimGeneral.MixingModule.digitizers_cfi.trackingParticles
34  )
35 if hasattr(theDigitizersNoNoiseValid,"pixel"):
36  theDigitizersNoNoiseValid.pixel.makeDigiSimLinks = cms.untracked.bool(True)
37 if hasattr(theDigitizersNoNoiseValid,"strip"):
38  theDigitizersNoNoiseValid.strip.makeDigiSimLinks = cms.untracked.bool(True)