ROOT

Pasha Murat (murat@cdfsga.fnal.gov)
Tue, 6 Jan 1998 16:21:53 GMT


Right now ROOT is internally maintaining several lists of objects
(canvases, globals, ... see TROOT::findObject(Text_t *name, void *&where))
which one can use as dictionaries and objects by name from there.
It would also be very helpful if ROOT provided an additional list for storing
user-defined objects which could be used as a dictionary for user
objects, for example:

class TROOT {
...
TSeqCollection *fUserObjects; // List of user objects

TObject *TROOT::FindObject(Text_t *name, void *&where, char option)
...
};

Adding one more parameter (option) to FindObject allows to choose
the list to be searched if it is known (the default should be all lists).
In this case user could conveniently retrieve his objects like :

TUserObject* p = (TUserObject*) gROOT->FindObject(name,where,'u');

Any comments?
Regards, Pasha