Re: TH1 as TTree branch??
Rene Brun (Rene.Brun@cern.ch)
Mon, 06 Apr 1998 08:42:29 +0200
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