RE: [ROOT] switched indexes in tree?

From: Philippe Canal (pcanal@fnal.gov)
Date: Mon Jul 07 2003 - 21:42:00 MEST


Hi,

Thanks for reporting this problem.  It has now been fixed in the CVS
repository.

Cheers,
Philippe.

-----Original Message-----
From: owner-roottalk@pcroot.cern.ch
[mailto:owner-roottalk@pcroot.cern.ch]On Behalf Of Yiqun Wang
Sent: Thursday, July 03, 2003 5:08 PM
To: roottalk@pcroot.cern.ch
Subject: [ROOT] switched indexes in tree?


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