I have a root file with multiple trees inside.
I want to Snapshot it after I filter some events out.
But I get only filtered main tree in the output, losing filtering of Friend trees.
Hi @FoxWise ,
ah indeed, Snapshot should do this by itself, sorry about that! I think this is a missing feature. Feel free to request better support for Snapshots of branches coming from friends at Issues · root-project/root · GitHub.
As an alternative workaround (what you described would work, of course), passing the names of all branches that you want printed out explicitly to Snapshot should get you also the branches of friend trees in the output (the problem is “just” that Snapshot does not pick them up automatically).
Does an iterative define of (Column, friend.Column) would fix the issue (granted that friend tuples has different column names?) i think i got this working in the past
Yes that is also a workaround but it has a performance cost w.r.t. to the other two methods proposed (namely the cost of evaluating the Defines, even if it’s just a simple copy).