[ROOT] switched indexes in tree?

From: Yiqun Wang (yqwang@rcf.rhic.bnl.gov)
Date: Fri Jul 04 2003 - 00:08:12 MEST


Hi, ROOTers:

I have a strange problem. After I filled a tree using my own class, I
found out that TTree::Draw used switched indexes. I am using version
3.05.05 on a Mandrake 9.1 (gcc 3.2.2).

I have attached a tar file. Here is how to reproduce the problem:

1. Untar the file in an empty directory.
2. make all
3. ./run
4. root
5. under root, execute each line in file "test.C"

You see "tr->Draw("ns[40].adc[2]");" works, but in my header file I only
define ns[3], but adc[49]. "tr->Draw("ns[1].adc[40]");" tells me that my
second index is out of bound (maximum is 2). Should be other way around.

Incidently, I open a TBrower, and navigate to the leaf "ns[3]". If I then
click on it to draw the first element (I think), I get multiple lines of

"Warning in <TSelectorDraw::ProcessFillObject>: Not implemented for NSChild"

Did I do something wrong when I fill the tree? Did I define the class right?

Thanks!

Yiqun Wang






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