How to get Energy Loss of a track

Dear Experts

I tried to get the energy loss of a track in drift chamber, but didn’t found such function, so I summed up the energies deposited of clusters in that track, is this method correct? Should I add binding energy of every collision?
Or, if there is a function to get energy loss…

Yes, that’s correct, the sum of the cluster energies corresponds to the energy deposited by the charged particle.