uncomment these 4 lines
please change 'theBestHitOnly' with 'theMaxCand==1'.
where theMaxCand should be taken at construction time from the GroupedCkfTrajectoryBuilder.
also, please put the line above (firstMeasurements) inside the if statement