8 #include "Math/GenVector/Rotation3D.h" 9 #include "Math/GenVector/AxisAngle.h" 10 #include "Math/SMatrix.h" 45 : position(pos), momentum(mom) {}
49 {
return momentum.Unit(); }
55 using SMatrixSym22 = ROOT::Math::SMatrix<double,2,2,ROOT::Math::MatRepSym<double,2> >;
56 using SMatrixSym33 = ROOT::Math::SMatrix<double,3,3,ROOT::Math::MatRepSym<double,3> >;
57 using SMatrixSym55 = ROOT::Math::SMatrix<double,5,5,ROOT::Math::MatRepSym<double,5> >;
58 using SMatrixSym66 = ROOT::Math::SMatrix<double,6,6,ROOT::Math::MatRepSym<double,6> >;
63 using SVector6 = ROOT::Math::SVector<double,6>;
64 using SVector5 = ROOT::Math::SVector<double,5>;
65 using SVector3 = ROOT::Math::SVector<double,3>;
66 using SVector2 = ROOT::Math::SVector<double,2>;
ROOT::Math::SVector< double, 3 > SVector3
ROOT::Math::DisplacementVector3D< ROOT::Math::Cartesian3D< double >, ROOT::Math::GlobalCoordinateSystemTag > Vector_t
Type for representation of momenta in 3D space.
ROOT::Math::SVector< double, 2 > SVector2
ROOT::Math::SMatrix< double, 5, 5 > SMatrix55
A point in the trajectory, with position and momentum.
Reconstruction base classes.
geo::Point_t Point_t
Type for representation of position in physical 3D space.
TrajectoryPoint_t(Point_t pos, Vector_t mom)
Constructor: assigns position and momentum.
ROOT::Math::SMatrix< double, 5, 5, ROOT::Math::MatRepSym< double, 5 > > SMatrixSym55
ROOT::Math::SVector< double, 6 > SVector6
Definitions of geometry vector data types.
Vector_t momentum
momentum at the trajectory [GeV/c].
geo::Vector_t Vector_t
Type for representation of momenta in 3D space.
ROOT::Math::SMatrix< double, 6, 6 > SMatrix66
ROOT::Math::SVector< double, 5 > SVector5
std::vector< Vector_t > Momenta_t
Type of momentum list.
double Coord_t
Type used for coordinates and values in general.
ROOT::Math::SMatrix< double, 6, 5 > SMatrix65
TrajectoryPoint_t()=default
Default constructor: sets at origin with no momentum.
ROOT::Math::Rotation3D Rotation_t
Type for representation of space rotations.
Vector_t direction() const
Returns the direction of the trajectory (unit vector of the momentum).
std::vector< Point_t > Positions_t
Type of trajectory point list.
ROOT::Math::SMatrix< double, 3, 3, ROOT::Math::MatRepSym< double, 3 > > SMatrixSym33
ROOT::Math::SMatrix< double, 5, 6 > SMatrix56
ROOT::Math::SMatrix< double, 6, 6, ROOT::Math::MatRepSym< double, 6 > > SMatrixSym66
ROOT::Math::PositionVector3D< ROOT::Math::Cartesian3D< double >, ROOT::Math::GlobalCoordinateSystemTag > Point_t
Type for representation of position in physical 3D space.
ROOT::Math::SMatrix< double, 2, 2, ROOT::Math::MatRepSym< double, 2 > > SMatrixSym22
Point_t position
position in the trajectory [cm].