Calculate mean pt

Dear all
I’m working on charge particle spectra and facing difficulties in calculating the mean pt of particles. i have the pt spectra of charge particles but i have no idea how to calculate mean pt.
it will be really appreciable if some expert may help me.

thanks
best regards

If you have a “pt” histogram, you can simply use: histo->GetMean()

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.