TLorentz vector


ROOT Version (5.34/10):
Platform, compiler (gcc 4.6.3):


Hi,
I have two momentum vectors(p1 & p2) and I need to obtain (p1-p2)^2 and (p1+p2)^2. how can I use TLorentz vector .M()? what is the meaning of (p1+p2).M()?

Thanks

Hi,

here you have the code which shows what M and M2 exactly do, it’s just a few lines: https://root.cern.ch/doc/master/TLorentzVector_8h_source.html#l00482

(p1+p2).M() is the norm of the vector resulting from the sum of p1 and p2.

If you do not need 4 momenta, you could also resort to TVector3.

Cheers,
D

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