Hi Rutger, In version 2.23, the class TTreeViewer has been moved to a separate library (libTreeViewer.so). This library is not linked by default with the Root executable module. You have the choice between: - link this library at run time via gSystem->Load("libTreeViewer") - add the above statement in your rootlogon.C macro - start the TreeViewer from the root browser by selecting the entry StartViewer in the Tree context menu. Rene Brun Rutger van der Eijk wrote: > > Hi rootters, > > I have a new user here who is following the FNAL tutorials/courses on the > web. In 'Getting started with ROOT' > (http://www-pat.fnal.gov/root/GettingStarted/GettingStarted.htm) one uses > a TTreeViewer to look at a tree. It seems that TTreeViewer is not working > or even present anymore: > > root [0] tv = new TTreeViewer("h21"); > Error: No symbol TTreeViewer in current scope FILE:/tmp/08643baa_cint > LINE:1 > Error: type TTreeViewer not defined FILE:/tmp/08643baa_cint LINE:1 > Warning: Automatic variable tv allocated in global scope > FILE:/tmp/08643baa_cint LINE:1 > Error: Undeclared variable tv FILE:/tmp/08643baa_cint LINE:1 > *** Interpreter error recovered *** > > root [1] .class TTreeViewer > Error: class,struct,union or type TTreeViewer not defined FILE: LINE:0 > *** Interpreter error recovered *** > > I can also not find it on the web page. So I suspect that this class has > been renamed. I seem to remember something like this happend. However I am > myself not used to using these class to view trees because I prefer to > perform the looping myself. Can anybody point out what has changed or what > we are doing wrong? > > We are using: Version 2.23/12 1 February 2000. > > Thanks, > > Rutger van der Eijk & Iouri Gouz
This archive was generated by hypermail 2b29 : Tue Jan 02 2001 - 11:50:20 MET