16 TCanvas *
c1 =
new TCanvas(
"c1",
"Live update of histograms", 200, 10, 600, 400);
20 auto *
total =
new TH1D(
"total",
"This is the total distribution", 100, -4, 4);
21 auto *
main =
new TH1D(
"main",
"Main contributor", 100, -4, 4);
22 auto *
s1 =
new TH1D(
"s1",
"This is the first signal", 100, -4, 4);
23 auto *
s2 =
new TH1D(
"s2",
"This is the second signal", 100, -4, 4);
26 total->SetMarkerStyle(21);
27 total->SetMarkerSize(0.7);
28 main->SetFillColor(16);
36 for (
int i = 0; i < 10000; i++) {
38 float xs1 =
rng.Gaus(-0.5, 0.5);
39 float xs2 =
rng.Landau(1, 0.15);
57 slider->SetRange(0., 1. * i / 10000.);
ROOT::Detail::TRangeCast< T, true > TRangeDynCast
TRangeDynCast is an adapter class that allows the typed iteration through a TCollection.
static unsigned int total
1-D histogram with a double per channel (see TH1 documentation)
Random number generator class based on M.
A specialized TPad including a TSliderBox object.