Hi Heather, The problem appears in TTree::Draw (which is used by BuildIndex). It is a bug in ROOT. You can work around the problem by loading the shared library that defines the class stored in your file before calling BuildIndex. Cheers, Philippe. -----Original Message----- From: owner-roottalk@pcroot.cern.ch [mailto:owner-roottalk@pcroot.cern.ch]On Behalf Of Heather Arrighi Sent: Monday, August 25, 2003 10:57 AM To: roottalk@pcroot.cern.ch Subject: [ROOT] Problem with TTree::BuildIndex Hi, I'm trying to use TTree::BuildIndex with ROOT 3.04.02 on both Windows XP and Redhat Linux 7.2. I have run into a problem - I am trying to build an index using run number and event id. I have 3 types of ROOT files - I can run BuildIndex just fine on 2 of the 3 types. In the 3rd case, I receive a segmentation violation. In the tests I have done, I have only 14 events in my files. Are there any known problems with TTree::BuildIndex? I did a search on roottalk and found little discussion on this method. I have an example ROOT file available via anonymous ftp: ftp-glast.slac.stanford.edu cd glast.u05/examples This directory contains 2 files: digi.root and a text file showing the results I get when I attempt to run TTree::BuildIndex. Thanks, Heather
This archive was generated by hypermail 2b29 : Thu Jan 01 2004 - 17:50:15 MET