Hi Pasha, I am aware of this restriction. TChain::Add accepts file names of the general type //system/dir1/dir2/root_filename/root_subdir/tree_name where system may be hpss, rfio, globus, etc, dir1, dir2 are system directories (that may have dots), The root_filename may also have more than one dot. A root_subdir may be specified (more than one level) and also have dots. The tree_name may also have dots. I agree that in the majority of cases, the name will only be something like: myfile.extension and in this case or the case where there is only one dot in the name, the restriction could be removed. I will investigate. Rene Brun On Fri, 9 Feb 2001, Pasha Murat (630)840-8237@169G wrote: > Dear ROOTers, > > trying to create a chain of several ROOT files I hit the following naming > problem (I'm using ROOT v3.02): > > root [0] TChain* chain = new TChain("STNTUPLE"); > root [1] chain->Add("/cdf/data08/muon/aa019482.stntuple"); > Error in <TChain::AddFile>: a chain element name must contain the string .root > > If I'm reading the diagnostics right, it that one can't chain the files with the > extention different from .root. If so, I'm wondering if there is a real reason to > having such a restriction? > thanks, Pasha >
This archive was generated by hypermail 2b29 : Tue Jan 01 2002 - 17:50:36 MET