20 Overload implementation of the HEPProcess with the correct handling of the path calculation.
23 def __init__(self, result_queue, log_file_name, parameters, path, random_seed=None, max_event=0):
24 """Create a new basf2 calculation process."""
32 super().
__init__(result_queue=result_queue, log_file_name=log_file_name,
33 parameters=parameters)
37 A function to prepare a path with the modules given
in path.
52 Make sure all output by python and or C
is written to the same output file
55 sys.stdout = sys.__stdout__
56 sys.stderr = sys.__stderr__
62 os.dup2(logfile.fileno(), sys.stdout.fileno())
63 os.dup2(logfile.fileno(), sys.stderr.fileno())
67 _basf2.logging.zero_counters()
68 _basf2.logging.add_json()
72 The function given to the process to start the calculation.
73 Do not call by yourself.
74 Resets the logging system, logs onto console
and a file
and sets the queues
75 (the result queue
and the process queue) correctly.
94 from ROOT
import Belle2
108 other_store_array)
in all_arrays])
for i,
109 store_array
in enumerate(store_arrays)])
110 nodes_json = json.dumps(nodes)
111 self.
result_queue.put(
"ipython.dependencies", nodes_json)
static DataStore & Instance()
Instance of singleton Store.
static std::string relationName(const std::string &fromName, const std::string &toName, std::string const &namedRelation="")
Return storage name for a relation between two arrays of the given names.
static std::vector< std::string > list(DataStore::EDurability durability=DataStore::EDurability::c_Event)
Return list of available arrays for given durability.