Belle II Software  release-08-01-10
CheckEventNumbers Class Reference
Inheritance diagram for CheckEventNumbers:
Collaboration diagram for CheckEventNumbers:

Public Member Functions

def __init__ (self, evtNumList)
 
def event (self)
 
def terminate (self)
 

Private Attributes

 __evtNumList
 the number of events so we expect the event numbers 0..(evtNumList-1)
 
 __evtNumbers
 event numbers we actually saw
 

Detailed Description

Class to check that we see all events we expect exactly once and nothing else

Definition at line 20 of file parallel_processing.py.

Constructor & Destructor Documentation

◆ __init__()

def __init__ (   self,
  evtNumList 
)
Remember number of events to process

Definition at line 23 of file parallel_processing.py.

23  def __init__(self, evtNumList):
24  """Remember number of events to process"""
25  super().__init__()
26 
27  self.__evtNumList = evtNumList
28 
29  self.__evtNumbers = []
30 

Member Function Documentation

◆ event()

def event (   self)
Accumulate all event numbers we see

Definition at line 31 of file parallel_processing.py.

◆ terminate()

def terminate (   self)
Check if event numbers are as they should be

Definition at line 36 of file parallel_processing.py.


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