4 template <
unsigned int N>
12 template <
unsigned int N>
14 const VertexState & vertexB)
const
22 oldVertexPositionV(0) = inPosition.
x();
23 oldVertexPositionV(1) = inPosition.
y();
24 oldVertexPositionV(2) = inPosition.
z();
27 newVertexPositionV(0) = fnPosition.
x();
28 newVertexPositionV(1) = fnPosition.
y();
29 newVertexPositionV(2) = fnPosition.
z();
34 return ROOT::Math::Similarity(positionResidual, vertexA.weight().matrix_new());
38 template <
unsigned int N>
41 return trackParameterChi2(track->linearizedTrack(), track->refittedState());
45 template <
unsigned int N>
51 typedef ROOT::Math::SMatrix<double,N,N,ROOT::Math::MatRepSym<double,N> > AlgebraicSymMatrixNN;
52 typedef ROOT::Math::SVector<double,N> AlgebraicVectorN;
54 AlgebraicVectorN parameterResiduals = linTrack->predictedStateParameters() -
55 linTrack->refittedParamFromEquation(refittedTrackState);
56 linTrack->checkParameters(parameterResiduals);
58 float lChi2 = ROOT::Math::Similarity(parameterResiduals, linTrack->predictedStateWeight(error));
59 if (error != 0)
return BDpair(
false, -1.);
60 return BDpair(
true, lChi2);
std::pair< bool, double > BDpair
VertexState const & vertexState() const
double vertexChi2(const VertexState &vertexA, const VertexState &VertexB) const
VertexTrack< N >::RefCountedLinearizedTrackState RefCountedLinearizedTrackState
BDpair trackParameterChi2(const RefCountedLinearizedTrackState linTrack, const RefCountedRefittedTrackState refittedTrackState) const
ROOT::Math::SVector< double, 3 > AlgebraicVector3
VertexTrack< N >::RefCountedRefittedTrackState RefCountedRefittedTrackState