I am experimenting and playing around with some data, and I'm having trouble seeing how to generate invariant mass plots.
The data I have has a bunch of events, and variables such as $P,P_T,\eta,\phi$ etc.. but no energy. There is a histogram which generates the invariant mass, but no macro provided for this. For example, I know there are tracks for electrons and protons (TPC), and I want to see if there are any pairs as a result of $\gamma\rightarrow e^+ e^-$. Conceptually I need to loop over all positive negative pairs, and plot the histogram. I should get a peak around zero for $\gamma$ pair production. The invariant mass formula is $$m_\gamma^2 = (E_{e^+}+E_{e^-})^2 - (\vec{p}_{e^+}+\vec{p}_{e^-})^2$$
But there is no data for the energy, how do the high energy physicists do it? Do they guess some value for the energy and make plots with that guess?