8 #include "Math/GenVector/AxisAngle.h" 9 #include "Math/GenVector/Rotation3D.h" 10 #include "Math/SMatrix.h" 26 using Point_t = ROOT::Math::PositionVector3D<ROOT::Math::Cartesian3D<Coord_t>,
27 ROOT::Math::GlobalCoordinateSystemTag>;
30 using Vector_t = ROOT::Math::DisplacementVector3D<ROOT::Math::Cartesian3D<Coord_t>,
31 ROOT::Math::GlobalCoordinateSystemTag>;
44 template <
typename To,
typename From>
48 out.reserve(in.size());
53 template <
typename From>
56 std::vector<TVector3> out;
57 out.reserve(in.size());
59 out.push_back(TVector3(i.X(), i.Y(), i.Z()));
62 template <
typename Po
int>
65 return geo::vect::convertTo<Point_t>(p);
67 template <
typename Po
int>
70 return geo::vect::convertCollTo<Point_t>(coll);
72 template <
typename Vector>
75 return geo::vect::convertTo<Vector_t>(p);
77 template <
typename Vector>
80 return geo::vect::convertCollTo<Vector_t>(coll);
104 ROOT::Math::SMatrix<Double32_t, 2, 2, ROOT::Math::MatRepSym<Double32_t, 2>>;
106 ROOT::Math::SMatrix<Double32_t, 3, 3, ROOT::Math::MatRepSym<Double32_t, 3>>;
108 ROOT::Math::SMatrix<Double32_t, 5, 5, ROOT::Math::MatRepSym<Double32_t, 5>>;
110 ROOT::Math::SMatrix<Double32_t, 6, 6, ROOT::Math::MatRepSym<Double32_t, 6>>;
111 using SMatrix65 = ROOT::Math::SMatrix<Double32_t, 6, 5>;
112 using SMatrix56 = ROOT::Math::SMatrix<Double32_t, 5, 6>;
113 using SMatrix55 = ROOT::Math::SMatrix<Double32_t, 5, 5>;
114 using SMatrix66 = ROOT::Math::SMatrix<Double32_t, 6, 6>;
115 using SVector6 = ROOT::Math::SVector<Double32_t, 6>;
116 using SVector5 = ROOT::Math::SVector<Double32_t, 5>;
117 using SVector3 = ROOT::Math::SVector<Double32_t, 3>;
118 using SVector2 = ROOT::Math::SVector<Double32_t, 2>;
A point in the trajectory, with position and momentum.
Reconstruction base classes.
std::vector< Vector_t > convertCollToVector(std::vector< Vector > const &coll)
TrajectoryPoint_t(Point_t pos, Vector_t mom)
Constructor: assigns position and momentum.
Point_t toPoint(Point const &p)
ROOT::Math::SMatrix< Double32_t, 6, 5 > SMatrix65
ROOT::Math::SMatrix< Double32_t, 5, 5, ROOT::Math::MatRepSym< Double32_t, 5 >> SMatrixSym55
ROOT::Math::SMatrix< Double32_t, 6, 6, ROOT::Math::MatRepSym< Double32_t, 6 >> SMatrixSym66
ROOT::Math::SVector< Double32_t, 2 > SVector2
ROOT::Math::SMatrix< Double32_t, 3, 3, ROOT::Math::MatRepSym< Double32_t, 3 >> SMatrixSym33
ROOT::Math::SVector< Double32_t, 6 > SVector6
ROOT::Math::SMatrix< Double32_t, 5, 5 > SMatrix55
ROOT::Math::SMatrix< Double32_t, 2, 2, ROOT::Math::MatRepSym< Double32_t, 2 >> SMatrixSym22
ROOT::Math::DisplacementVector3D< ROOT::Math::Cartesian3D< Coord_t >, ROOT::Math::GlobalCoordinateSystemTag > Vector_t
Type for representation of momenta in 3D space. See recob::tracking::Coord_t for more details on the ...
Utilities to extend the interface of geometry vectors.
Vector_t momentum
momentum at the trajectory [GeV/c].
ROOT::Math::SVector< Double32_t, 3 > SVector3
std::vector< Vector_t > Momenta_t
Type of momentum list.
std::vector< Point_t > convertCollToPoint(std::vector< Point > const &coll)
std::vector< To > convertVec(std::vector< From > const &in)
std::vector< TVector3 > convertVecPointToTVec3(std::vector< From > const &in)
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.
std::tuple< double, double, const reco::ClusterHit3D * > Point
Definitions used by the VoronoiDiagram algorithm.
ROOT::Math::SVector< Double32_t, 5 > SVector5
ROOT::Math::SMatrix< Double32_t, 5, 6 > SMatrix56
ROOT::Math::SMatrix< Double32_t, 6, 6 > SMatrix66
Vector_t toVector(Vector const &p)
ROOT::Math::PositionVector3D< ROOT::Math::Cartesian3D< Coord_t >, ROOT::Math::GlobalCoordinateSystemTag > Point_t
Type for representation of position in physical 3D space. See recob::tracking::Coord_t for more detai...
Point_t position
position in the trajectory [cm].