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

Public Member Functions

def event (self)
 
def terminate (self)
 

Detailed Description

For events with an odd event number, set module return value to False

Definition at line 17 of file module_paths.py.

Member Function Documentation

◆ event()

def event (   self)
reimplementation of Module::event().

Definition at line 21 of file module_paths.py.

21 def event(self):
22 """reimplementation of Module::event()."""
23
24 evtmetadata = Belle2.PyStoreObj('EventMetaData')
25 if not evtmetadata:
26 basf2.B2ERROR('No EventMetaData found')
27 else:
28 event = evtmetadata.obj().getEvent()
29 basf2.B2INFO('Setting return value to ' + str(event % 2 == 0))
30 self.return_value(event % 2 == 0)
31
a (simplified) python wrapper for StoreObjPtr.
Definition: PyStoreObj.h:67

◆ terminate()

def terminate (   self)
reimplementation of Module::terminate().

Definition at line 32 of file module_paths.py.

32 def terminate(self):
33 """reimplementation of Module::terminate()."""
34
35 basf2.B2INFO('terminating SelectOddEvents')
36
37

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