7 result.reserve(hits.size());
8 for (RecHitContainer::const_iterator ihit = hits.begin(); ihit != hits.end(); ihit++) {
9 if (!(**ihit).isValid())
10 result.push_back(*ihit);
11 else if ((**ihit).transientHits().size() == 1)
12 result.push_back(*ihit);
16 for (RecHitContainer::iterator srt = sorted.begin(); srt != sorted.end(); srt++) {
17 result.push_back(*srt);
47 const TSOS& firstPredTsos,
52 return fitter.
fitOne(aSeed, result, firstPredTsos, type);
PropagationDirection direction() const
bool empty() const
True if trajectory has no measurements.
TrajectoryStateOnSurface const & predictedState() const
TrajectorySeed const & seed() const
Access to the seed used to reconstruct the Trajectory.
ConstRecHitContainer recHits() const
RecHitContainer sortHits(const RecHitContainer &hits, const PropagationDirection &dir) const
PropagationDirection const & direction() const
void sorter(const RecHitContainer &hits, PropagationDirection dir, RecHitContainer &result) const
RecHitSplitter::RecHitContainer RecHitContainer
RecHitContainer split(const RecHitContainer &hits) const
KFTrajectoryFitter fitter
TrajectoryMeasurement const & firstMeasurement() const
Trajectory fitOne(const Trajectory &aTraj, fitType type) const override
Trajectory fitOne(const Trajectory &aTraj, fitType) const override