Loading [MathJax]/extensions/tex2jax.js
ATLAS Offline Software
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
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="PixelDefectsEmulatorAlg", **dict kwargs)
 
ComponentAccumulator ITkPixelDefectsEmulatorAlgCfg (flags, str name="ITkPixelDefectsEmulatorAlg", **dict kwargs)
 
ComponentAccumulator ITkPixelDefectsEmulatorToDetectorElementStatusCondAlgCfg (flags, str name="ITkPixelDefectsEmulatorToDetectorElementStatusCondAlgCfg", **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 23 of file PixelDefectsEmulatorConfig.py.

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

◆ ITkDefectsHistSvcCfg()

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

Definition at line 30 of file PixelDefectsEmulatorConfig.py.

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

◆ ITkPixelDefectsEmulatorAlgCfg()

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

Definition at line 83 of file PixelDefectsEmulatorConfig.py.

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

◆ 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("ModulePatterns", [[-2,2,0,99,-99,99,-99,99,0,9999,0,0,0]]) # range-pairs+flag: barrel/ec, all layers, all eta, all phi, all column counts,
53  # all sides, don't auto-match connected rows
54  kwargs.setdefault("DefectProbabilities", [[0.,1e-2, 1e-1,0.]]) # probabilities: module, pixel, core-column, circuit
55  kwargs.setdefault("NDefectFractionsPerPattern",[[1.,-1, 1.]]) # fractions for exactly 1..N core-column, circuit defects
56 
57  kwargs.setdefault("DetEleCollKey", "ITkPixelDetectorElementCollection")
58  kwargs.setdefault("WriteKey", "ITkPixelEmulatedDefects")
59 
60  return PixelDefectsEmulatorCondAlgCfg(flags,name,**kwargs)
61 
62 

◆ ITkPixelDefectsEmulatorToDetectorElementStatusCondAlgCfg()

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

Definition at line 103 of file PixelDefectsEmulatorConfig.py.

104  name: str = "ITkPixelDefectsEmulatorToDetectorElementStatusCondAlgCfg",
105  **kwargs: dict) -> ComponentAccumulator:
106  acc = ComponentAccumulator()
107  kwargs.setdefault("EmulatedDefectsKey","ITkPixelEmulatedDefects")
108  kwargs.setdefault("WriteKey","ITkPixelDetectorElementStatusFromEmulatedDefects")
109  acc.addCondAlgo(CompFactory.InDet.PixelEmulatedDefectsToDetectorElementStatusCondAlg(name,**kwargs))
110  return acc
111 

◆ ITkPixelRDORemappingCfg()

def PixelDefectsEmulatorConfig.ITkPixelRDORemappingCfg (   flags)

Definition at line 20 of file PixelDefectsEmulatorConfig.py.

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

◆ PixelDefectsEmulatorAlgCfg()

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

Definition at line 63 of file PixelDefectsEmulatorConfig.py.

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

◆ PixelDefectsEmulatorCondAlgCfg()

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

Definition at line 34 of file PixelDefectsEmulatorConfig.py.

