CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
DigiDM_cff.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
2 
3 # Start with Standard Digitization:
4 
6 
7 _simMuonCSCDigis_orig = simMuonCSCDigis.clone()
8 _simMuonDTDigis_orig = simMuonDTDigis.clone()
9 _simMuonRPCDigis_orig = simMuonRPCDigis.clone()
10 
11 #from SimGeneral.MixingModule.mixNoPU_cfi import *
12 
13 # If we are going to run this with the DataMixer to follow adding
14 # detector noise, turn this off for now:
15 
16 # In premixing stage2 muon digis are produced after PreMixingModule
17 # The simMuon*Digis modules get used in DataMixerPreMix_cff, so better
18 # leave them untouched here.
19 from Configuration.ProcessModifiers.premix_stage2_cff import premix_stage2
20 
21 ##### #turn off noise in all subdetectors
22 #simHcalUnsuppressedDigis.doNoise = False
23 #mix.digitizers.hcal.doNoise = False
24 #simEcalUnsuppressedDigis.doNoise = False
25 #mix.digitizers.ecal.doNoise = False
26 #simEcalUnsuppressedDigis.doESNoise = False
27 #simSiPixelDigis.AddNoise = False
28 #mix.digitizers.pixel.AddNoise = False
29 #simSiStripDigis.Noise = False
30 #mix.digitizers.strip.AddNoise = False
31 (~premix_stage2).toModify(simMuonCSCDigis,
32  strips = dict(doNoise = False),
33  wires = dict(doNoise = False)
34 )
35 #DTs are strange - no noise flag - only use true hits?
36 #simMuonDTDigis.IdealModel = True
37 (~premix_stage2).toModify(simMuonDTDigis, onlyMuHits = True)
38 (~premix_stage2).toModify(simMuonRPCDigis, Noise = False)
39 
40 # remove unnecessary modules from 'pdigi' sequence - run after DataMixing
41 # standard mixing module now makes unsuppressed digis for calorimeter
42 pdigiTask.remove(simEcalTriggerPrimitiveDigis)
43 pdigiTask.remove(simEcalEBTriggerPrimitiveDigis) # phase2
44 pdigiTask.remove(simEcalDigis) # does zero suppression
45 pdigiTask.remove(simEcalPreshowerDigis) # does zero suppression
46 pdigiTask.remove(simHcalDigis)
47 pdigiTask.remove(simHcalTTPDigis)