Re: TH1 as TTree branch??

From: Rene Brun (Rene.Brun@cern.ch)
Date: Mon Apr 06 1998 - 08:42:29 MEST


William J Deninger wrote:
> 
> Does this also apply to classes inheriting TH1F?  (Further modification of
> my analysis code has brought about this question)
> 
> William Deninger
> 
> >
> >> Hello,
> >>
> >> Is it possible to have a TH1F histogram as a data member  in a TTree
> branch?  I remember reading something about this, but I wasn't able to find
> it in root talk previous.

a TH1F object is a TObject.
Any TObject can be a branch. Example of a class with several TObject

class Show : public TObject {
 TNamed    *fNamed;
 TH1F      *fH1;
 TList     *fArrayofPulses;
 TObjArray *fSomeArrayofObjects;


Rene Brun



This archive was generated by hypermail 2b29 : Tue Jan 04 2000 - 00:34:31 MET