I have a TTree with many branches. One branch is “special”: I’m using it only to re-index the TTree. After that operation, I’m no longer interested by this “special” branch. In particular, when writing the TTree in a ROOT file, I would like to exclude this “special” branch and not to save it on disk.
I tried to de-activate the branch with SetBranchstatus(). It’s not working.
[quote]I tried to de-activate the branch with SetBranchstatus().[/quote]This is part of the right thing to do.
SetBranchStatus does not (of course) remove the branch from an existing file. Nonetheless, it will indicate to CloneTree that the branch should not be brought forward.
[quote] It’s not working.[/quote]What exactly did you try?