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

Public Member Functions

def event (self)
 

Detailed Description

Delay second event in each run

Definition at line 19 of file mixed_runs.py.

Member Function Documentation

◆ event()

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

Definition at line 22 of file mixed_runs.py.

22  def event(self):
23  """reimplementation of Module::event()."""
24 
25  evtmetadata = Belle2.PyStoreObj('EventMetaData')
26 
27  if not evtmetadata:
28  basf2.B2ERROR('No EventMetaData found')
29  else:
30  event = evtmetadata.obj().getEvent()
31  if event == 2:
32  time.sleep(0.2)
33 
34 
35 # Normal steering file part begins here
a (simplified) python wrapper for StoreObjPtr.
Definition: PyStoreObj.h:67

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