Check that SVVDShaperDigits are correctly zero-suppressed.
Definition at line 22 of file zero_suppression.py.
◆ __init__()
def __init__ |
( |
|
self, |
|
|
|
thresholdSN |
|
) |
| |
initialize python module
Definition at line 25 of file zero_suppression.py.
25 def __init__(self, thresholdSN):
26 '''initialize python module'''
27 super().__init__()
28
29
30 self.thresholdSN = thresholdSN
31
◆ event()
event
Definition at line 32 of file zero_suppression.py.
32 def event(self):
33 '''event'''
36 for digit in storedigits:
37 info = gc.get(digit.getSensorID())
38 isU = digit.isUStrip()
39 noise_in_e = info.getElectronicNoiseU() if isU else info.getElectronicNoiseV()
40 adu_equivalent = info.getAduEquivalentU() if isU else info.getAduEquivalentV()
41 noise_in_adu = noise_in_e / adu_equivalent
42 threshold_in_adu = self.thresholdSN * noise_in_adu
43 samples = digit.getSamples()
44 for s in samples:
45 if s > threshold_in_adu:
46 break
47 else:
48 basf2.B2FATAL(f"Found digit under threshold: {digit.to_string()}")
49
50
A (simplified) python wrapper for StoreArray.
static GeoCache & getInstance()
Return a reference to the singleton instance.
◆ thresholdSN
The documentation for this class was generated from the following file: