When I use the following code:
TFile f("somefile.root")
TFile g("someotherfile.root")
//open two different root file which contain different histograms with
the same name
TH1F h1=*(<dynamic_cast TH1F *>(f.Get("hisname")))
TH1F h2=*(<dynamic_cast TH1F *>(g.Get("hisname")))
//get two different histograms
the I meet some problem:some data member of h2 has been overfilled with h1's data
but if I do
TH1F h2=*(<dynamic_cast TH1F *>(g.Get("hisname")))
TH1F h1=*(<dynamic_cast TH1F *>(f.Get("hisname")))
then it's OK
who can tell me why? Received on Fri Aug 03 2007 - 10:56:20 CEST
This archive was generated by hypermail 2.2.0 : Fri Aug 03 2007 - 23:50:02 CEST