16 if (theTrajectories.empty())
return;
17 if (theTrajectories[0].measurements().size()<4)
return;
19 for (TempTrajectoryContainer::iterator firstTraj=theTrajectories.begin(), firstEnd=theTrajectories.end() - 1;
20 firstTraj != firstEnd; ++firstTraj) {
22 if ( (!firstTraj->isValid()) ||
23 (!firstTraj->lastMeasurement().recHit()->isValid()) )
continue;
30 bool fh2Valid = first_hit2->isValid();
32 for (TempTrajectoryContainer::iterator secondTraj = (firstTraj+1), secondEnd = theTrajectories.end();
33 secondTraj != secondEnd; ++secondTraj) {
35 if ( (!secondTraj->isValid()) ||
36 (!secondTraj->lastMeasurement().recHit()->isValid()) )
continue;
43 if ( &(*first_hit3) == &(*second_hit3) ) {
44 if (fh2Valid ^ second_hit2->isValid()) {
48 firstTraj->invalidate();
52 secondTraj->invalidate();
58 theTrajectories.erase(std::remove_if( theTrajectories.begin(),theTrajectories.end(),
61 theTrajectories.end());
TransientTrackingRecHit::ConstRecHitPointer ConstRecHitPointer