CMS 3D CMS Logo

TrajectoryStateClosestToBeamLine.cc
Go to the documentation of this file.
2 
6 
7  GlobalPoint impactPoint = theFTS.position();
8  AlgebraicVector3 transverseFlightPath(
9  impactPoint.x() - thePointOnBeamLine.x(), impactPoint.y() - thePointOnBeamLine.y(), 0.);
10  double length = ROOT::Math::Mag(transverseFlightPath);
11  // Warning: after the transverseFlightPath.Unit() statement, the
12  // transverseFlightPath vector is CHANGED to a UNIT vector.
13  double ipError = sqrt(ROOT::Math::Similarity(transverseFlightPath.Unit(), error));
14  return Measurement1D(length, ipError);
15 }
CartesianTrajectoryError cartesianError() const
GlobalPoint position() const
T x() const
Definition: PV3DBase.h:59
T y() const
Definition: PV3DBase.h:60
T sqrt(T t)
Definition: SSEVec.h:19
Covariance3DMatrix rotatedCovariance3D() const
Definition: BeamSpot.cc:73
ROOT::Math::SVector< double, 3 > AlgebraicVector3
const AlgebraicSymMatrix66 & matrix() const
ROOT::Math::SMatrix< double, 3, 3, ROOT::Math::MatRepSym< double, 3 > > AlgebraicSymMatrix33