Hi Root people,
I can't seem to get cd() to work. The code below, when
compiled using the compiler that comes with v2.22, on a linux box causes a
segmentation violation, and its the cd(event.root:/RECONSTRUCT); line that
is at fault.
if (!file) {
file = new TFile("event.root");
file->ls();
cout<<"here we go"<<endl;
file->cd("event.root:/RECONSTRUCT");
}//if
This is most strange because the output of the ls() line above is:
TFile** event.root
TFile* event.root
KEY: TDirectory SCRATCH;1 SCRATCH
KEY: TDirectory KP0;1 KP0
.
.
KEY: TDirectory RECONSTRUCT;1 RECONSTRUCT
KEY: TDirectory KKP;1 KKP
.
.
.
so the RECONSTRUCT directory certainly exists....
Is there a work around so that I can get into the directory?
cheers
Mat Martin
This archive was generated by hypermail 2b29 : Tue Jan 04 2000 - 00:43:40 MET