Skip to content
Snippets Groups Projects
Commit 419a2148 authored by Jamie Gooding's avatar Jamie Gooding :computer: Committed by Patrick Koppenburg
Browse files

Updated ganga workaround for DaVinci

parent 8fa574fc
No related branches found
No related tags found
2 merge requests!1103Draft: Add AnalysisHelpers to DaVinci Stack,!780Updated ganga workaround for DaVinci
......@@ -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.)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment