I’m trying to run over only a subset of the tree using TTreeReader tr, then setting its range. I believe it should be an argument to the function myFunction, using the syntax
tp.Process(myFunction(tr));
but this syntax doesn’t work. I’m not familiar with this part of C++, and am probably reading this incorrectly, but don’t know how to properly google this. What would be the correct way to do this?
Thanks.
ROOT Version: Not Provided Platform: Not Provided Compiler: Not Provided
When printing things out, it still appears to try to loop through the entire file, or at least, when trying to run on one event (start = 0, end = 1) will print out many many lines, likely the size of the tree. Here a portion of the output
TTreeProcessorMT wraps your processing function and sets the ranges behind the scenes to prepare the chunks of work to feed the runtime with.
The solution one may try out if you are interested in a particular set of entries, contiguous or not, is to use a TEntryList