16 auto hs =
new THStack(
"hs",
"Stacked 1D histograms");
19 auto h1st =
new TH1F(
"h1st",
"test hstack 1", 100, -4, 4);
20 h1st->FillRandom(
"gaus", 20000);
23 auto h2st =
new TH1F(
"h2st",
"test hstack 2", 100, -4, 4);
24 h2st->FillRandom(
"gaus", 15000);
27 auto h3st =
new TH1F(
"h3st",
"test hstack 3", 100, -4, 4);
28 h3st->FillRandom(
"gaus", 10000);
31 auto c1 =
new TCanvas(
"c1",
"THStack drawing on pads", 800, 800);
1-D histogram with a float per channel (see TH1 documentation)
The Histogram stack class.