5 from ROOT
import Belle2
13 A small module to catch the content of the store array for some events and store them in the queue.
18 Create the module with the given queue.
32 Get the total number of events from C++
38 Store the current content of the store array into the internal list.
43 event_store_content_list = []
45 for store_array_name
in registered_store_arrays:
47 event_store_content_list.append(
StoreContent(store_array_name, len(store_array)))
49 for store_array_name
in registered_store_objects:
50 event_store_content_list.append(
StoreContent(store_array_name, 0))
57 Write the store array content into a list for later.
66 if 100 * current_percentage % 10 == 0:
73 Write the store array contents from the events to the queue.
81 A small module that prints every now and then the event number to the given connection.
82 It is used for status viewers. Do not call it by yourself.
86 """ Init the module """
94 self.
queue.send(
"init")
97 """ Send start to the connection """
98 self.
queue.send(
"start")
105 """ Send the event number to the connection """
111 if 100 * current_percentage % 5 == 0:
112 self.
queue.send(current_percentage)
117 """ Send stop to the connection """
119 self.
queue.send(
"end")