Hi, Rooters!
I am trying to divert branch ot TClonesArray to separate file:
root [0] TFile * f = new TFile("test.root","new")
root [1] TClonesArray * d = new TClonesArray("TObject",10)
root [2] TTree * t = new TTree("tree","a test")
root [3] TBranch * br = t->Branch("Clones",&d,32000);
root [4] br->SetFile("test.clones.root")
root [5] t->GetBranch("Clones")->GetFileName()
(const char* 0x858a01c)"test.clones.root"
root [6] t->Fill()
(Int_t)4
root [7] t->Write()
(Int_t)761
root [8] .q
Now I am reading back this branch and find, that file = "".
root [0] TFile * f = new TFile("test.root")
root [1] TTree * t = (TTree *) f->Get("tree")
root [2] t->GetBranch("Clones")->GetFileName()
(const char* 0x403ff98c)""
file test.clones.root is not created as well.
What I am doing wrong?
Dmitri
This archive was generated by hypermail 2b29 : Tue Jan 01 2002 - 17:50:40 MET