CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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 
24 from Configuration.StandardSequences.Eras import eras
25 if eras.fastSim.isChosen():
26  # no need for the aliases for usual mixing
27  del generalTracks,ecalPreshowerDigis,ecalDigis,hcalDigis,muonDTDigis,muonCSCDigis,muonRPCDigis
28 else:
29 #hack - our code is too fast at large scale - lets slow it down and idle for 15 seconds
30  cpuSpender=cms.EDAnalyzer("CPUSpender")
31  cpuSpender.secPerEvent=cms.untracked.int32(20)
32 
33  pdigi.insert(0,cpuSpender)