For events with an odd event number, set module return value to False
Definition at line 17 of file module_paths.py.
◆ event()
reimplementation of Module::event().
Definition at line 21 of file module_paths.py.
21 def event(self):
22 """reimplementation of Module::event()."""
23
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.
◆ terminate()
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: