19int imt_parTreeProcessing()
32 ROOT::TTreeProcessorMT tp(
"root://eospublic.cern.ch//eos/root-eos/testfiles/tp_process_imt.root",
"events");
43 auto myPtHist = ptHist.Get();
44 auto myPzHist = pzHist.Get();
45 auto myPxPyHist = pxpyHist.Get();
47 while (myReader.Next()) {
48 for (
auto &&track : tracksRA) {
49 myPtHist->Fill(track.Pt(), 1. / track.Pt());
50 myPxPyHist->Fill(track.Px(), track.Py());
52 myPzHist->Fill(track.Pz());
58 tp.Process(myFunction);
62 auto ptHistMerged = ptHist.Merge();
63 auto pzHistMerged = pzHist.Merge();
64 auto pxpyHistMerged = pxpyHist.Merge();
A wrapper to make object instances thread private, lazily.
A class to process the entries of a TTree in parallel.
An interface for reading collections stored in ROOT columnar datasets.
A simple, robust and fast interface to read values from ROOT columnar datasets such as TTree,...
void EnableImplicitMT(UInt_t numthreads=0)
Enable ROOT's implicit multi-threading for all objects and methods that provide an internal paralleli...