Re: [ROOT] [root] Problem with TChain Add function

From: Martijn Schellekens (Martijn.Schellekens@iota.u-psud.fr)
Date: Tue Feb 03 2004 - 11:44:31 MET


Hi Rene,

I found the real "bug"
The Add function of TChain does not take into account the fact that path 
names under windows may use the '\\' character for directory seperation. 
Considering that gSystem->ConcatFileName() does use this notation for 
windows, I came to have my program bugging.

Martijn

A 23:06 02/02/2004 +0100, Rene Brun a écrit :
>Use the PRO version 3.10/02
>
>Rene Brun
>
>On Mon, 2 Feb 2004, Martijn Schellekens wrote:
>
> > Hi rooters,
> >
> > I encountered this problem in my root 3.1/01 windows gdk version
> >  >hello=new TChain("MainData")
> > (class TChain*)0x979c28
> >  >hello->Add("c:/root/maindata_*.root")
> > (Int_t)0
> >  >hello->Add("c:/root/maindata_1.root")
> > (Int_t)1
> >
> > Considering off course that the maindata_1.root file contains a "MainData"
> > TTree.
> > I did not have this problem under Linux
> >
> > What may be the problem?
> >
> > Thanks a lot,
> >
> > Martijn
> >



This archive was generated by hypermail 2b29 : Sun Jan 02 2005 - 05:50:05 MET