Does this also apply to classes inheriting TH1F? (Further modification of my analysis code has brought about this question) William Deninger -----Original Message----- From: Rene Brun <brun@hpbrun.cern.ch> To: William J Deninger <deninger@uiuc.edu> Cc: roottalk <roottalk@hpsalo.cern.ch> Date: Monday, March 09, 1998 3:12 PM Subject: Re: TH1 as TTree branch?? >Yes, you can have a TH1F as a data member in a TBranch. >We give an example in $ROOTSYS/test/Event. >See the list of possibilities at URL: > http://root.cern.ch/root/HowtoWriteTree.html > >Rene Brun > > > >On Mon, 9 Mar 1998, William J Deninger wrote: > >> 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. >> >> //_________________________ >> // header file >> class TRawData >> { >> public: >> TH1F histogram; >> } >> >> //_________________________ >> // Cint >> TRawData *raw = new TRawData; >> TTree *tree = new TTree("traceback","Raw event data"); >> tree->Branch("raw","TRawData",&raw,16000,1); >> >> William J Deninger >> deninger@uiuc.edu >> >> >
This archive was generated by hypermail 2b29 : Tue Jan 04 2000 - 00:34:31 MET