Is there some simple method to rewrite some branches in the root
file (if for example I want to convert variable from MeV to GeV ) ?
I tried myself , but It seems that I don’t know how to correctly remove branch from the tree (programme crashes due to memory problems).
thanks , alexey
You can not really remove an existing branch from an existing TTree. Instead we recommend that you partially clone the TTree and replace the value you need to be replaced. See $ROOTSYS/tutorials/tree/copytree*.C