updated detectorXYToGvec function to take all parmeters rather
tan initilaizing them within the function. Trying to avoid pyobject mode

moved the main loop out of detectorXYToGvec to detector_core_loop
a change for numba