19 int imt101_parTreeProcessing()
43 auto myPtHist = ptHist.Get();
44 auto myPzHist = pzHist.Get();
45 auto myPxPyHist = pxpyHist.Get();
47 while (myReader.Next()) {
48 auto tracks = *tracksRV;
49 for (
auto &&track : tracks) {
50 myPtHist->Fill(track.Pt(), 1. / track.Pt());
51 myPxPyHist->Fill(track.Px(), track.Py());
53 myPzHist->Fill(track.Pz());
59 tp.Process(myFunction);
63 auto ptHistMerged = ptHist.Merge();
64 auto pzHistMerged = pzHist.Merge();
65 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.