Candle Decay, illustrate a time development of a certain value.
void candledecay()
{
TH2I *h1 =
new TH2I(
"h1",
"Decay",1000,0,1000,20,0,20);
float myRand;
for (int i = 0; i < 17; i++) {
for (int j = 0; j < 1000000; j++) {
myRand = rand->
Gaus(350+i*5,5+5*i);
}
}
h1->
Draw(
"violiny(12000000)");
}
- Author
- Georg Troska
Definition in file candledecay.C.