set detector position & magnetic field option