ATLAS Offline Software
Functions | Variables
PixelDefectsEmulatorConfig Namespace Reference

Functions

def PixelRDORemappingCfg (flags, InputKey="PixelRDOs")
 
def ITkPixelRDORemappingCfg (flags)
 
ComponentAccumulator DefectsHistSvcCfg (flags, str HistogramGroup="PixelDefects", str FileName='pixel_defects.root')
 
ComponentAccumulator ITkDefectsHistSvcCfg (flags, HistogramGroup="ITkPixelDefects")
 
ComponentAccumulator PixelDefectsEmulatorCondAlgCfg (flags, str name="PixelDefectsEmulatorCondAlg", **dict kwargs)
 
ComponentAccumulator ITkPixelDefectsEmulatorCondAlgCfg (flags, str name="ITkPixelDefectsEmulatorCondAlg", **dict kwargs)
 
ComponentAccumulator PixelDefectsEmulatorAlgCfg (flags, str name="ITkPixelDefectsEmulatorAlg", **dict kwargs)
 
ComponentAccumulator ITkPixelDefectsEmulatorAlgCfg (flags, str name="ITkPixelDefectsEmulatorAlg", **dict kwargs)
 

Variables

 flags = initConfigFlags()
 
 ProductionStep
 
 AtlasVersion
 
 GlobalTag
 
 Dynamic
 
 Files
 
 GeometryITkPixel
 
 GeometryITkStrip
 
 GeometryBpipe
 
 GeometryCalo
 
 NumThreads
 
 NumConcurrentEvents
 
 MaxEvents
 
 acc = MainServicesCfg( flags )
 
 withDetails
 
 True
 
 summariseProps
 
 printDefaults
 
 sc = acc.run()
 

Function Documentation

◆ DefectsHistSvcCfg()

ComponentAccumulator PixelDefectsEmulatorConfig.DefectsHistSvcCfg (   flags,
str  HistogramGroup = "PixelDefects",
str  FileName = 'pixel_defects.root' 
)

Definition at line 24 of file PixelDefectsEmulatorConfig.py.

24 def DefectsHistSvcCfg(flags, HistogramGroup: str="PixelDefects", FileName: str='pixel_defects.root') -> ComponentAccumulator:
25  acc = ComponentAccumulator()
26  if HistogramGroup is not None and len(HistogramGroup) > 0 and FileName is not None and len(FileName) > 0 :
27  print("DEBUG DefectsHistSvcCfg",HistogramGroup,FileName,[f"{HistogramGroup} DATAFILE='{FileName}', OPT='RECREATE'"])
28  histSvc = CompFactory.THistSvc(Output = [f"{HistogramGroup} DATAFILE='{FileName}', OPT='RECREATE'"] )
29  acc.addService(histSvc)
30  return acc
31 

◆ ITkDefectsHistSvcCfg()

ComponentAccumulator PixelDefectsEmulatorConfig.ITkDefectsHistSvcCfg (   flags,
  HistogramGroup = "ITkPixelDefects" 
)

Definition at line 32 of file PixelDefectsEmulatorConfig.py.

32 def ITkDefectsHistSvcCfg(flags, HistogramGroup="ITkPixelDefects") -> ComponentAccumulator:
33  return DefectsHistSvcCfg(flags,HistogramGroup)
34 
35 

◆ ITkPixelDefectsEmulatorAlgCfg()

ComponentAccumulator PixelDefectsEmulatorConfig.ITkPixelDefectsEmulatorAlgCfg (   flags,
str   name = "ITkPixelDefectsEmulatorAlg",
**dict  kwargs 
)

Definition at line 85 of file PixelDefectsEmulatorConfig.py.

86  name: str = "ITkPixelDefectsEmulatorAlg",
87  **kwargs: dict) -> ComponentAccumulator:
88  acc = ComponentAccumulator()
89  if "InputKey" not in kwargs :
90  # rename original RDO collection
91  acc.merge(ITkPixelRDORemappingCfg(flags))
92  kwargs.setdefault("InputKey","ITkPixelRDOs_ORIG")
93 
94  if "EmulatedDefectsKey" not in kwargs :
95  # create defects conditions data
96  acc.merge( ITkPixelDefectsEmulatorCondAlgCfg(flags))
97  kwargs.setdefault("EmulatedDefectsKey", "ITkPixelEmulatedDefects")
98  kwargs.setdefault("OutputKey","ITkPixelRDOs")
99 
100  kwargs.setdefault("HistogramGroupName","") # disable histogramming, enable e.g. /PixelDefects/RejectedRDOs/
101 
102  acc.addEventAlgo(CompFactory.InDet.PixelDefectsEmulatorAlg(name,**kwargs))
103  return acc
104 
105 

◆ ITkPixelDefectsEmulatorCondAlgCfg()

ComponentAccumulator PixelDefectsEmulatorConfig.ITkPixelDefectsEmulatorCondAlgCfg (   flags,
str   name = "ITkPixelDefectsEmulatorCondAlg",
**dict  kwargs 
)

Definition at line 49 of file PixelDefectsEmulatorConfig.py.

