@@ -93,8 +93,11 @@ Ganga does not support ``lbexec``, yet! A workaround has been prepared, as follo
import yaml
from DaVinci import Options
with open("options.yaml", "r") as f:
options = Options(**yaml.safe_loads(f))
print_decay_tree(options) # make sure to rename print_decay_tree to whatever your function is called
options = Options(**yaml.safe_load(f))
with options.apply_binds(): # required as gaudirun.py does not apply binds!
print_decay_tree(options) # make sure to rename print_decay_tree to whatever your function is called
The function `apply_binds()`, a member function of the LbExec `Options` class [https://gitlab.cern.ch/lhcb/LHCb/-/blob/master/GaudiConf/python/GaudiConf/LbExec/options.py](LbExec/options.py), is automatically called when running DaVinci through `lbexec`. When running through `gaudirun.py` the binds must be applied within the DaVinci options, otherwise DaVinci will encounter reconstruction issues.
2. Add ``my_module.py`` to your ``GaudiExec`` application ``options`` list, and ``options.yaml`` to your ``job.inputfiles`` (input sandbox.)