1 import FWCore.ParameterSet.Config
as cms
5 if hasattr(process,
'mix')
and hasattr(process.mix,
'digitizers')
and hasattr(process.mix.digitizers,
'pixel'):
6 if hasattr(process.mix.digitizers.pixel,
'PSPDigitizerAlgorithm'):
7 print(
"# Activating Bias Rail Inefficiency in macro-pixels")
8 process.mix.digitizers.pixel.PSPDigitizerAlgorithm.BiasRailInefficiencyFlag = cms.int32(1)
10 if hasattr(process.mix.digitizers.pixel,
'PSSDigitizerAlgorithm'):
11 print(
"# Activating bad strip simulation for s-sensors in PS modules from DB")
12 process.mix.digitizers.pixel.PSSDigitizerAlgorithm.KillModules = cms.bool(
True)
13 process.mix.digitizers.pixel.PSSDigitizerAlgorithm.DeadModules_DB = cms.bool(
True)
15 if hasattr(process.mix.digitizers.pixel,
'SSDigitizerAlgorithm'):
16 print(
"# Activating bad strip simulation for SS modules from DB")
17 process.mix.digitizers.pixel.SSDigitizerAlgorithm.KillModules = cms.bool(
True)
18 process.mix.digitizers.pixel.SSDigitizerAlgorithm.DeadModules_DB = cms.bool(
True)
21 if hasattr(process,
"mixData")
and hasattr(process.mixData,
"workers")
and hasattr(process.mixData.workers,
"pixel"):
22 if hasattr(process.mixData.workers.pixel,
'PSPDigitizerAlgorithm'):
23 print(
"# Activating Bias Rail Inefficiency in macro-pixels")
24 process.mixData.workers.pixel.PSPDigitizerAlgorithm.BiasRailInefficiencyFlag = cms.int32(1)
26 if hasattr(process.mixData.workers.pixel,
'PSSDigitizerAlgorithm'):
27 print(
"# Activating bad strip simulation for s-sensors in PS modules from DB")
28 process.mixData.workers.pixel.PSSDigitizerAlgorithm.KillModules = cms.bool(
True)
29 process.mixData.workers.pixel.PSSDigitizerAlgorithm.DeadModules_DB = cms.bool(
True)
31 if hasattr(process.mixData.workers.pixel,
'SSDigitizerAlgorithm'):
32 print(
"# Activating bad strip simulation for SS modules from DB")
33 process.mixData.workers.pixel.SSDigitizerAlgorithm.KillModules = cms.bool(
True)
34 process.mixData.workers.pixel.SSDigitizerAlgorithm.DeadModules_DB = cms.bool(
True)
45 if hasattr(process,
'SiPhase2OTFakeBadStripsESSource') :
46 print(
"# Adding 1% of randomly generated bad strips")
47 process.SiPhase2OTFakeBadStripsESSource.badComponentsFraction = 0.01
58 if hasattr(process,
'SiPhase2OTFakeBadStripsESSource') :
59 print(
"# Adding 5% of randomly generated bad strips")
60 process.SiPhase2OTFakeBadStripsESSource.badComponentsFraction = 0.05
71 if hasattr(process,
'SiPhase2OTFakeBadStripsESSource') :
72 print(
"# Adding 10% of randomly generated bad strips")
73 process.SiPhase2OTFakeBadStripsESSource.badComponentsFraction = 0.1
def customizeSiPhase2OTInefficiencyFivePercent(process)
def customizeSiPhase2OTInefficiencyOnePercent(process)
def _commonCustomizeForInefficiency(process)
void print(TMatrixD &m, const char *label=nullptr, bool mathematicaFormat=false)
def customizeSiPhase2OTInefficiencyTenPercent(process)