Dear ROOT experts,
I am using PyROOT with ROOT version 6.12.07 on Linux.
I wrote a script that adds two TChains containing ROOT files with TTrees which differ very slightly in their TBranch content, namely, one is a subset of the other. For explanation purposes, I will just consider the case where one of the chains has a branch missing respective to the other.
Now, when I use the Draw method on the combined chain and use a selection which uses this missing branch, this event appears to be ignored (selection evaluated to False), while the Draw command completes successfully. This is even if the selection contains an ‘OR’ of other True conditions. Is this the intended behaviour?
While I understand that is it dangerous to be adding chains with different branch contents, shouldn’t there be a warning or error that notifies us of this? I was initially not aware of the differing branch contents until I tried to understand the plots that were produced. I believe that this is a rather common situation when using data where triggers were added and removed in between run periods.
I can think of a quick fix where in an extra step I add the missing branches and fill them with zero, but is there a better solution?
Thank you very much for your help!
Best regards,
Mateusz
ROOT Version: 6.12.07
Platform: Linux
Compiler: slc6_amd64_gcc700