Iterator over all objects?

Martin Purschke (purschke@bnl.gov)
Mon, 08 Jun 1998 10:12:11 -0400


Hi,

at some point during a ROOT session I want to selectively store objects
of a certain class to a file (such as all TH1F's or so). I unsuccesfully
tried to ask the gRoot object for all the other objects it knows about.
I can only get the classes, but not a list of all objects. If I had an
Iterator which gives me all objects, I would open a file, then loop over
all the objects, see if it is of the class I'm interested in, and then
call object->Write().
Any hints?

Thanks,
Martin

--
Martin L. Purschke               ;   purschke@bnl.gov
                                 ;   http://www.rhic.bnl.gov/~purschke
                                 ;
Brookhaven National Laboratory   ;   phone: +1-516-344-5244
Physics Department Bldg 510 C    ;   fax:   +1-516-344-3253
Upton, NY 11973-5000             ;
-----------------------------------------------------------------------