CMS 3D CMS Logo

Functions
customizeForOTInefficiency Namespace Reference

Functions

def _commonCustomizeForInefficiency (process)
 
def customizeSiPhase2OTInefficiencyFivePercent (process)
 
def customizeSiPhase2OTInefficiencyOnePercent (process)
 
def customizeSiPhase2OTInefficiencyTenPercent (process)
 
def customizeSiPhase2OTInefficiencyZeroPercent (process)
 

Function Documentation

◆ _commonCustomizeForInefficiency()

def customizeForOTInefficiency._commonCustomizeForInefficiency (   process)
private

Definition at line 3 of file customizeForOTInefficiency.py.

References print().

Referenced by customizeSiPhase2OTInefficiencyFivePercent(), customizeSiPhase2OTInefficiencyOnePercent(), customizeSiPhase2OTInefficiencyTenPercent(), and customizeSiPhase2OTInefficiencyZeroPercent().

4 
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.AddBiasRailInefficiency = cms.bool(True)
9 
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)
14 
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)
19 
20 
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.AddBiasRailInefficiency = cms.bool(True)
25 
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)
30 
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)
35 
36  return process
37 
38 #
39 # activate bias rail inefficiency only
40 #
void print(TMatrixD &m, const char *label=nullptr, bool mathematicaFormat=false)
Definition: Utilities.cc:47

◆ customizeSiPhase2OTInefficiencyFivePercent()

def customizeForOTInefficiency.customizeSiPhase2OTInefficiencyFivePercent (   process)

Definition at line 63 of file customizeForOTInefficiency.py.

References _commonCustomizeForInefficiency(), and print().

64 
66 
67  if hasattr(process,'SiPhase2OTFakeBadStripsESSource') :
68  print("# Adding 5% of randomly generated bad strips")
69  process.SiPhase2OTFakeBadStripsESSource.badComponentsFraction = 0.05 # 5% bad components
70 
71  return process
72 
73 #
74 # activate bias rail inefficiency and 10% random bad strips
75 #
void print(TMatrixD &m, const char *label=nullptr, bool mathematicaFormat=false)
Definition: Utilities.cc:47

◆ customizeSiPhase2OTInefficiencyOnePercent()

def customizeForOTInefficiency.customizeSiPhase2OTInefficiencyOnePercent (   process)

Definition at line 50 of file customizeForOTInefficiency.py.

References _commonCustomizeForInefficiency(), and print().

51 
53 
54  if hasattr(process,'SiPhase2OTFakeBadStripsESSource') :
55  print("# Adding 1% of randomly generated bad strips")
56  process.SiPhase2OTFakeBadStripsESSource.badComponentsFraction = 0.01 # 1% bad components
57 
58  return process
59 
60 #
61 # activate bias rail inefficiency and 5% random bad strips
62 #
void print(TMatrixD &m, const char *label=nullptr, bool mathematicaFormat=false)
Definition: Utilities.cc:47

◆ customizeSiPhase2OTInefficiencyTenPercent()

def customizeForOTInefficiency.customizeSiPhase2OTInefficiencyTenPercent (   process)

Definition at line 76 of file customizeForOTInefficiency.py.

References _commonCustomizeForInefficiency(), and print().

77 
79 
80  if hasattr(process,'SiPhase2OTFakeBadStripsESSource') :
81  print("# Adding 10% of randomly generated bad strips")
82  process.SiPhase2OTFakeBadStripsESSource.badComponentsFraction = 0.1 # 10% bad components
83 
84  return process
85 
void print(TMatrixD &m, const char *label=nullptr, bool mathematicaFormat=false)
Definition: Utilities.cc:47

◆ customizeSiPhase2OTInefficiencyZeroPercent()

def customizeForOTInefficiency.customizeSiPhase2OTInefficiencyZeroPercent (   process)

Definition at line 41 of file customizeForOTInefficiency.py.

References _commonCustomizeForInefficiency().

42 
44 
45  return process
46 
47 #
48 # activate bias rail inefficiency and 1% random bad strips
49 #