Hello,
I have a ROOT tree with a branch called “detector.energy”. I wanted to transform the branch with some calibration coefficients by using the macro attached and it worked fine.
However, I have another branch which is an array of 16 elements and is called “clover.energy[16]”. I would like to access the individual elements of this branch using a similar macro but I could not figure out how I can access to the individual elements from the array and make a new branch of 16 elements modified with the calibration coefficients.
and whenever you do data->GetEntry() (or GetEvent), all N elements in that entry/event get their values, and you access each as for any array (so you need to copy/etc each one in an entra/nested loop).