9 result.reserve(hits.size());
10 for(RecHitContainer::const_iterator ihit = hits.begin(); ihit != hits.end();
12 if(!(**ihit).isValid()) result.push_back(*ihit);
13 else if((**ihit).transientHits().size() == 1) result.push_back(*ihit);
16 RecHitContainer sorted =
18 for (RecHitContainer::iterator srt = sorted.begin(); srt != sorted.end(); srt++) {
19 result.push_back(*srt);
35 RecHitContainer
const & hits = aTraj.recHits();
45 const RecHitContainer& hits,
52 return fitter.fitOne(aSeed, result, type);
58 const RecHitContainer& hits,
59 const TSOS& firstPredTsos, fitType type)
const {
65 return fitter.fitOne(aSeed, result, firstPredTsos,type);
PropagationDirection direction() const
bool empty() const
True if trajectory has no measurements.
TrajectorySeed const & seed() const
Access to the seed used to reconstruct the Trajectory.
RecHitContainer sortHits(const RecHitContainer &hits, const PropagationDirection &dir) const
PropagationDirection const & direction() const
RecHitContainer split(const RecHitContainer &hits) const
TrajectoryMeasurement const & firstMeasurement() const