Hello everyone! I am facing a small problem in updating my values in a loop.
My aim is to get Kinetic energy in the end. The equation I have used is KE = Total E- mass.
The mass is a constant variable. The total energy (Total E) is in a TTree, so I need to access the values from the TTree and need to subtract mass from each entry. The total energy in TTree is labelled as DM_e. My code is yielding only 1 value. I am attaching the snippet of my code for clarity.