Hi Ingo,
once you have the chain you could do:
TIter next(myfiles->GetListOfFiles());
TFile *f;
while ((f = (TFile*)next()))
f->UseCache();
Cheers, Fons.
On Mon, 2002-07-22 at 16:41, Ingo Strauch wrote:
> Hi ROOTers!
>
> Is there a way to call TFile::UseCache for all files in a TChain?
>
> I want to do something like this:
>
> TChain myfiles("MyTree");
> myfiles.Add("/path/to/myfiles*.root");
> myfiles.UseCache();
> ...
>
> Cheers,
> Ingo
>
> P.S.: I'm using ROOT 3.02/07 (on Linux)
>
> --
> "What're quantum mechanics?"
> "I don't know. People who repair quantums I suppose."
> --Rincewind, Terry Pratchett "Eric"
--
Org: CERN, European Laboratory for Particle Physics.
Mail: 1211 Geneve 23, Switzerland
E-Mail: Fons.Rademakers@cern.ch Phone: +41 22 7679248
WWW: http://root.cern.ch/~rdm/ Fax: +41 22 7679480
This archive was generated by hypermail 2b29 : Sat Jan 04 2003 - 23:51:00 MET