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="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 95 of file PixelDefectsEmulatorConfig.py.

96  name: str = "ITkPixelDefectsEmulatorAlg",
97  **kwargs: dict) -> ComponentAccumulator:
98  acc = ComponentAccumulator()
99  if "InputKey" not in kwargs :
100  # rename original RDO collection
101  acc.merge(ITkPixelRDORemappingCfg(flags))
102  kwargs.setdefault("InputKey","ITkPixelRDOs_ORIG")
103 
104  if "EmulatedDefectsKey" not in kwargs :
105  # create defects conditions data
106  acc.merge( ITkPixelDefectsEmulatorCondAlgCfg(flags))
107  kwargs.setdefault("EmulatedDefectsKey", "ITkPixelEmulatedDefects")
108  kwargs.setdefault("OutputKey","ITkPixelRDOs")
109 
110  kwargs.setdefault("HistogramGroupName","") # disable histogramming, enable e.g. /PixelDefects/RejectedRDOs/
111 
112  acc.addEventAlgo(CompFactory.InDet.PixelDefectsEmulatorAlg(name,**kwargs))
113  return acc
114 

◆ ITkPixelDefectsEmulatorCondAlgCfg()

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

Definition at line 55 of file PixelDefectsEmulatorConfig.py.

56  name: str = "ITkPixelDefectsEmulatorCondAlg",
57  **kwargs: dict) -> ComponentAccumulator:
58  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,
59  # all sides, don't auto-match connected rows
60  kwargs.setdefault("DefectProbabilities", [[0.,1e-2, 1e-1,0.]]) # probabilities: module, pixel, core-column, circuit
61  kwargs.setdefault("NDefectFractionsPerPattern",[[1.,-1, 1.]]) # fractions for exactly 1..N core-column, circuit defects
62 
63  kwargs.setdefault("DetEleCollKey", "ITkPixelDetectorElementCollection")
64  kwargs.setdefault("WriteKey", "ITkPixelEmulatedDefects")
65 
66  kwargs.setdefault("RngPerDefectType",False) # If True use one RNG per defect type (module, chip-defects, core-column, pixel-defects, corner-defects)
67  kwargs.setdefault("DefectsInputFiles",[]) # If not empty read defects from input files and merge defects (root RNTuple/json; extension: .root .json")
68  kwargs.setdefault("DefectsOutputFile","") # If not empty write defects to a output file (root RNTuple/json; (extension: .root .json")
69  if "DefectsOutputFile" in kwargs and kwargs["DefectsOutputFile"] is None :
70  kwargs["DefectsOutputFile"]=""
71 
72  return PixelDefectsEmulatorCondAlgCfg(flags,name,**kwargs)
73 
74 

◆ ITkPixelDefectsEmulatorToDetectorElementStatusCondAlgCfg()

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

Definition at line 115 of file PixelDefectsEmulatorConfig.py.

116  name: str = "ITkPixelDefectsEmulatorToDetectorElementStatusCondAlgCfg",
117  **kwargs: dict) -> ComponentAccumulator:
118  acc = ComponentAccumulator()
119  kwargs.setdefault("EmulatedDefectsKey","ITkPixelEmulatedDefects")
120  kwargs.setdefault("WriteKey","ITkPixelDetectorElementStatusFromEmulatedDefects")
121  acc.addCondAlgo(CompFactory.InDet.PixelEmulatedDefectsToDetectorElementStatusCondAlg(name,**kwargs))
122  return acc
123 

◆ 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 75 of file PixelDefectsEmulatorConfig.py.

76  name: str = "PixelDefectsEmulatorAlg",
77  **kwargs: dict) -> ComponentAccumulator:
78  acc = ComponentAccumulator()
79 
80  if "InputKey" not in kwargs :
81  # rename original RDO collection
82  acc.merge(PixelRDORemappingCfg(flags))
83  kwargs.setdefault("InputKey","PixelRDOs_ORIG")
84 
85  if "EmulatedDefectsKey" not in kwargs :
86  # create defects conditions data
87  acc.merge( PixelDefectsEmulatorCondAlgCfg(flags))
88  kwargs.setdefault("EmulatedDefectsKey", "PixelEmulatedDefects")
89  kwargs.setdefault("OutputKey","PixelRDOs")
90  kwargs.setdefault("HistogramGroupName","") # disable histogramming, enable e.g. /PixelDefects/RejectedRDOs/
91 
92  acc.addEventAlgo(CompFactory.InDet.PixelDefectsEmulatorAlg(name,**kwargs))
93  return acc
94 

