William J Deninger wrote: > > Hello, > > Is there a method which one can use TNamed inherited objects (such as > TH1F) without assigning a name or title such that it doesn't appear in > any TFile::ls() or TDirectory::ls() lists and isn't serialized out > with TFile::Write()? > > I've created a calorimeter pulse shape class called TWfdPulse which > inherits TH1F. A TCalo class is responsible for filling the TWfdPulse > class "calo pulse". However, the TCalo class must use several > TWfdPulse objects as member variables to find the "calo pulse". How > does one keep the TCalo TWfdPulse data members from appearing in the > TFile when all is serialized out with TFile::Write()? > > Your TCalo class should have a data member being a list (TList, TObjArray,..) of TWfdPulse objects. If calo is an instance of TCalo, then calo->Write(); will write one single key for this TCalo object. The other objects inside calo will not be visible when you list the directory. Rene Brun
This archive was generated by hypermail 2b29 : Tue Jan 04 2000 - 00:34:31 MET