11 if(aTraj.
empty())
return std::vector<Trajectory>();
17 RecHitContainer hits = aTraj.
recHits();
19 result.reserve(hits.size());
20 for(RecHitContainer::iterator ihit = hits.begin(); ihit != hits.end();
22 if(!(**ihit).isValid()) result.push_back(*ihit);
23 else if((**ihit).transientHits().size() == 1) result.push_back(*ihit);
26 RecHitContainer sorted =
28 for (RecHitContainer::iterator srt = sorted.begin(); srt != sorted.end(); srt++) {
29 result.push_back(*srt);
42 const TSOS& firstPredTsos)
const {
45 result.reserve(hits.size());
46 for(RecHitContainer::const_iterator ihit = hits.begin(); ihit != hits.end();
48 if(!(**ihit).isValid()) result.push_back(*ihit);
49 else if((**ihit).transientHits().size() == 1) result.push_back(*ihit);
54 for (RecHitContainer::iterator srt = sorted.begin(); srt != sorted.end(); srt++) {
55 result.push_back(*srt);
PropagationDirection direction() const
bool empty() const
True if trajectory has no measurements.
TransientTrackingRecHit::ConstRecHitContainer RecHitContainer
TrajectorySeed const & seed() const
Access to the seed used to reconstruct the Trajectory.
virtual std::vector< Trajectory > fit(const Trajectory &aTraj) const
RecHitContainer sortHits(const RecHitContainer &hits, const PropagationDirection &dir) const
ConstRecHitContainer recHits(bool splitting=false) const
PropagationDirection const & direction() const
virtual std::vector< Trajectory > fit(const Trajectory &aTraj) const
RecHitContainer split(const RecHitContainer &hits) const
TrajectoryStateOnSurface predictedState() const
TrajectoryMeasurement const & firstMeasurement() const
Trajectory::RecHitContainer RecHitContainer