hi - wouldn't a TClonesArray of
class B{
float x;
float y;
float z;
};
things solve your problem?
-best, pasha
Peter Steinberg wrote:
>
> Hi -
>
> Is it straightforward to have variable-length branches
> in a TTree? I would like to have functionality a la HBOOK
> CWN's, i.e. a branch which has a leaflist like:
>
> "N:x[N]/F:y[N]/F:z[N]/F" etc.
>
> where i point the branch to a structure defined somewhere:
>
> {
> Int_t N;
> Float_t x[32];
> Float_t y[32];
> Float_t z[32];
> }
>
> The point is that when I set N to 10, then only 10 x,y,z's will be
> filled in.
>
> I am somewhat of a novice with trees, so this may be simple, but
> i have been unable to make anything work.
>
> Regards,
> Peter
>
> ---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
> Dr. Peter A. Steinberg Brookhaven National Laboratory
> Assistant Scientist Bldg 555, Upton NY, 11973
> ---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
> Office: 631-344-4390 mailto:Peter.Steinberg@bnl.gov
> Mobile: 917-549-3094 http://www.rhic.bnl.gov/~steinber
> --> E-mail my cell phone (100 chars max): steinber@steinberg.chm.bnl.gov <--
> ---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
This archive was generated by hypermail 2b29 : Tue Jan 02 2001 - 11:50:27 MET