Builtin support for Ntuple Wizard output
In order to make the configuration files produced by the Ntuple Wizard functional in Analysis Productions, we need some parsing code (intended to be included in a future data-package), and there is a little bit of boilerplate code to write as a python options file e.g.:
from Configurables import DaVinci
from AnalysisHelpers.decaytreetuple import configure_dtt
import os, yaml
from pathlib import Path
config_file = Path(os.environ["ANALYSIS_PRODUCTIONS_BASE"]) / "wizardtesting" / "BtoChicKst.yaml"
config = yaml.safe_load(open(config_file, "rb"))
dtt = configure_dtt(config)
DaVinci().UserAlgorithms += [dtt]
I propose adding this to the set of dynamic opts files that Analysis Productions already generates.