Hi Jayoung,
A branch of a TTree can in principle be any TObject. But it must be
an object in memory. If your ntuple fits in memory, a TTree branch
may be a pointer to this TTree (use non-split mode).
I do not understand the problem you want to solve with this idea.
Rene Brun
Jayoung Wu wrote:
>
> Hi Rooters,
>
> Can a branch of a tree be a ntuple?
>
> For example,
> TTree *tree = new TTree("EVENT","Event Tree");
> TNtuple *header = new TNtuple("header","EVENT HEADER","evtno:time:type);
>
> How can I define header as a Branch?
> TBranch *branch1 = tree->Branch("Header",...);
>
> ---
> Thanks a lot !
> Jayoung
This archive was generated by hypermail 2b29 : Tue Jan 01 2002 - 17:50:33 MET