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(simEcalEBTriggerPrimitiveDigis) # phase2
37 pdigi.remove(simEcalDigis) # does zero suppression
38 pdigi.remove(simEcalPreshowerDigis) # does zero suppression
39 pdigi.remove(simHcalDigis)
40 pdigi.remove(simHcalTTPDigis)
41 
42 from Configuration.ProcessModifiers.premix_stage2_cff import premix_stage2
43 # for PreMixing, to first approximation, allow noise in Muon system
44 premix_stage2.toReplaceWith(simMuonCSCDigis, _simMuonCSCDigis_orig)
45 premix_stage2.toReplaceWith(simMuonDTDigis , _simMuonDTDigis_orig )
46 premix_stage2.toReplaceWith(simMuonRPCDigis, _simMuonRPCDigis_orig)
47 
48 # premixing stage2 runs addPileupInfo after DataMixer (configured in DataMixerPreMix_cff)
49 premix_stage2.toReplaceWith(pdigi, pdigi.copyAndExclude([addPileupInfo, genPUProtons]))
50 
51 # genPUProtons, on the other hand, is an EDAlias. In principle it is
52 # already loaded with digitizers_cfi, but in practice that gets
53 # overwritten by the EDProducer by loading this file. So we hack
54 # around by adding a ProcessModifier with overwrites it back to
55 # EDAlias (because we can't toReplaceWith() an EDProducer with an
56 # EDAlias).
58  import SimGeneral.MixingModule.aliases_PreMix_cfi as _aliases
59  process.genPUProtons = _aliases.genPUProtons
60 modifyDigiDM_loadPremixStage2Alias = premix_stage2.makeProcessModifier(_loadPremixStage2Alias)
def _loadPremixStage2Alias(process)
Definition: DigiDM_cff.py:57