Home | News | Documentation | Download

Plotting pion production location


#1

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


#2

It looks like TGraph might be the answer.


#3

Allright thanks, I’ll try using that.