Development of a method to optimize the geometrics of positron emission tomograph