◆ 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  kwargs.setdefault("RngPerDefectType",False) # If True use one RNG per defect type (module, chip-defects, core-column, pixel-defects, corner-defects)
47  kwargs.setdefault("DefectsInputFiles",[]) # If not empty read defects from input files and merge defects (root RNTuple/json; extension: .root .json")
48  kwargs.setdefault("DefectsOutputFile","") # If not empty write defects to a output file (root RNTuple/json; (extension: .root .json")
49  if "DefectsOutputFile" in kwargs and kwargs["DefectsOutputFile"] is None :
50  kwargs["DefectsOutputFile"]=""
51 
52  acc.addCondAlgo(CompFactory.InDet.PixelDefectsEmulatorCondAlg(name,**kwargs))
53  return acc
54 

◆ 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 150 of file PixelDefectsEmulatorConfig.py.

◆ AtlasVersion

PixelDefectsEmulatorConfig.AtlasVersion

Definition at line 131 of file PixelDefectsEmulatorConfig.py.

◆ Dynamic

PixelDefectsEmulatorConfig.Dynamic

Definition at line 133 of file PixelDefectsEmulatorConfig.py.

◆ Files

PixelDefectsEmulatorConfig.Files

Definition at line 134 of file PixelDefectsEmulatorConfig.py.

◆ flags

PixelDefectsEmulatorConfig.flags = initConfigFlags()

Definition at line 126 of file PixelDefectsEmulatorConfig.py.

◆ GeometryBpipe

PixelDefectsEmulatorConfig.GeometryBpipe

Definition at line 138 of file PixelDefectsEmulatorConfig.py.

◆ GeometryCalo

PixelDefectsEmulatorConfig.GeometryCalo

Definition at line 139 of file PixelDefectsEmulatorConfig.py.

◆ GeometryITkPixel

PixelDefectsEmulatorConfig.GeometryITkPixel

Definition at line 136 of file PixelDefectsEmulatorConfig.py.

◆ GeometryITkStrip

PixelDefectsEmulatorConfig.GeometryITkStrip

Definition at line 137 of file PixelDefectsEmulatorConfig.py.

◆ GlobalTag

PixelDefectsEmulatorConfig.GlobalTag

Definition at line 132 of file PixelDefectsEmulatorConfig.py.

◆ MaxEvents

PixelDefectsEmulatorConfig.MaxEvents

Definition at line 144 of file PixelDefectsEmulatorConfig.py.

◆ NumConcurrentEvents

PixelDefectsEmulatorConfig.NumConcurrentEvents

Definition at line 142 of file PixelDefectsEmulatorConfig.py.

◆ NumThreads

PixelDefectsEmulatorConfig.NumThreads

Definition at line 141 of file PixelDefectsEmulatorConfig.py.

◆ printDefaults

PixelDefectsEmulatorConfig.printDefaults

Definition at line 167 of file PixelDefectsEmulatorConfig.py.

◆ ProductionStep

PixelDefectsEmulatorConfig.ProductionStep

Definition at line 129 of file PixelDefectsEmulatorConfig.py.

◆ sc

PixelDefectsEmulatorConfig.sc = acc.run()

Definition at line 168 of file PixelDefectsEmulatorConfig.py.

◆ summariseProps

PixelDefectsEmulatorConfig.summariseProps

Definition at line 167 of file PixelDefectsEmulatorConfig.py.

◆ True

PixelDefectsEmulatorConfig.True

Definition at line 167 of file PixelDefectsEmulatorConfig.py.

◆ withDetails

PixelDefectsEmulatorConfig.withDetails

Definition at line 167 of file PixelDefectsEmulatorConfig.py.

PixelDefectsEmulatorConfig.ITkPixelDefectsEmulatorToDetectorElementStatusCondAlgCfg
ComponentAccumulator ITkPixelDefectsEmulatorToDetectorElementStatusCondAlgCfg(flags, str name="ITkPixelDefectsEmulatorToDetectorElementStatusCondAlgCfg", **dict kwargs)
Definition: PixelDefectsEmulatorConfig.py:115
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:55
PixelDefectsEmulatorConfig.PixelDefectsEmulatorAlgCfg
ComponentAccumulator PixelDefectsEmulatorAlgCfg(flags, str name="PixelDefectsEmulatorAlg", **dict kwargs)
Definition: PixelDefectsEmulatorConfig.py:75
PixelDefectsEmulatorConfig.ITkPixelDefectsEmulatorAlgCfg
ComponentAccumulator ITkPixelDefectsEmulatorAlgCfg(flags, str name="ITkPixelDefectsEmulatorAlg", **dict kwargs)
Definition: PixelDefectsEmulatorConfig.py:95
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