Dear Experts,
Let’s say I have the following:
TTreeReader fReader;
TTreeReaderValue<Bool_t> v1{fReader, "b1"}
TTreeReaderValue<Float_t> v2{fReader, "b2"}
Is there any way to get from fReader
a list with b1
and b2
strings?
Use case scenario:
PROOF is processing a TChain
with a very large number of files, but a few of the TTrees included in those files didn’t have the expected branches, so in that case I’d like to skip the file and inform the user that a file has been skipped. However if I use fReader.SetEntry(nEntry)
(in TSelector::Process
) the process fails and crash. So I’d like to have the option to check that all the branches (large) are contained in the TTree
during TSelector::Init(TTree *tree)
, for that I can use TTree::FindBranch
but as the number of branches is large I’d like to retrieve the list of registered values from fReader
. Is there a way to do that?