Hi @mzks,
First of all, welcome to the ROOT forum!
Regarding your question, @pcanal might correct me, but I think that there’s no direct way of doing that.
Also, see these two forum topics with more information/suggestions: Comparing ROOT TTrees, and What is the most efficient way to compare the content of two entries in a TTree?.
Cheers,
J.