35  name: str = "PixelDefectsEmulatorCondAlg",
36  **kwargs: dict) -> ComponentAccumulator:
37  acc = ComponentAccumulator()
38  kwargs.setdefault("ModulePatterns", [[-2,2,0,99,-99,99,-99,99,0,9999,0,0,0]]) # ranges: barrel/ec, all layers, all eta, all phi, all column counts,
39  # all sides, don't auto-match connected rows
40  kwargs.setdefault("DefectProbabilities", [[0.,1e-3,0.,0.]]) # probabilities: module, pixel, core-column, circuit
41  kwargs.setdefault("NDefectFractionsPerPattern",[[1.,-1, 1.]]) # fractions for exactly 1..N core-column, circuit defects
42  kwargs.setdefault("DetEleCollKey", "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 12 of file PixelDefectsEmulatorConfig.py.

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

Variable Documentation

◆ acc

PixelDefectsEmulatorConfig.acc = MainServicesCfg( flags )

Definition at line 138 of file PixelDefectsEmulatorConfig.py.

◆ AtlasVersion

PixelDefectsEmulatorConfig.AtlasVersion

Definition at line 119 of file PixelDefectsEmulatorConfig.py.

◆ Dynamic

PixelDefectsEmulatorConfig.Dynamic

Definition at line 121 of file PixelDefectsEmulatorConfig.py.

◆ Files

PixelDefectsEmulatorConfig.Files

Definition at line 122 of file PixelDefectsEmulatorConfig.py.

◆ flags

PixelDefectsEmulatorConfig.flags = initConfigFlags()

Definition at line 114 of file PixelDefectsEmulatorConfig.py.

◆ GeometryBpipe

PixelDefectsEmulatorConfig.GeometryBpipe

Definition at line 126 of file PixelDefectsEmulatorConfig.py.

◆ GeometryCalo

PixelDefectsEmulatorConfig.GeometryCalo

Definition at line 127 of file PixelDefectsEmulatorConfig.py.

◆ GeometryITkPixel

PixelDefectsEmulatorConfig.GeometryITkPixel

Definition at line 124 of file PixelDefectsEmulatorConfig.py.

◆ GeometryITkStrip

PixelDefectsEmulatorConfig.GeometryITkStrip

Definition at line 125 of file PixelDefectsEmulatorConfig.py.

◆ GlobalTag

PixelDefectsEmulatorConfig.GlobalTag

Definition at line 120 of file PixelDefectsEmulatorConfig.py.

◆ MaxEvents

PixelDefectsEmulatorConfig.MaxEvents

Definition at line 132 of file PixelDefectsEmulatorConfig.py.

◆ NumConcurrentEvents

PixelDefectsEmulatorConfig.NumConcurrentEvents

Definition at line 130 of file PixelDefectsEmulatorConfig.py.

◆ NumThreads

PixelDefectsEmulatorConfig.NumThreads

Definition at line 129 of file PixelDefectsEmulatorConfig.py.

◆ printDefaults

PixelDefectsEmulatorConfig.printDefaults

Definition at line 155 of file PixelDefectsEmulatorConfig.py.

◆ ProductionStep

PixelDefectsEmulatorConfig.ProductionStep

Definition at line 117 of file PixelDefectsEmulatorConfig.py.

◆ sc

PixelDefectsEmulatorConfig.sc = acc.run()

Definition at line 156 of file PixelDefectsEmulatorConfig.py.

◆ summariseProps

PixelDefectsEmulatorConfig.summariseProps

Definition at line 155 of file PixelDefectsEmulatorConfig.py.

◆ True

PixelDefectsEmulatorConfig.True

Definition at line 155 of file PixelDefectsEmulatorConfig.py.

◆ withDetails

PixelDefectsEmulatorConfig.withDetails

Definition at line 155 of file PixelDefectsEmulatorConfig.py.

PixelDefectsEmulatorConfig.ITkPixelDefectsEmulatorToDetectorElementStatusCondAlgCfg
ComponentAccumulator ITkPixelDefectsEmulatorToDetectorElementStatusCondAlgCfg(flags, str name="ITkPixelDefectsEmulatorToDetectorElementStatusCondAlgCfg", **dict kwargs)
Definition: PixelDefectsEmulatorConfig.py:103
PixelDefectsEmulatorConfig.DefectsHistSvcCfg
ComponentAccumulator DefectsHistSvcCfg(flags, str HistogramGroup="PixelDefects", str FileName='pixel_defects.root')
Definition: PixelDefectsEmulatorConfig.py:23
PixelDefectsEmulatorConfig.PixelDefectsEmulatorCondAlgCfg
ComponentAccumulator PixelDefectsEmulatorCondAlgCfg(flags, str name="PixelDefectsEmulatorCondAlg", **dict kwargs)
Definition: PixelDefectsEmulatorConfig.py:34
AddressRemappingConfig.AddressRemappingCfg
def AddressRemappingCfg(renameMaps=[], overwriteMaps=[])
Definition: AddressRemappingConfig.py:10
python.JetAnalysisCommon.ComponentAccumulator
ComponentAccumulator
Definition: JetAnalysisCommon.py:302
PixelDefectsEmulatorConfig.ITkPixelDefectsEmulatorCondAlgCfg
ComponentAccumulator ITkPixelDefectsEmulatorCondAlgCfg(flags, str name="ITkPixelDefectsEmulatorCondAlg", **dict kwargs)
Definition: PixelDefectsEmulatorConfig.py:49
PixelDefectsEmulatorConfig.PixelDefectsEmulatorAlgCfg
ComponentAccumulator PixelDefectsEmulatorAlgCfg(flags, str name="PixelDefectsEmulatorAlg", **dict kwargs)
Definition: PixelDefectsEmulatorConfig.py:63
PixelDefectsEmulatorConfig.ITkPixelDefectsEmulatorAlgCfg
ComponentAccumulator ITkPixelDefectsEmulatorAlgCfg(flags, str name="ITkPixelDefectsEmulatorAlg", **dict kwargs)
Definition: PixelDefectsEmulatorConfig.py:83
PixelDefectsEmulatorConfig.ITkDefectsHistSvcCfg
ComponentAccumulator ITkDefectsHistSvcCfg(flags, HistogramGroup="ITkPixelDefects")
Definition: PixelDefectsEmulatorConfig.py:30
PixelDefectsEmulatorConfig.PixelRDORemappingCfg
def PixelRDORemappingCfg(flags, InputKey="PixelRDOs")
Definition: PixelDefectsEmulatorConfig.py:12
PixelDefectsEmulatorConfig.ITkPixelRDORemappingCfg
def ITkPixelRDORemappingCfg(flags)
Definition: PixelDefectsEmulatorConfig.py:20