36 TrackingUtilities::Weight
operator()(
const std::pair<TrackingUtilities::CDCSegment3D, TrackingUtilities::CDCTrajectorySZ>&
37 segmentWithTrajectorySZ,
46 const CDCTrajectorySZ& szTrajectory = segmentWithTrajectorySZ.second;
47 const CDCSegment3D& segment = segmentWithTrajectorySZ.first;
49 float trajectoryZ0 = szTrajectory.getZ0();
50 float trajectoryTanLambda = szTrajectory.getTanLambda();
52 if (std::isnan(trajectoryZ0) or std::isnan(trajectoryTanLambda)) {
56 if (
SameSignChecker::isIn(trajectoryZ0, trajectoryTanLambda, lowerZ0, upperZ0, lowerTanLambda, upperTanLambda)) {
57 return 0.6 * segment.size();