CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
TrajectoryStateClosestToBeamLine.cc
Go to the documentation of this file.
2 
3 
5 {
8 
9  GlobalPoint impactPoint=theFTS.position();
10  AlgebraicVector3 transverseFlightPath(
11  impactPoint.x()-thePointOnBeamLine.x(),impactPoint.y()-thePointOnBeamLine.y(),0.);
12  double length = ROOT::Math::Mag(transverseFlightPath);
13  // Warning: after the transverseFlightPath.Unit() statement, the
14  // transverseFlightPath vector is CHANGED to a UNIT vector.
15  double ipError = sqrt( ROOT::Math::Similarity(transverseFlightPath.Unit(),error) );
16  return Measurement1D (length, ipError);
17 }
18 
CartesianTrajectoryError cartesianError() const
T y() const
Definition: PV3DBase.h:63
ROOT::Math::SMatrix< double, 3, 3, ROOT::Math::MatRepSym< double, 3 > > AlgebraicSymMatrix33
T sqrt(T t)
Definition: SSEVec.h:18
ROOT::Math::SVector< double, 3 > AlgebraicVector3
const AlgebraicSymMatrix66 & matrix() const
GlobalPoint position() const
Covariance3DMatrix rotatedCovariance3D() const
Definition: BeamSpot.cc:78
T x() const
Definition: PV3DBase.h:62