30 #include "tbb/task_group.h" 56 auto clusterIter =
treeView->GetClusterIterator();
63 while ((start = clusterIter()) <
treeView->GetEntries()) {
64 end = clusterIter.GetNextEntry();
66 g.run([
this, &
func, start, end]() {
68 tr->SetEntriesRange(start - 1, end);
TTreeReader is a simple, robust and fast interface to read values from a TTree, TChain or TNtuple...
This namespace contains pre-defined functions to be used in conjuction with TExecutor::Map and TExecu...
void Process(std::function< void(TTreeReader &)> func)
Process the entries of a TTree in parallel.
double func(double *x, double *p)
ROOT::TThreadedObject< ROOT::Internal::TTreeView > treeView
! Threaded object with <file,tree> per thread