CMS 3D CMS Logo

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)
48 
49 # premixing stage2 runs addPileupInfo, and muon digis after PreMixingModule (configured in DataMixerPreMix_cff)
50 premix_stage2.toReplaceWith(pdigiTask, pdigiTask.copyAndExclude([addPileupInfo, genPUProtons, muonDigiTask]))
51 
52 # genPUProtons, on the other hand, is an EDAlias. In principle it is
53 # already loaded with digitizers_cfi, but in practice that gets
54 # overwritten by the EDProducer by loading this file. So we hack
55 # around by adding a ProcessModifier with overwrites it back to
56 # EDAlias (because we can't toReplaceWith() an EDProducer with an
57 # EDAlias).
59  import SimGeneral.MixingModule.aliases_PreMix_cfi as _aliases
60  process.genPUProtons = _aliases.genPUProtons
61 modifyDigiDM_loadPremixStage2Alias = premix_stage2.makeProcessModifier(_loadPremixStage2Alias)
def _loadPremixStage2Alias(process)
#turn off noise in all subdetectors simHcalUnsuppressedDigis.doNoise = False mix.digitizers.hcal.doNoise = False simEcalUnsuppressedDigis.doNoise = False mix.digitizers.ecal.doNoise = False simEcalUnsuppressedDigis.doESNoise = False simSiPixelDigis.AddNoise = False mix.digitizers.pixel.AddNoise = False simSiStripDigis.Noise = False mix.digitizers.strip.AddNoise = False
Definition: DigiDM_cff.py:58