13 Int_t mp102_readNtuplesFillHistosAndFit()
21 TChain inputChain(
"multiCore");
22 inputChain.Add(
"mp101_multiCore_*.root");
23 TH1F outHisto(
"outHisto",
"Random Numbers", 128, -4, 4);
24 inputChain.Draw(
"r >> outHisto");
34 const auto nFiles = inputChain.GetListOfFiles()->GetEntries();
39 auto partialHisto =
new TH1F(
"outHistoMP",
"Random Numbers", 128, -4, 4);
41 partialHisto->Fill(*randomRV);
50 auto sumHistogram = workers.ProcTree(inputChain, workItem,
"multiCore");
51 sumHistogram->Fit(
"gaus", 0);
TTreeReader is a simple, robust and fast interface to read values from a TTree, TChain or TNtuple...
THist< 1, float, THistStatContent, THistStatUncertainty > TH1F
tomato 1-D histogram with a float per channel (see TH1 documentation)}
A chain is a collection of files containg TTree objects.