50  name: str = "ITkPixelDefectsEmulatorCondAlg",
51  **kwargs: dict) -> ComponentAccumulator:
52  kwargs.setdefault("DefectProbability", 1e-4)
53 
54  # 1-(1-prob_col_def )**n_col_groups
55  def probColGroupDefect(prob_col_group_defect_per_mod, n_col_groups) :
56  # prob of at least one defects per module : prob of not no defect per module
57  return 1. - pow( (1-prob_col_group_defect_per_mod), 1/(n_col_groups))
58  kwargs.setdefault("CoreColumnDefectProbability", probColGroupDefect(.1, 400/8.) ) # ~20 % prob / chip for 400/8. core groups / chip
59  kwargs.setdefault("PixelDetEleCollKey", "ITkPixelDetectorElementCollection")
60  kwargs.setdefault("WriteKey", "ITkPixelEmulatedDefects")
61 
62  return PixelDefectsEmulatorCondAlgCfg(flags,name,**kwargs)
63 
64 

◆ ITkPixelRDORemappingCfg()

def PixelDefectsEmulatorConfig.ITkPixelRDORemappingCfg (   flags)

Definition at line 21 of file PixelDefectsEmulatorConfig.py.

21 def ITkPixelRDORemappingCfg(flags) :
22  return PixelRDORemappingCfg(flags,"ITkPixelRDOs")
23 

◆ PixelDefectsEmulatorAlgCfg()

ComponentAccumulator PixelDefectsEmulatorConfig.PixelDefectsEmulatorAlgCfg (   flags,
str   name = "ITkPixelDefectsEmulatorAlg",
**dict  kwargs 
)

Definition at line 65 of file PixelDefectsEmulatorConfig.py.

66  name: str = "ITkPixelDefectsEmulatorAlg",
67  **kwargs: dict) -> ComponentAccumulator:
68  acc = ComponentAccumulator()
69 
70  if "InputKey" not in kwargs :
71  # rename original RDO collection
72  acc.merge(PixelRDORemappingCfg(flags))
73  kwargs.setdefault("InputKey","PixelRDOs_ORIG")
74 
75  if "EmulatedDefectsKey" not in kwargs :
76  # create defects conditions data
77  acc.merge( ITkPixelDefectsEmulatorCondAlgCfg(flags))
78  kwargs.setdefault("EmulatedDefectsKey", "PixelEmulatedDefects")
79  kwargs.setdefault("OutputKey","PixelRDOs")
80  kwargs.setdefault("HistogramGroupName","") # disable histogramming, enable e.g. /PixelDefects/RejectedRDOs/
81 
82  acc.addEventAlgo(CompFactory.InDet.PixelDefectsEmulatorAlg(name,**kwargs))
83  return acc
84 

◆ PixelDefectsEmulatorCondAlgCfg()

ComponentAccumulator PixelDefectsEmulatorConfig.PixelDefectsEmulatorCondAlgCfg (   flags,
str   name = "PixelDefectsEmulatorCondAlg",
**dict  kwargs 
)

Definition at line 36 of file PixelDefectsEmulatorConfig.py.

37  name: str = "PixelDefectsEmulatorCondAlg",
38  **kwargs: dict) -> ComponentAccumulator:
39  acc = ComponentAccumulator()
40  kwargs.setdefault("DefectProbability", 1e-4)
41  kwargs.setdefault("CoreColumnDefectProbability", 0.) # there are no core columns for run3 pixel modules
42  kwargs.setdefault("PixelDetEleCollKey", "PixelDetectorElementCollection")
43  kwargs.setdefault("WriteKey", "PixelEmulatedDefects")
44  kwargs.setdefault("HistogramGroupName","") # disable histogramming; enable: e.g. /PixelDefects/EmulatedDefects/
45 
46  acc.addCondAlgo(CompFactory.InDet.PixelDefectsEmulatorCondAlg(name,**kwargs))
47  return acc
48 

◆ PixelRDORemappingCfg()

def PixelDefectsEmulatorConfig.PixelRDORemappingCfg (   flags,
  InputKey = "PixelRDOs" 
)

Definition at line 13 of file PixelDefectsEmulatorConfig.py.

13 def PixelRDORemappingCfg(flags, InputKey="PixelRDOs") :
14  acc = ComponentAccumulator()
15 
16  from SGComps.AddressRemappingConfig import AddressRemappingCfg
17  renames = [ '%s#%s->%s' % ('PixelRDO_Container', InputKey, f"{InputKey}_ORIG") ]
18  acc.merge(AddressRemappingCfg( renameMaps = renames ))
19  return acc
20 

Variable Documentation

◆ acc

PixelDefectsEmulatorConfig.acc = MainServicesCfg( flags )

Definition at line 132 of file PixelDefectsEmulatorConfig.py.

◆ AtlasVersion

PixelDefectsEmulatorConfig.AtlasVersion

Definition at line 113 of file PixelDefectsEmulatorConfig.py.

◆ Dynamic

PixelDefectsEmulatorConfig.Dynamic

Definition at line 115 of file PixelDefectsEmulatorConfig.py.

◆ Files

PixelDefectsEmulatorConfig.Files

