From 68d6ef565cd5ec4f2d69af0215558913a4a60f0f Mon Sep 17 00:00:00 2001 From: Monica Dessole Date: Tue, 3 Dec 2024 16:39:51 +0100 Subject: [PATCH] Update tree tutorials path --- root/treeformula/string/execDrawString.C | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/root/treeformula/string/execDrawString.C b/root/treeformula/string/execDrawString.C index e470d7f943..0fd46ec306 100644 --- a/root/treeformula/string/execDrawString.C +++ b/root/treeformula/string/execDrawString.C @@ -26,12 +26,12 @@ TFile *cernbuild(Int_t get=0) { // if the argument get =1 return the file "cernstaff.root" // if the file does not exist, it is created if (!gSystem->AccessPathName("cernstaff.root",kFileExists)) { - hfile = TFile::Open("cernstaff.root"); //in $ROOTSYS/tutorials/tree + hfile = TFile::Open("cernstaff.root"); //in $ROOTSYS/tutorials/io/tree if (hfile) return hfile; } } //no cernstaff.root file found. Must generate it ! - //generate cernstaff.root in $ROOTSYS/tutorials/tree if we have write access + //generate cernstaff.root in $ROOTSYS/tutorials/io/tree if we have write access if (!gSystem->AccessPathName(".",kWritePermission)) { //otherwise generate cernstaff.root in the current directory } else { @@ -63,7 +63,7 @@ TFile *cernbuild(Int_t get=0) { fclose(fp); delete hfile; if (get) { - //we come here when the script is executed outside $ROOTSYS/tutorials/tree + //we come here when the script is executed outside $ROOTSYS/tutorials/io/tree hfile = TFile::Open(filename); return hfile; }