CMS 3D CMS Logo

Digi_PreMix_cff.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
2 
3 # fragment to turn off ZS in Hcal:
4 #from Configuration.StandardSequences.Digi_cff import *
6 
7 # modifications to the digi sequences defined above (DigiNZS imports the central Digi_cff)
8 
9 #simMuonCSCDigis.strips.doNoise = False
10 #simMuonCSCDigis.wires.doNoise = False
11 #simMuonDTDigis.onlyMuHits = True
12 
13 simMuonRPCDigis.doBkgNoise = False
14 
15 
16 # Note: the other noise is turned of in the DigitizersNoNoise sequence defined in the MixingModule
17 # because the MM holds/controls all of the other digitizers.
18 
19 # Turn off SR in Ecal
20 simEcalDigis.UseFullReadout = cms.bool(True)
21 # This is extra, since the configuration skips it anyway. Belts and suspenders.
22 pdigi.remove(simEcalPreshowerDigis)
23 # remove HCAL TP sim - not needed, sometimes breaks
24 hcalDigiSequence.remove(simHcalTriggerPrimitiveDigis)
25 hcalDigiSequence.remove(simHcalTTPDigis)
26 
27 from Configuration.Eras.Modifier_fastSim_cff import fastSim
28 if fastSim.isChosen():
29  # no need for the aliases for usual mixing
30  del generalTracks,ecalPreshowerDigis,ecalDigis,hcalDigis,muonDTDigis,muonCSCDigis,muonRPCDigis
31 else:
32 #hack - our code is too fast at large scale - lets slow it down and idle for 15 seconds
33  cpuSpender=cms.EDAnalyzer("CPUSpender")
34  cpuSpender.secPerEvent=cms.untracked.int32(20)
35 
36  pdigi.insert(0,cpuSpender)