Trapped BoseāEinstein condensates in synthetic magnetic field