Comparing ROOT TTrees

Hello Everyone,

I am trying to compare two TTrees contained within two .root files to determine if they contain the exact same information. They were created with two slightly different software versions and I need to verify that the software changes(mostly optimisations) did not change the output. I suppose one could do this manually by looping through all of the branches and doing comparisons, but these trees have over a hundred branches and I don’t want to do it this way unless I have to. Does ROOT have any built in functionality for comparing TTrees and printing out any differences?

Cheers,

Caleb

Does ROOT have any built in functionality for comparing TTrees and printing out any differences?

Not really. You could run tree->Scan() and pipe the result to a (text) file and compare the result …

Philippe.