Is there a generic way to compare two TTrees containing unsplit cpp classes to see if the two are identical? I want to avoid hard coding in the branches and their data members in order to make it possible for some script to loop over and check. Also some of the branches might be vectors of the cpp classes.
Here are some approaches I am considering but am not aware of how to implement:
Consideration 1) Using GetListOfBranches to loop over the main TTree branches and then using some other function to get the class type of that branch and another function to get a list of all the data members of that class type. If the data member is itself a class with data members, then this process should repeat until one is looping over simple variables.
Consideration 2) Make a script that takes the unplit TTree and copies it with split-level=99. Then one can simply loop over the fully split TTree with GetListOfBranches and compare branches with matching names.
Any suggestions are appreciated.
ROOT Version: v6-14-00
Platform: macOS 10.12.6
Compiler: Apple LLVM version 9.0.0 (clang-900.0.39.2)