12 if (theTrajectories.empty())
14 if (theTrajectories[0].measurements().size() < 4)
17 for (TempTrajectoryContainer::iterator firstTraj = theTrajectories.begin(), firstEnd = theTrajectories.end() - 1;
18 firstTraj != firstEnd;
20 if ((!firstTraj->isValid()) || (!firstTraj->lastMeasurement().recHit()->isValid()))
30 bool fh2Valid = first_hit2->isValid();
32 for (TempTrajectoryContainer::iterator secondTraj = (firstTraj + 1), secondEnd = theTrajectories.end();
33 secondTraj != secondEnd;
35 if ((!secondTraj->isValid()) || (!secondTraj->lastMeasurement().recHit()->isValid()))
45 if (&(*first_hit3) == &(*second_hit3)) {
46 if (fh2Valid ^ second_hit2->isValid()) {
49 firstTraj->invalidate();
53 secondTraj->invalidate();
59 theTrajectories.erase(
61 theTrajectories.end());