add function to calculate correlation function in the out-side plane and along q_long axis