Trajectory




This class represents the “trajectory” of a dynamic system (i.e. a particle). It is essentially a collection of reconstructed objects (represented by the class RecObject) each of which is associated to a State (in the most general case the “state” of the system may vary along the trajectory due to random noise processes and systematic effects). Internally the class Node has being introduced to hold a RecObject, the corresponding State and the quantities that relate both objects: the residual, the local quality of the fit (if the trajectory is fitted), etc. At the beginning the Trajectory is just a collection of Nodes, each of which has a RecObject and an empty State. This is called raw trajectory. Once the Trajectory is fitted the State acquires meaningful contents.

A Trajectory inherits from RecObject and extends it with just a length:

// the length of the Trajectory
double length;

Example on how to create a Trajectory.