Hi, After a quick look at your code, it should have worked properly. I will check into it further. > "Warning in <TSelectorDraw::ProcessFillObject>: Not implemented for NSChild" This warning is to be expected, because we did not yet implement the ability for the TBrowser to drill down inside a non-split branch. (and your class has no support for being histogram as an object; as of now, only TBits objects can be histogrammed as objects). 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