Hi,
Just check the return value of GetIndex:
if (tree->GetIndex()==0) {
// no index yet, let's build it.
}
Cheers,
Philippe
-----Original Message-----
From: owner-roottalk@pcroot.cern.ch
[mailto:owner-roottalk@pcroot.cern.ch]On Behalf Of John Wu
Sent: Friday, August 22, 2003 11:11 AM
To: roottalk@pcroot.cern.ch
Subject: [ROOT] verify existence of an index in TTree file
In a file containing only one TTree, what is the best way to verify
whether an index has been built with BuildIndex ?
John
#################################################################
#################################################################
#################################################################
#####
#####
#####
#################################################################
#################################################################
#################################################################
This archive was generated by hypermail 2b29 : Thu Jan 01 2004 - 17:50:15 MET