12from ROOT
import Belle2
20 A small module to catch the content of the store array for some events
and store them
in the queue.
25 Create the module with the given queue.
39 Get the total number of events from C++
45 Store the current content of the store array into the internal list.
50 event_store_content_list = []
52 for store_array_name
in registered_store_arrays:
54 event_store_content_list.append(
StoreContent(store_array_name, len(store_array)))
56 for store_array_name
in registered_store_objects:
57 event_store_content_list.append(
StoreContent(store_array_name, 0))
64 Write the store array content into a list for later.
73 if 100 * current_percentage % 10 == 0:
80 Write the store array contents from the events to the queue.
88 A small module that prints every now and then the event number to the given connection.
89 It
is used
for status viewers. Do
not call it by yourself.
93 """ Init the module """
101 self.
queue.send(
"init")
104 """ Send start to the connection """
105 self.
queue.send(
"start")
112 """ Send the event number to the connection """
118 if 100 * current_percentage % 5 == 0:
119 self.
queue.send(current_percentage)
124 """ Send stop to the connection """
126 self.
queue.send(
"end")
static Environment & Instance()
Static method to get a reference to the Environment instance.
A (simplified) python wrapper for StoreArray.
static std::vector< std::string > list(DataStore::EDurability durability=DataStore::EDurability::c_Event)
Return list of available arrays for given durability.
static std::vector< std::string > list(DataStore::EDurability durability=DataStore::EDurability::c_Event)
Return list of available objects for given durability.
basf2 (Belle II Analysis Software Framework) # Author: The Belle II Collaboration # # See git log for...