The active muon shield in the SHiP experiment