Tracking and vertexing with a thin CMOS pixel beam telescope