RE: [ROOT] getting filenames from TChain

From: Philippe Canal (pcanal@fnal.gov)
Date: Thu Jun 26 2003 - 21:52:46 MEST


hi Richard,

You can just use TChain::GetListOfFiles.

The Add with wildcard does not sort the files, it reads in the order
returned by the OS (same order has iterating through the
TSystem::GetdirEntry.

Cheers,
Philippe.


 -----Original Message-----
From: owner-roottalk@pcroot.cern.ch [mailto:owner-roottalk@pcroot.cern.ch]On
Behalf Of Dubois, Richard
Sent: Thursday, June 26, 2003 12:12 PM
To: 'Root Discussion'
Subject: [ROOT] getting filenames from TChain


 We are chaining together 3 parallel sets of Root files; they are named like
mc0nnn, digi0nnn, recon0nnn. In this case we have 200 files of each brand.
We assumed they would be chained by wildcard in alphanumeric order, but for
some reason the mc files are not, screwing up our synching of the files. We
did check that the sum of events is the same in all three streams.

 I have not been able to figure out how to get at the list of filenames that
TChain uses. How does one do that? Then I could verify the order we're
seeing...

 Is it correct that the sorting is alphanumeric by filename?

Thanks,

Richard
--
Richard Dubois
Stanford Linear Accelerator Center
Stanford, CA
650-926-3824
650-926-8616 (FAX)
http://www.slac.stanford.edu/~richard



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