Tupling a different decay descriptor from Ht2 Line

It would be useful to add to the DaVinci examples an example for the following use case:

One wants to take the line output of an Hlt2 line and run over it a different decay descriptor wrt the one that the line was originally built with. In this example I'd like to take the outputs of the Bds2KSKpPim_LL BnoC line whose decay descriptor is "B0 -> KS0 K+ pi-" . I'd like to take the K+ and pi- from the B to create a K*(892)0, do some combination cuts and tuple the data as B0 -> KS0 K*(892)0(K+ pi-). This was a functionality in R1+2 DaVinci that would be handy to have in R3. Is it possible to add an example for this in the DaVinci examples?

The code for a minimally (non)-working example as a first attempt can be found at /eos/lhcb/user/d/dlancier/example and can be run with:

lb-run -c x86_64_v2-el9-clang16-opt DaVinci/v65r1 lbexec tuple_maker:make_tuple info.yaml

Thanks, Davide

Edited by Davide Lancierini