Is there any user documentation for TTree::Query? The reference manual does not provide any information on the function arguments (varexp, selection, option), nor is there any explanation of TSQLResult, or the TTreeResult subclass.
What I’m looking for specifically is how can I get the row numbers that were found into the output? TSQLResult::GetRowCount() tells me how many rows matched, but not which ones.
So it’s just the same arguments, but a different kind of output. Interesting! It’d be really cool if the documentation actually said that (see TTree::Query).
Is there any documentation for the contents of the output (TSQLResult or the TTreeResult subclass)? The documentation for those classes have no information about the member functions, let alone about how to interpret (or cast?) the returned values.
For instance, the Next() iterator function returns a TSQLRow* object, but provides no guidance on what that thing might contain, and especially with respect to how its contents relates to the varexp argument to Query().
The “documentation” for TSQLRow* is equally useless. It appears to have an indexing function (TSQLRow::operator()) which is equally undocumented. It returns a const char*; does that mean all of the floating point values get destroyed into few-digit strings? Is there a way to get the actual branch objects back with full precision?
I would have hoped all of this stuff would have been somewhere in the user’s guide, but that documentation appears to be unsearchable from the top level, or from the reference manual