How to access the information of one particle?

I have created a root tree. There are 5 members in the tree and the filled are data of information of particles like mass(A),charge number(z),neutron number(n) and the production cross section(sigma) of them.
The names of branches are na,nz,nn and sigma and error.

Now i’d like to add all the cross sections of particles with the same neutron number. I plot the 2D histogram of “sigma vs nn” with the cut “nn=40”(just as example). How can i get the cross section values of each particle with different charge number and add them up?

I’ve been puzzled for a few days and hope to be helped.

do

tree.Draw("nn","sigma");
Rene

Rene;
3x for your reply.
In the picture i’ve attached. How to get the sigma values of each dot ?
nnsigma.ps (9.9 KB)

See Users Guide or documentation of TTree::Draw at
root.cern.ch/root/html/TTreePlay … DrawSelect
(look at section: “How to obtain more info from TTree::Draw”)

Rene