11 if (theTrajectories.empty())
13 if (theTrajectories[0].measurements().size() < 4)
16 for (TempTrajectoryContainer::iterator firstTraj = theTrajectories.begin(), firstEnd = theTrajectories.end() - 1;
17 firstTraj != firstEnd;
19 if ((!firstTraj->isValid()) || (!firstTraj->lastMeasurement().recHit()->isValid()))
29 bool fh2Valid = first_hit2->isValid();
31 for (TempTrajectoryContainer::iterator secondTraj = (firstTraj + 1), secondEnd = theTrajectories.end();
32 secondTraj != secondEnd;
34 if ((!secondTraj->isValid()) || (!secondTraj->lastMeasurement().recHit()->isValid()))
44 if (&(*first_hit3) == &(*second_hit3)) {
45 if (fh2Valid ^ second_hit2->isValid()) {
48 firstTraj->invalidate();
52 secondTraj->invalidate();
58 theTrajectories.erase(
60 theTrajectories.end());