Follow-up from "Add example for use of own and unbiased PV with DTF"
Currently the proposed method to get an unbiased PV for a particle is to create a new particle using the 'ParticleUnbiasedPVAdder' algorithm. See the example here:
FunTuple allows to create different branches for a particle using different 'DTF' refits. However, the particles with unbiased PVs are actually new particles, copies of the particles in the original list. Hence, one cannot add the 'DTF' information with the unbiased PVs to the same ntuple as eventual other DTF refits (or other branches).
The solution, chosen in the example, is to create two ntuples. These can then be linked for instance using 'TTree::AddFriend'. (I checked that this works on the output of the test.) The question is if there is a different solution which we can somehow write the information to the same TTree.
That is what started this issue, but the more I think about it, the less important it seems :-)
Adding @erodrigu and @amathad for comments.
(cc @sesen, @avilla, @sperazzi)
See original discussion in merge request: !1035 (comment 7654412)