4 template <
unsigned int N>
9 template <
unsigned int N>
17 oldVertexPositionV(0) = inPosition.
x();
18 oldVertexPositionV(1) = inPosition.
y();
19 oldVertexPositionV(2) = inPosition.
z();
22 newVertexPositionV(0) = fnPosition.
x();
23 newVertexPositionV(1) = fnPosition.
y();
24 newVertexPositionV(2) = fnPosition.
z();
28 return ROOT::Math::Similarity(positionResidual, vertexA.
weight().
matrix());
31 template <
unsigned int N>
33 return trackParameterChi2(
track->linearizedTrack(),
track->refittedState());
36 template <
unsigned int N>
39 typedef ROOT::Math::SMatrix<double, N, N, ROOT::Math::MatRepSym<double, N> > AlgebraicSymMatrixNN;
40 typedef ROOT::Math::SVector<double, N> AlgebraicVectorN;
42 AlgebraicVectorN parameterResiduals =
43 linTrack->predictedStateParameters() - linTrack->refittedParamFromEquation(refittedTrackState);
44 linTrack->checkParameters(parameterResiduals);
46 float lChi2 = ROOT::Math::Similarity(parameterResiduals, linTrack->predictedStateWeight(
error));
49 return BDpair(
true, lChi2);
std::pair< bool, double > BDpair
VertexState const & vertexState() const
double vertexChi2(const VertexState &vertexA, const VertexState &VertexB) const
GlobalWeight weight() const
const AlgebraicSymMatrix33 matrix() const
BDpair trackParameterChi2(const RefCountedLinearizedTrackState linTrack, const RefCountedRefittedTrackState refittedTrackState) const
ROOT::Math::SVector< double, 3 > AlgebraicVector3
GlobalPoint position() const