post the code that you use and enclose it in ```, please, so we can read it? I’m not sure how you declare the TTreeReaderArray and how you try to access a value from it.
TTreeReaderArray<floa T = {fReader, "T"};
TTreeReaderValue<Float_t> U = {fReader, "U"};
fReader.SetLocalEntry(entry);
if(fReader.GetEntries(entry)>0)
{
nn->Fill(*T);
nn->Fill(*U);
}
U works fine, but not for T.
This is the error message, I got.
error:indirection requires pointer operand (‘TTreeReaderArray’ invalid)
nn->Fill(*T);
Error in TSelector::GetSelector: The file Energy.C does not define a class named Energy.
Which overload of nn->Fill() is nn->Fill(*T); supposed to call? T “points” to an array; you can access the elements, e.g. T[0] etc; there is no operator* for TTreeReaderArray. We could add it, what would you expect it to return?