Hi Anton,
Currently, you cannot and should not change the name of a branch in a
tree.
SetName should be redefined in TBranch and derivatives.
Rene Brun
Anton Fokin wrote:
>
> Hi rooters,
>
> is it possible to change name of a branch in a tree? I have tryed (before
> writing tree with split level 1 from Event example)
>
> TBranch* Branch = Tree->GetBranch("fNTrack");
> Branch->SetName("Hello");
>
> It doesn't crash and "Hello" branch is acceptable from a root session, but
> Event->GetNTrack() starts to return zero every time I read an event in my
> compiled program.
>
> Is there any trick/recommendations about changing branch names?
>
> Best,
> Anton
This archive was generated by hypermail 2b29 : Tue Jan 02 2001 - 11:50:21 MET