Chaining a large number of files

From: Philip M Borawski (bphilip@utdallas.edu)
Date: Fri Feb 18 2000 - 22:21:40 MET


Could somebody please post an example of chaining over a large number of
files without having to list each file manually with 

TChain chain("h1");
chain.Add("rootfile1.root");
chain.Add("rootfile2.root");

I am a fairly new C++ and ROOT user and am having difficulty understanding
how to do this efficently...is it easier to write the filenames to a file
and just use C++ to read the strings in or can you use ROOT to read
straight from the directory?  Perhaps with GetListOfFiles?  Any working
example would help me immensely...

Thank you.

-phil



This archive was generated by hypermail 2b29 : Tue Jan 02 2001 - 11:50:19 MET