Using TSelector for trees with different branches

Hi Root experts,

I would like to use MakeSelector on a TChain, which is made of root
files which might differ in few branches.

I already have a SafeSetBranchAdress function to avoid setting a branch
might not exist in a particular root-file. So this is not an issue.

After trying to do so, the Selector.h file does not contain the combination
of all the branches of every root-file, which is what I was expecting.

So I wonder, does the MakeSelector only configures the branches are
present in all the root-files ?


Hi Nicolas,

MakeSelector (and MakeClass) will only generate the code for the set of branches present in the first file of a TChain.