std::vector< MCTrajectoryPoint >::iterator iterator
iterator definition to allow iteration
ClassDef(MCParticleTrajectory, 1)
Needed to make the ROOT object storable.
void addPoint(float x, float y, float z, float px, float py, float pz)
Add a point to the trajectory.
const MCTrajectoryPoint & back() const
return reference to the last point
iterator begin()
return iterator to the first point
const MCTrajectoryPoint & front() const
return reference to the first point
Class to save the full simulated trajectory of a particle.
void simplify(float distanceTolerance)
Simplify the trajectory using the Ramer-Douglas-Peuker algorithm.
iterator end()
return iterator beyond the last point
std::vector< MCTrajectoryPoint > m_points
Collection of points along the trajectory.
std::vector< MCTrajectoryPoint >::const_iterator const_iterator
const iterator definition to allow iteration
const MCTrajectoryPoint & operator[](size_t index) const
return a point