19 int imt101_parTreeProcessing()
44 auto myPtHist = ptHist.Get();
45 auto myPzHist = pzHist.Get();
46 auto myPxPyHist = pxpyHist.Get();
48 while (myReader.Next()) {
49 auto tracks = *tracksRV;
50 for (
auto&& track : tracks) {
51 myPtHist->Fill(track.Pt(), 1./track.Pt());
52 myPxPyHist->Fill(track.Px(), track.Py());
54 myPzHist->Fill(track.Pz());
60 tp.Process(myFunction);
64 auto ptHistMerged = ptHist.Merge();
65 auto pzHistMerged = pzHist.Merge();
66 auto pxpyHistMerged = pxpyHist.Merge();
TTreeReader is a simple, robust and fast interface to read values from a TTree, TChain or TNtuple...
A wrapper to make object instances thread private, lazily.
Extracts data from a TTree.
void EnableImplicitMT(UInt_t numthreads=0)
Enable ROOT's implicit multi-threading for all objects and methods that provide an internal paralleli...
A class to process the entries of a TTree in parallel.