Definition at line 116 of file PixelDefectsEmulatorConfig.py.

◆ flags

PixelDefectsEmulatorConfig.flags = initConfigFlags()

Definition at line 108 of file PixelDefectsEmulatorConfig.py.

◆ GeometryBpipe

PixelDefectsEmulatorConfig.GeometryBpipe

Definition at line 120 of file PixelDefectsEmulatorConfig.py.

◆ GeometryCalo

PixelDefectsEmulatorConfig.GeometryCalo

Definition at line 121 of file PixelDefectsEmulatorConfig.py.

◆ GeometryITkPixel

PixelDefectsEmulatorConfig.GeometryITkPixel

Definition at line 118 of file PixelDefectsEmulatorConfig.py.

◆ GeometryITkStrip

PixelDefectsEmulatorConfig.GeometryITkStrip

Definition at line 119 of file PixelDefectsEmulatorConfig.py.

◆ GlobalTag

PixelDefectsEmulatorConfig.GlobalTag

Definition at line 114 of file PixelDefectsEmulatorConfig.py.

◆ MaxEvents

PixelDefectsEmulatorConfig.MaxEvents

Definition at line 126 of file PixelDefectsEmulatorConfig.py.

◆ NumConcurrentEvents

PixelDefectsEmulatorConfig.NumConcurrentEvents

Definition at line 124 of file PixelDefectsEmulatorConfig.py.

◆ NumThreads

PixelDefectsEmulatorConfig.NumThreads

Definition at line 123 of file PixelDefectsEmulatorConfig.py.

◆ printDefaults

PixelDefectsEmulatorConfig.printDefaults

Definition at line 146 of file PixelDefectsEmulatorConfig.py.

◆ ProductionStep

PixelDefectsEmulatorConfig.ProductionStep

Definition at line 111 of file PixelDefectsEmulatorConfig.py.

◆ sc

PixelDefectsEmulatorConfig.sc = acc.run()

Definition at line 147 of file PixelDefectsEmulatorConfig.py.

◆ summariseProps

PixelDefectsEmulatorConfig.summariseProps

Definition at line 146 of file PixelDefectsEmulatorConfig.py.

◆ True

PixelDefectsEmulatorConfig.True

Definition at line 146 of file PixelDefectsEmulatorConfig.py.

◆ withDetails

PixelDefectsEmulatorConfig.withDetails

Definition at line 146 of file PixelDefectsEmulatorConfig.py.

PixelDefectsEmulatorConfig.DefectsHistSvcCfg
ComponentAccumulator DefectsHistSvcCfg(flags, str HistogramGroup="PixelDefects", str FileName='pixel_defects.root')
Definition: PixelDefectsEmulatorConfig.py:24
PixelDefectsEmulatorConfig.PixelDefectsEmulatorCondAlgCfg
ComponentAccumulator PixelDefectsEmulatorCondAlgCfg(flags, str name="PixelDefectsEmulatorCondAlg", **dict kwargs)
Definition: PixelDefectsEmulatorConfig.py:36
AddressRemappingConfig.AddressRemappingCfg
def AddressRemappingCfg(renameMaps=[], overwriteMaps=[])
Definition: AddressRemappingConfig.py:10
python.JetAnalysisCommon.ComponentAccumulator
ComponentAccumulator
Definition: JetAnalysisCommon.py:302
PixelDefectsEmulatorConfig.PixelDefectsEmulatorAlgCfg
ComponentAccumulator PixelDefectsEmulatorAlgCfg(flags, str name="ITkPixelDefectsEmulatorAlg", **dict kwargs)
Definition: PixelDefectsEmulatorConfig.py:65
PixelDefectsEmulatorConfig.ITkPixelDefectsEmulatorCondAlgCfg
ComponentAccumulator ITkPixelDefectsEmulatorCondAlgCfg(flags, str name="ITkPixelDefectsEmulatorCondAlg", **dict kwargs)
Definition: PixelDefectsEmulatorConfig.py:49
PixelDefectsEmulatorConfig.ITkPixelDefectsEmulatorAlgCfg
ComponentAccumulator ITkPixelDefectsEmulatorAlgCfg(flags, str name="ITkPixelDefectsEmulatorAlg", **dict kwargs)
Definition: PixelDefectsEmulatorConfig.py:85
print
void print(char *figname, TCanvas *c1)
Definition: TRTCalib_StrawStatusPlots.cxx:25
PixelDefectsEmulatorConfig.ITkDefectsHistSvcCfg
ComponentAccumulator ITkDefectsHistSvcCfg(flags, HistogramGroup="ITkPixelDefects")
Definition: PixelDefectsEmulatorConfig.py:32
PixelDefectsEmulatorConfig.PixelRDORemappingCfg
def PixelRDORemappingCfg(flags, InputKey="PixelRDOs")
Definition: PixelDefectsEmulatorConfig.py:13
PixelDefectsEmulatorConfig.ITkPixelRDORemappingCfg
def ITkPixelRDORemappingCfg(flags)
Definition: PixelDefectsEmulatorConfig.py:21
pow
constexpr int pow(int base, int exp) noexcept
Definition: ap_fixedTest.cxx:15