Skip to content

Commit

Permalink
[skip-ci] some tutorials moved #17632
Browse files Browse the repository at this point in the history
  • Loading branch information
couet authored Feb 5, 2025
1 parent 1c82935 commit 866a92c
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 33 deletions.
60 changes: 30 additions & 30 deletions tutorials/legacy/benchmarks.C
Original file line number Diff line number Diff line change
Expand Up @@ -32,41 +32,41 @@ void benchmarks() {
dir.ReplaceAll("benchmarks.C","");
dir.ReplaceAll("/./","/");
dir.ReplaceAll("legacy","");
bench1 = new TCanvas("bench1","Benchmarks Summary",-1000,50,200,500);
bench1 = new TCanvas("bench1","Benchmarks Summary",-1000,50,250,500);
TPaveText *summary = new TPaveText(0,0,1,1);
summary->SetTextAlign(12);
summary->SetTextSize(0.08);
summary->SetTextSize(0.06);
summary->Draw();
summary->AddText(" graphics/framework.C");
summary->AddText(" visualisation/graphics/framework.C");
summary->AddText(" hsimple.C");
summary->AddText(" hist/hsum.C");
summary->AddText(" graphics/formula1.C");
summary->AddText(" hist/fillrandom.C");
summary->AddText(" fit/fit1.C");
summary->AddText(" hist/h1ReadAndDraw.C");
summary->AddText(" graphs/gr001_simple.C");
summary->AddText(" graphs/gr002_errors.C");
summary->AddText(" graphics/tornado.C");
summary->AddText(" graphics/surfaces.C");
summary->AddText(" graphs/gr303_zdemo.C");
summary->AddText(" geom/geometry.C");
summary->AddText(" geom/na49view.C");
summary->AddText(" tree/ntuple1.C");
summary->AddText(" hist/hist007_TH1_liveupdate.C");
summary->AddText(" visualisation/graphics/formula1.C");
summary->AddText(" hist/hist001_TH1_fillrandom.C");
summary->AddText(" math/fit/fit1.C");
summary->AddText(" hist/hist015_TH1_read_and_draw.C");
summary->AddText(" visualisation/graphs/gr001_simple.C");
summary->AddText(" visualisation/graphs/gr002_errors.C");
summary->AddText(" visualisation/graphics/tornado.C");
summary->AddText(" visualisation/graphics/surfaces.C");
summary->AddText(" visualisation/graphs/gr303_zdemo.C");
summary->AddText(" visualisation/geom/geometry.C");
summary->AddText(" visualisation/geom/na49view.C");
summary->AddText(" io/tree/tree120_ntuple.C");
summary->AddText(" ");
bexec(dir,"graphics/framework.C");
bexec(dir,"visualisation/graphics/framework.C");
bexec(dir,"hsimple.C");
bexec(dir,"hist/hsum.C");
bexec(dir,"graphics/formula1.C");
bexec(dir,"hist/fillrandom.C");
bexec(dir,"fit/fit1.C");
bexec(dir,"hist/h1ReadAndDraw.C");
bexec(dir,"graphs/gr001_simple.C");
bexec(dir,"graphs/gr002_errors.C");
bexec(dir,"graphics/tornado.C");
bexec(dir,"graphics/surfaces.C");
bexec(dir,"graphs/gr303_zdemo.C");
bexec(dir,"geom/geometry.C");
bexec(dir,"geom/na49view.C");
bexec(dir,"tree/ntuple1.C");
bexec(dir,"hist/hist007_TH1_liveupdate.C");
bexec(dir,"visualisation/graphics/formula1.C");
bexec(dir,"hist/hist001_TH1_fillrandom.C");
bexec(dir,"math/fit/fit1.C");
bexec(dir,"hist/hist015_TH1_read_and_draw.C");
bexec(dir,"visualisation/graphs/gr001_simple.C");
bexec(dir,"visualisation/graphs/gr002_errors.C");
bexec(dir,"visualisation/graphics/tornado.C");
bexec(dir,"visualisation/graphics/surfaces.C");
bexec(dir,"visualisation/graphs/gr303_zdemo.C");
bexec(dir,"visualisation/geom/geometry.C");
bexec(dir,"visualisation/geom/na49view.C");
bexec(dir,"io/tree/tree120_ntuple.C");
bexec(dir,"legacy/rootmarks.C");
}
4 changes: 1 addition & 3 deletions tutorials/visualisation/graphics/tornado.C
Original file line number Diff line number Diff line change
Expand Up @@ -53,16 +53,14 @@ void tornado()
pm3d->Draw();
}

char timeStr[60];
gBenchmark->Show("tornado");

Float_t ct = gBenchmark->GetCpuTime("tornado");
sprintf(timeStr, "Execution time: %g sec.", ct);

TPaveText *text = new TPaveText(0.1, 0.81, 0.9, 0.97);
text->SetFillColor(42);
text->AddText("ROOT example: tornado.C");
text->AddText(timeStr);
text->AddText(Form("Execution time: %g sec.", ct));
text->Draw();
sky->Update();
}

0 comments on commit 866a92c

Please sign in to comment.