Renaming branches


I have a ROOT file with hundreds of branches. I would like to create a new file that is a clone of the current file, but with some of the branches renamed (it would be best if I could actually just rename the branches within the current file, but creating a copy is okay as well).

Does anybody know how something like this can be accomplished?

Thanks in advance.

See maybe: [url]Rename Branch