[ROOT] Int_t TChain::Add(const char *name, Int_t nentries)

From: Yiqun Wang (yqwang@rcf.rhic.bnl.gov)
Date: Sat Jul 26 2003 - 23:53:12 MEST


Hi, Rooters:

There is problem in "Int_t TChain::Add(const char *name, Int_t nentries)"
for the latest root_v3.05.07. I use Mandrake 9.1, and compiled 3.05.07
from source
(the one before "root_v3.05.07.source.tar.gz. . . Jul 25 21:44   9737k"
worked fine, but not the lastest one).

Attached please find three macros. "fillTree.C" to fill the tree and write
to a root file. Then run "chainTest_1.C" and you get "Error in
<TChain::LoadTree>: cannot find tree with name h in file aaa_0001.root".
Interestingly, macro "chainTest_2.C" (which is the same as "chainTest_1.C"
except that it calls "TChain::AddFile(..)") works.

Yiqun Wang








This archive was generated by hypermail 2b29 : Thu Jan 01 2004 - 17:50:14 MET