Plotting pion production location

Hi All,

After trying to use a 2D histogram to plot the production location for pions, I found out that TH2D is probably not the class I should be using to plot this. I was wondering if someone knows how to make a simple plot of the pion production location when the x and y coordinates of all pion production locations are known.

Best,

Loek Meijers

It looks like TGraph might be the answer.

Allright thanks, I’ll try using that.