Re: [ROOT] TFolder: examples? and a bug.

From: Valeri Fine (fine@bnl.gov)
Date: Tue Jun 26 2001 - 16:53:14 MEST


Hello Bret

Please find the example of TDataSet class test. It  shows all things one needs 
to know to work with that class.
This class is simpler that TFolder. It is designed as base class, to be re-used by "inheritance",
and It has been using this way by STAR collaboration for 4 years.
In fact all STAR "base" classes are derived from that.
(see: http://connery.star.bnl.gov/~fine/Publications/Chep2000.ps for further information)

    Hope this helps, Valeri



> Hi Rooters,
> 
> Are there any simple examples using TFolder?  I don't find any in
> test/ or tutorials/.
> 
> 
> Also, TFolder::FindFullPathName(const char*) doesn't handle bogus
> input gracefully (see command [2]):
> 
> 
>   *   Version   3.01/05      25 June 2001   *
> ...
> root [0] TFolder* rf = gROOT->GetRootFolder()
> root [1] rf->FindFullPathName("ROOT Files")
> (const char* 0x404075c0)"//root/ROOT Files"
> root [2] rf->FindFullPathName("blah")
> 
>  *** Break *** segmentation violation
> Root > rf->FindFullPathName("/blah")
> (const char* 0x0)""
> 
> 
> Thanks,
> -Brett.
> 





This archive was generated by hypermail 2b29 : Tue Jan 01 2002 - 17:50:50 MET