© 2022 CERN.In July 2018 an optimization run for the proposed charm cross section measurement for SHiP was performed at the CERN SPS. A heavy, moving target instrumented with nuclear emulsion films followed by a silicon pixel tracker was installed in front of the Goliath magnet at the H4 proton beam-line. Behind the magnet, scintillating-fibre, drift-tube and RPC detectors were placed. The purpose of this run was to validate the measurement's feasibility, to develop the required analysis tools and fine-tune the detector layout. In this paper, we present the track reconstruction in the pixel tracker and the track matching with the moving emulsion detector. The pixel detector performed as expected and it is shown that, after proper alignment, a vertex matching rate of 87% is achieved.