Add factory of detector and tracker