10 CoreColumnDefectProbability: float=0.01,
11 DefectProbability: float=1e-4,
12 HistogramGroupName: str=
"ITkPixelDefects",
13 HistogramFileName: str=
"itk_pixel_defects.root") :
14 from InDetDefectsEmulation.PixelDefectsEmulatorConfig
import (
15 ITkPixelDefectsEmulatorCondAlgCfg,
16 ITkPixelDefectsEmulatorAlgCfg,
21 if HistogramFileName
is None or len(HistogramFileName) ==0 :
22 HistogramGroupName =
None
23 if HistogramGroupName
is not None :
24 cfg.merge(
DefectsHistSvcCfg(flags, HistogramGroup=HistogramGroupName, FileName=HistogramFileName))
29 HistogramGroupName=f
"/{HistogramGroupName}/EmulatedDefects/" if HistogramGroupName
is not None else "",
30 CoreColumnDefectProbability=CoreColumnDefectProbability,
37 DefectProbability=DefectProbability,
38 WriteKey=
"ITkPixelEmulatedDefects",
44 EmulatedDefectsKey=
"ITkPixelEmulatedDefects",
46 HistogramGroupName=f
"/{HistogramGroupName}/RejectedRDOs/" if HistogramGroupName
is not None else "",
53 DefectProbability: float=1e-4,
54 HistogramGroupName: str=
"PixelDefects",
55 HistogramFileName: str=
"pixel_defects.root") :
56 from InDetDefectsEmulation.PixelDefectsEmulatorConfig
import (
57 PixelDefectsEmulatorCondAlgCfg,
58 PixelDefectsEmulatorAlgCfg,
63 if HistogramFileName
is None or len(HistogramFileName) ==0 :
64 HistogramGroupName =
None
65 if HistogramGroupName
is not None :
66 cfg.merge(
DefectsHistSvcCfg(flags, HistogramGroup=HistogramGroupName, FileName=HistogramFileName))
71 HistogramGroupName=f
"/{HistogramGroupName}/EmulatedDefects/" if HistogramGroupName
is not None else "",
72 CoreColumnDefectProbability=0.,
73 DefectProbability=DefectProbability,
74 WriteKey=
"PixelEmulatedDefects",
80 EmulatedDefectsKey=
"PixelEmulatedDefects",
82 HistogramGroupName=f
"/{HistogramGroupName}/RejectedRDOs/" if HistogramGroupName
is not None else "",