Skip to content

Commit 941992e

Browse files
committed
[tutorials] Fix path of tree500_cernbuild.C
1 parent 31cda10 commit 941992e

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

tutorials/hist/hist006_TH1_bar_charts.C

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,18 +11,18 @@
1111

1212
TCanvas *hist006_TH1_bar_charts()
1313
{
14-
// Try to open first the file cernstaff.root in tutorials/tree directory
14+
// Try to open first the file cernstaff.root in tutorials/io/tree directory
1515
TString filedir = gROOT->GetTutorialDir();
16-
filedir += TString("/tree/");
16+
filedir += TString("/io/tree/");
1717
TString filename = "cernstaff.root";
1818
// Note that `AccessPathName` returns 0 (false) on success!
1919
bool fileNotFound = gSystem->AccessPathName(filename);
2020

21-
// If the file is not found try to generate it using the macro tree/cernbuild.C
21+
// If the file is not found try to generate it using the macro io/tree/tree500_cernbuild.C
2222
if (fileNotFound) {
23-
TString macroName = filedir + "cernbuild.C";
23+
TString macroName = filedir + "tree500_cernbuild.C";
2424
if (!gInterpreter->IsLoaded(macroName)) gInterpreter->LoadMacro(macroName);
25-
gROOT->ProcessLineFast("cernbuild()");
25+
gROOT->ProcessLineFast("tree500_cernbuild()");
2626
}
2727

2828
auto file = std::unique_ptr<TFile>(TFile::Open(filename, "READ"));

0 commit comments

Comments
 (0)