Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 0 additions & 7 deletions tutorials/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -550,13 +550,6 @@ set(returncode_1 math/fit/fit2a.C
visualisation/graphics/tmathtext.C visualisation/graphics/tmathtext2.C
visualisation/graphs/gr106_exclusiongraph.C
visualisation/graphs/gr016_struct.C
hist/hist102_TH2_contour_list.C
hist/hist006_TH1_bar_charts.C
hist/hist037_TH2Poly_boxes.C
hist/hist060_TH1_stats.C
hist/hist014_TH1_cumulative.C
hist/hist004_TH1_labels.C
hist/hist036_TH2_labels.C
analysis/tree/h1analysis.C
math/chi2test.C
math/r/SimpleFitting.C)
Expand Down
4 changes: 1 addition & 3 deletions tutorials/hist/hist004_TH1_labels.C
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
/// \date November 2024
/// \author Rene Brun

TCanvas *hist004_TH1_labels()
void hist004_TH1_labels()
{
// Create the histogram
const std::array people{"Jean", "Pierre", "Marie", "Odile", "Sebastien", "Fons", "Rene",
Expand Down Expand Up @@ -56,6 +56,4 @@ TCanvas *hist004_TH1_labels()
pt->AddText(" \">\" to sort by decreasing values");
pt->AddText(" \"<\" to sort by increasing values");
pt->Draw();

return c1;
}
8 changes: 3 additions & 5 deletions tutorials/hist/hist006_TH1_bar_charts.C
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
/// \date November 2024
/// \author Rene Brun

TCanvas *hist006_TH1_bar_charts()
void hist006_TH1_bar_charts()
{
// Try to open first the file cernstaff.root in tutorials/io/tree directory
TString filedir = gROOT->GetTutorialDir();
Expand All @@ -28,14 +28,14 @@ TCanvas *hist006_TH1_bar_charts()
auto file = std::unique_ptr<TFile>(TFile::Open(filename, "READ"));
if (!file) {
Error("hist006_TH1_bar_charts", "file cernstaff.root not found");
return nullptr;
return;
}

// Retrieve the TTree named "T" contained in the file
auto tree = file->Get<TTree>("T");
if (!tree) {
Error("hist006_TH1_bar_charts", "Tree T is not present in file %s", file->GetName());
return nullptr;
return;
}
tree->SetFillColor(45);

Expand Down Expand Up @@ -88,6 +88,4 @@ TCanvas *hist006_TH1_bar_charts()
legend->Draw();

c1->cd();

return c1;
}
4 changes: 1 addition & 3 deletions tutorials/hist/hist014_TH1_cumulative.C
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
#include "TCanvas.h"
#include "TRandom.h"

TCanvas *hist014_TH1_cumulative()
void hist014_TH1_cumulative()
{
TH1 *h = new TH1D("h", "h", 100, -5., 5.);
gRandom->SetSeed();
Expand All @@ -37,6 +37,4 @@ TCanvas *hist014_TH1_cumulative()
c->cd(2);
hc->Draw();
c->Update();

return c;
}
3 changes: 1 addition & 2 deletions tutorials/hist/hist036_TH2_labels.C
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
/// \date July 2016
/// \author Rene Brun

TCanvas *hist036_TH2_labels()
void hist036_TH2_labels()
{
const Int_t nx = 12;
const Int_t ny = 20;
Expand Down Expand Up @@ -44,5 +44,4 @@ TCanvas *hist036_TH2_labels()
pt->AddText(" \">\" to sort by decreasing values");
pt->AddText(" \"<\" to sort by increasing values");
pt->Draw();
return c1;
}
3 changes: 1 addition & 2 deletions tutorials/hist/hist037_TH2Poly_boxes.C
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
/// \date August 2016
/// \author Olivier Couet

TCanvas *hist037_TH2Poly_boxes()
void hist037_TH2Poly_boxes()
{
TCanvas *ch2p2 = new TCanvas("ch2p2", "ch2p2", 600, 400);
gStyle->SetPalette(57);
Expand Down Expand Up @@ -44,5 +44,4 @@ TCanvas *hist037_TH2Poly_boxes()
}

h2p->Draw("COLZ");
return ch2p2;
}
3 changes: 1 addition & 2 deletions tutorials/hist/hist060_TH1_stats.C
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
/// \date August 2016
/// \author Olivier Couet

TCanvas *hist060_TH1_stats()
void hist060_TH1_stats()
{
// Create and plot a test histogram with stats
TCanvas *se = new TCanvas;
Expand Down Expand Up @@ -44,5 +44,4 @@ TCanvas *hist060_TH1_stats()
h->SetStats(0);

se->Modified();
return se;
}
5 changes: 2 additions & 3 deletions tutorials/hist/hist102_TH2_contour_list.C
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@

Double_t SawTooth(Double_t x, Double_t WaveLen);

TCanvas *hist102_TH2_contour_list()
void hist102_TH2_contour_list()
{

const Double_t PI = TMath::Pi();
Expand Down Expand Up @@ -91,7 +91,7 @@ TCanvas *hist102_TH2_contour_list()

if (!conts) {
printf("*** No Contours Were Extracted!\n");
return nullptr;
return;
}

TList *contLevel = nullptr;
Expand Down Expand Up @@ -157,7 +157,6 @@ TCanvas *hist102_TH2_contour_list()
printf("\n\n\tExtracted %d Contours and %d Graphs \n", TotalConts, nGraphs);
gStyle->SetTitleW(0.);
gStyle->SetTitleH(0.);
return c1;
}

Double_t SawTooth(Double_t x, Double_t WaveLen)
Expand Down
Loading