How to make a TH2D histrogram with a multi-column .txt file

I have a .txt file where the power is in the first column and the x position is in the second column and the y position is in the third column. I want to create a TH2D histogram of the position (x,y) as a function of energy. Can anyone help me?

Maybe a better idea would be to try: TGraph2D

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