fix a bug(DetectorType never change)

changed line218 -> line220  
Presentation:
because line 220 give the global variable mDetectorType and in line 230 it will be compared with mDetectorType !!!  it will never be unequal ~
fix:
change mDetectorType(previous global var) to a new local var tmpDetectorType