move the fftw_plan's to detector class, and saved the trouble of unsafe multi-threading