![]() |
ATLAS Offline Software
|
Functions | |
| emulateITkPixelDefects (flags, cfg, ModulePatterns=[[-2, 2, 0, 99,-99, 99,-99, 99, 0, 9999, 0, 1, 0]], DefectProbabilities=[[0., 1e-2, 1e-1, 0.]], NDefectFractionsPerPattern=[[1.,-1, 1.]], NoiseProbability=[], NoiseShape=[], CornerDefectParamsPerPattern=[], NCornerDefectFractionsPerPattern=[], RngPerDefectType=False, DefectsInputFiles=[], DefectsOutputFile=None, FillHistogramsPerPattern=False, FillEtaPhiHistogramsPerPattern=False, int MaxRandomPositionAttempts=10, str HistogramGroupName="ITkPixelDefects", str HistogramFileName="itk_pixel_defects_opt1.root", PropagateDefectsToStatus=True) | |
| emulatePixelDefects (flags, cfg, ModulePatterns=None, DefectProbabilities=None, NDefectFractionsPerPattern=None, RngPerDefectType=False, DefectsInputFiles=[], DefectsOutputFile=None, FillHistogramsPerPattern=False, FillEtaPhiHistogramsPerPattern=False, str HistogramGroupName="PixelDefects", str HistogramFileName="pixel_defects.root") | |
| poissonFractions (cc_defect_prob=1e-1, max_n=5) | |
| quadProb (circuit_prob) | |
| fractionsForExactlyNCoreColumnDefects (ExactlyNCoreColumnDefects=1) | |
| makeITkDefectsParams (quad_cc_defect_prob, quad_fractions, circuit_cc_defect_prob, circuit_fractions, pixel_defect_prob=1e-2, module_defect_prob=0., cornerDefectProb=0., noiseProbability=None, noiseShape=[]) | |
| makeITkPixelNoise (noiseProb=0.) | |
| emulateITkPixelDefectsOneCC (flags, cfg, FrontEndCCDefectProb=0.1, PixelDefectProb=1e-2, NumberOfCCDefects=1, ModuleDefectProb=0., CornerDefectProb=0., NoiseProb=0., RngPerDefectType=False, DefectsInputFiles=[], DefectsOutputFile=None, PropagateDefectsToStatus=True, HistogramFileName=None) | |
| emulateITkPixelDefectsPoisson (flags, cfg, FrontEndCCDefectProb=0.1, PixelDefectProb=1e-2, ModuleDefectProb=0., CornerDefectProb=0., NoiseProb=0., RngPerDefectType=False, DefectsInputFiles=[], DefectsOutputFile=None, PropagateDefectsToStatus=True, HistogramFileName=None) | |
| emulateITkPixelDefectsDefault (flags, cfg, FrontEndCCDefectProb=0.1, PixelDefectProb=1e-2, ModuleDefectProb=1e-2, CornerDefectProb=15e-2, NoiseProb=0., RngPerDefectType=False, DefectsInputFiles=[], DefectsOutputFile=None, PropagateDefectsToStatus=True, HistogramFileName=None) | |
| PixelDefectsEmulatorPostInclude.emulateITkPixelDefects | ( | flags, | |
| cfg, | |||
| ModulePatterns = [[-2,2,0,99,-99,99,-99,99,0,9999,0,1,0]], | |||
| DefectProbabilities = [[0.,1e-2,1e-1,0.]], | |||
| NDefectFractionsPerPattern = [[1.,-1, 1.]], | |||
| NoiseProbability = [], | |||
| NoiseShape = [], | |||
| CornerDefectParamsPerPattern = [], | |||
| NCornerDefectFractionsPerPattern = [], | |||
| RngPerDefectType = False, | |||
| DefectsInputFiles = [], | |||
| DefectsOutputFile = None, | |||
| FillHistogramsPerPattern = False, | |||
| FillEtaPhiHistogramsPerPattern = False, | |||
| int | MaxRandomPositionAttempts = 10, | ||
| str | HistogramGroupName = "ITkPixelDefects", | ||
| str | HistogramFileName = "itk_pixel_defects_opt1.root", | ||
| PropagateDefectsToStatus = True ) |
Schedule conditions algorithm for emulated ITk pixel defects, and algorithms to drop RDOs overlapping with the emulated defects.
ModulePattern: criteria to match modules, which are lists of n-tuples where every two numbers of each n-tuple define a range
to match parts of module identifiers (barrel/ec, layer/disk, eta., phi, columns, side) plus a flag (last
element of each n-tuple), which is unused for pixel.
DefectProbabilities: list of n-tuples per criterion containing 4 probabilities: module, pixel to be defect, a module
to have at least one core column defect, circuit defect.
NDefectFractionsPerPattern: Fractions of exactly n-group defects (core-column, circuit) under condition that there is at least one
such group defect. There must be one n-tuple with fractions per criterion, and each fraction
n-tuple must contain for each group defect probability a non empty set of fractions of exactly 1, ... n defects.
Fractions for different group defects are separated by -1. There should be two sequences of
positive fractions separated by -1.
NoiseProbability: Empty or probabilities of a pixel to produce a spurious hit.
NoiseShape: binned PDF (i.e. list of fractions) to create tot values for spurious hits.
CornerDefectParamsPerPattern: parameters for corner defects per pattern can be created with e.g. makeCornerDefectParam
NCornerDefectFractionsPerPattern: fractions of 1,..4 corner defects
FillHistogramsPerPattern: if True histograms are filled per module pattern
FillEtaPhiHistogramsPerPattern: if True also fill xy, and rz histograms of defects per module.
HistogramGroupName: None (disables histogramming) or the histogram group name must be unique
HistogramFileName: None (disables histogramming) or a file name for writing the histograms.
Definition at line 38 of file PixelDefectsEmulatorPostInclude.py.
| PixelDefectsEmulatorPostInclude.emulateITkPixelDefectsDefault | ( | flags, | |
| cfg, | |||
| FrontEndCCDefectProb = 0.1, | |||
| PixelDefectProb = 1e-2, | |||
| ModuleDefectProb = 1e-2, | |||
| CornerDefectProb = 15e-2, | |||
| NoiseProb = 0., | |||
| RngPerDefectType = False, | |||
| DefectsInputFiles = [], | |||
| DefectsOutputFile = None, | |||
| PropagateDefectsToStatus = True, | |||
| HistogramFileName = None ) |
Enables all defects according to the current expectation.
Definition at line 427 of file PixelDefectsEmulatorPostInclude.py.
| PixelDefectsEmulatorPostInclude.emulateITkPixelDefectsOneCC | ( | flags, | |
| cfg, | |||
| FrontEndCCDefectProb = 0.1, | |||
| PixelDefectProb = 1e-2, | |||
| NumberOfCCDefects = 1, | |||
| ModuleDefectProb = 0., | |||
| CornerDefectProb = 0., | |||
| NoiseProb = 0., | |||
| RngPerDefectType = False, | |||
| DefectsInputFiles = [], | |||
| DefectsOutputFile = None, | |||
| PropagateDefectsToStatus = True, | |||
| HistogramFileName = None ) |
Create exactly one core column defect per module where the probability is given by module_prob, and create single pixel defects according to pixel_defect_prob
Definition at line 332 of file PixelDefectsEmulatorPostInclude.py.
| PixelDefectsEmulatorPostInclude.emulateITkPixelDefectsPoisson | ( | flags, | |
| cfg, | |||
| FrontEndCCDefectProb = 0.1, | |||
| PixelDefectProb = 1e-2, | |||
| ModuleDefectProb = 0., | |||
| CornerDefectProb = 0., | |||
| NoiseProb = 0., | |||
| RngPerDefectType = False, | |||
| DefectsInputFiles = [], | |||
| DefectsOutputFile = None, | |||
| PropagateDefectsToStatus = True, | |||
| HistogramFileName = None ) |
Create Poisson distributed core column defects per module where the probability for at least one core column defect is given by front_end_cc_defect_prob for single chip modules and larger for quads, respectively. Single pixel defects are controlled by pixel_defect_prob
Definition at line 380 of file PixelDefectsEmulatorPostInclude.py.
| PixelDefectsEmulatorPostInclude.emulatePixelDefects | ( | flags, | |
| cfg, | |||
| ModulePatterns = None, | |||
| DefectProbabilities = None, | |||
| NDefectFractionsPerPattern = None, | |||
| RngPerDefectType = False, | |||
| DefectsInputFiles = [], | |||
| DefectsOutputFile = None, | |||
| FillHistogramsPerPattern = False, | |||
| FillEtaPhiHistogramsPerPattern = False, | |||
| str | HistogramGroupName = "PixelDefects", | ||
| str | HistogramFileName = "pixel_defects.root" ) |
Schedule algorithms to emulate run3 pixel defects, and algorithm to drop RDOs which overlap with these defects
Definition at line 132 of file PixelDefectsEmulatorPostInclude.py.
| PixelDefectsEmulatorPostInclude.fractionsForExactlyNCoreColumnDefects | ( | ExactlyNCoreColumnDefects = 1 | ) |
Create fraction n-tuple, containing zero except for the element corresponding to exactly n defects, which is set to 1.
Definition at line 227 of file PixelDefectsEmulatorPostInclude.py.
| PixelDefectsEmulatorPostInclude.makeITkDefectsParams | ( | quad_cc_defect_prob, | |
| quad_fractions, | |||
| circuit_cc_defect_prob, | |||
| circuit_fractions, | |||
| pixel_defect_prob = 1e-2, | |||
| module_defect_prob = 0., | |||
| cornerDefectProb = 0., | |||
| noiseProbability = None, | |||
| noiseShape = [] ) |
Create different defects for quads and single chip modules, where the corresponding modules are selected by the number of offline columns
Definition at line 234 of file PixelDefectsEmulatorPostInclude.py.
| PixelDefectsEmulatorPostInclude.makeITkPixelNoise | ( | noiseProb = 0. | ) |
For NoiseProb>0. create phantasie noise tot shape, with mean at zero width of 0.7 truncated below a tot of 1.
Definition at line 310 of file PixelDefectsEmulatorPostInclude.py.
| PixelDefectsEmulatorPostInclude.poissonFractions | ( | cc_defect_prob = 1e-1, | |
| max_n = 5 ) |
Create fractions for exactly 1..max_n defects, under the condition that the probability for at least one such defects is cc_defect_prob, and assuming that the fractions are Poisson distributed.
Definition at line 202 of file PixelDefectsEmulatorPostInclude.py.
| PixelDefectsEmulatorPostInclude.quadProb | ( | circuit_prob | ) |
Compute the defect probability for a quad module from the probabilities of a single chip module, assuming that the defect is a "feature" of the chip.
Definition at line 219 of file PixelDefectsEmulatorPostInclude.py.