Belle II Software development
CheckZS Class Reference
Inheritance diagram for CheckZS:

Public Member Functions

def __init__ (self, thresholdSN)
 
def event (self)
 

Public Attributes

 thresholdSN
 SNR threshold.
 

Detailed Description

Check that SVVDShaperDigits are correctly zero-suppressed.

Definition at line 22 of file zero_suppression.py.

Constructor & Destructor Documentation

◆ __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

Member Function Documentation

◆ event()

def event (   self)
event

Definition at line 32 of file zero_suppression.py.

32 def event(self):
33 '''event'''
34 storedigits = Belle2.PyStoreArray("SVDShaperDigits")
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.
Definition: PyStoreArray.h:72
static GeoCache & getInstance()
Return a reference to the singleton instance.
Definition: GeoCache.cc:214

Member Data Documentation

◆ thresholdSN

thresholdSN

SNR threshold.

Definition at line 30 of file zero_suppression.py.


The documentation for this class was generated from the following file: