Hi. Is there a simple way of adding a branch to an existing tree (with branches)? I have a branch that has the values of oncoming particle energies, and I would like, based on those, to compute the cross section and include it in a separate branch. I realize I could just create a new tree, copy the branches from the old tree, and include a branch with cross section values…however is there a simpler way to do this?
Rene, I would like to understand better what you mean by being coherent.
The original root file was produced by geant4 code, and the variable which was used in the tree->Branch("",) declaration was a G4double. Are you saying that root’s Double_t corresponds to G4double? Or is this just a general issue of using a 64bit memory for a 64bit number?