5 The main module of the Belle II Analysis Software Framework
14 _is_ipython = hasattr(__builtins__,
'__IPYTHON__')
or 'IPython' in _sys.modules
16 from IPython
import get_ipython
as _get_ipython
18 if hasattr(_ip,
"kernel"):
20 logging.enable_python_logging =
True
22 logging.enable_summary(
False)
25 def process(path, max_event=0):
27 Start processing events using the modules in the given `basf2.Path` object.
29 Can be called multiple times in one steering file (some restrictions apply:
30 modules need to perform proper cleanup & reinitialisation, if Geometry is
31 involved this might be difficult to achieve.)
33 This is a convenience wrapper which will automatically call the
34 `process()` function in a separate process using `hep_ipython_tools`
37 path: The path with which the processing starts
38 max_event: The maximal number of events which will be processed, 0 for no limit
41 a `hep_ipython_tools.calculation.Calculation` object
45 calculation = _handler.process(path, max_event=max_event)
47 calculation.wait_for_end()
48 calculation.show_log()