Candle Decay, illustrate a time development of a certain value.
{
auto *hist =
new TH2I(
"hist",
"Decay; probability density; time", 1000, 0, 1000, 20, 0, 20);
for (
int j = 0;
j < 1000000;
j++) {
}
}
hist->SetBarWidth(3);
hist->SetFillStyle(0);
hist->SetFillColor(
kGray);
hist->SetLineColor(
kBlue);
auto *
can =
new TCanvas(
"can",
"Candle Decay", 800, 600);
hist->Draw("violiny(112000000)");
auto *
hist2 =
static_cast<TH2I *
>(hist->Clone(
"hist2"));
hist2->DrawCopy(
"candley2");
}
ROOT::Detail::TRangeCast< T, true > TRangeDynCast
TRangeDynCast is an adapter class that allows the typed iteration through a TCollection.
2-D histogram with an int per channel (see TH1 documentation)
This is the base class for the ROOT Random number generators.
- Author
- Georg Troska
Definition in file hist047_Graphics_candle_decay.C.