test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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.doHPDNoise = cms.bool(False)
11 theDigitizersNoNoise.hcal.doIonFeedback = cms.bool(False)
12 theDigitizersNoNoise.hcal.doThermalNoise = cms.bool(False)
13 theDigitizersNoNoise.hcal.doTimeSlew = cms.bool(False)
14 theDigitizersNoNoise.ecal.doENoise = cms.bool(False)
15 theDigitizersNoNoise.ecal.doESNoise = cms.bool(False)
16 theDigitizersNoNoise.ecal.applyConstantTerm = cms.bool(False)
17 theDigitizersNoNoise.ecal.EcalPreMixStage1 = cms.bool(True)
18 theDigitizersNoNoise.hcal.HcalPreMixStage1 = cms.bool(True)
19 
20 # no pixel in fastsim era
21 if hasattr(theDigitizersNoNoise,"pixel"):
22  theDigitizersNoNoise.pixel.AddNoise = cms.bool(True)
23  theDigitizersNoNoise.pixel.addNoisyPixels = cms.bool(False)
24  theDigitizersNoNoise.pixel.AddPixelInefficiency = cms.bool(False) #done in second step
25  theDigitizersNoNoise.pixel.makeDigiSimLinks = cms.untracked.bool(False)
26 # no strip in fastsim era
27 if hasattr(theDigitizersNoNoise,"strip"):
28  theDigitizersNoNoise.strip.Noise = cms.bool(False)
29  theDigitizersNoNoise.strip.PreMixingMode = cms.bool(True)
30  theDigitizersNoNoise.strip.FedAlgorithm = cms.int32(5) # special ZS mode: accept adc>0
31  theDigitizersNoNoise.strip.makeDigiSimLinks = cms.untracked.bool(False)
32 theDigitizersNoNoiseValid = cms.PSet(
33  theDigitizersNoNoise,
34  mergedtruth = SimGeneral.MixingModule.digitizers_cfi.trackingParticles
35  )
36 if hasattr(theDigitizersNoNoiseValid,"pixel"):
37  theDigitizersNoNoiseValid.pixel.makeDigiSimLinks = cms.untracked.bool(True)
38 if hasattr(theDigitizersNoNoiseValid,"strip"):
39  theDigitizersNoNoiseValid.strip.makeDigiSimLinks = cms.untracked.bool(True)