a problem in reading TFile

From: Zhijun Liang <Zhijun.Liang_at_cern.ch>
Date: Wed, 11 Oct 2006 15:29:21 +0200

hi :
I found a problem in reading TFile
I want to read a object from a root file ,but meet some error . here is the code :
{
TFile f("hsimple.root")
TH1F *hist=(TH1F *) f->Get("hpx"))
TH1F *hpx1=hpx->Clone("hpx")
f.Close()
hist->Draw()
}

and the "hsimple.root " is from tutorial directory. error information appears

do you know what is the problem ?
thank you
best regards
Liang Received on Wed Oct 11 2006 - 15:29:28 MEST

This archive was generated by hypermail 2.2.0 : Mon Jan 01 2007 - 16:32:01 MET