What is the most efficient way to compare the content of two entries in a TTree?

Comparing of data in two different files is a little project we would love to have a little help on! The idea is to

  • compare all data members of a TKey's value, recursively, with a given precision (for flowing point values)
  • if the object is a TTree, compare all leaves of the TTree, with a given precision (for flowing point values)

That should be wrapped into a command line tool, rootcmp --rel-precision=1E5 file1.root file2.root file3.root that returns 1 in case there are differences and 0 for equality, and that dumps the differences onto stdout.

So far the idea! :slight_smile: If nobody picks this up by next spring it will likely become a summer student project.

Axel.