1) Changing the saving directory of detectorData to the folder tmp under the CVAC_DataDir folder; 2) Adding an error-handling routine when there is no detectorData