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 ##### #turn off noise in all subdetectors
17 #simHcalUnsuppressedDigis.doNoise = False
18 #mix.digitizers.hcal.doNoise = False
19 #simEcalUnsuppressedDigis.doNoise = False
20 #mix.digitizers.ecal.doNoise = False
21 #simEcalUnsuppressedDigis.doESNoise = False
22 #simSiPixelDigis.AddNoise = False
23 #mix.digitizers.pixel.AddNoise = False
24 #simSiStripDigis.Noise = False
25 #mix.digitizers.strip.AddNoise = False
26 simMuonCSCDigis.strips.doNoise = False
27 simMuonCSCDigis.wires.doNoise = False
28 #DTs are strange - no noise flag - only use true hits?
29 #simMuonDTDigis.IdealModel = True
30 simMuonDTDigis.onlyMuHits = True
31 simMuonRPCDigis.Noise = False
32 
33 # remove unnecessary modules from 'pdigi' sequence - run after DataMixing
34 # standard mixing module now makes unsuppressed digis for calorimeter
35 pdigi.remove(simEcalTriggerPrimitiveDigis)
36 pdigi.remove(simEcalDigis) # does zero suppression
37 pdigi.remove(simEcalPreshowerDigis) # does zero suppression
38 pdigi.remove(simHcalDigis)
39 pdigi.remove(simHcalTTPDigis)
40 
41 from Configuration.ProcessModifiers.premix_stage2_cff import premix_stage2
42 # for PreMixing, to first approximation, allow noise in Muon system
43 premix_stage2.toReplaceWith(simMuonCSCDigis, _simMuonCSCDigis_orig)
44 premix_stage2.toReplaceWith(simMuonDTDigis , _simMuonDTDigis_orig )
45 premix_stage2.toReplaceWith(simMuonRPCDigis, _simMuonRPCDigis_orig)
46 
47 # premixing stage2 runs addPileupInfo after DataMixer (configured in DataMixerPreMix_cff)
48 premix_stage2.toReplaceWith(pdigi, pdigi.copyAndExclude([addPileupInfo, genPUProtons]))
49 
50 # genPUProtons, on the other hand, is an EDAlias. In principle it is
51 # already loaded with digitizers_cfi, but in practice that gets
52 # overwritten by the EDProducer by loading this file. So we hack
53 # around by adding a ProcessModifier with overwrites it back to
54 # EDAlias (because we can't toReplaceWith() an EDProducer with an
55 # EDAlias).
57  import SimGeneral.MixingModule.aliases_PreMix_cfi as _aliases
58  process.genPUProtons = _aliases.genPUProtons
59 modifyDigiDM_loadPremixStage2Alias = premix_stage2.makeProcessModifier(_loadPremixStage2Alias)
def _loadPremixStage2Alias(process)
Definition: DigiDM_cff.py:56