Examples of fits to the invariant-mass distributions in the helicity reference frame. The left plot corresponds to the J/$\psi$ mass region, while on the right a fit to the $\Upsilon(1S)$ mass region is shown. The fits are performed using an extended Crystal Ball function for the resonance signals, while the background is parameterized with a variable width Gaussian.