Code for Bs->psi(2S)phi analysis