Hi @eguiraud
I just replaced TTreeReaderValue with TTreeReaderArray in your snippet.
It give the same result as the RDataFrame. (no segfault but nullptr problem)
TFile f("filename.root");
TTreeReader r("treename", &f);
TTreeReaderArray<TRefArray> rv(r, "Jet.Constituents");
while (r.Next()) {
for (const auto & each : rv) {
testJetCon(each);:
}
}
Cheers,
Seungjin