Performance and track-based alignment of the upgraded CMS pixel detector