The s quantity is known as the square of the center of mass energy (invariant mass)
As shown earlier, the square of a 4-momentum is
This gives
Similarly, the scalar product of two 4-momentums
In the center of mass frame of reference,
Using the relativistic energy equation