55 std::vector<SingleGaussianState1D> pxStates; pxStates.reserve(numb);
56 std::vector<SingleGaussianState1D> pyStates; pyStates.reserve(numb);
57 std::vector<SingleGaussianState1D> pzStates; pzStates.reserve(numb);
58 for ( std::vector<TrajectoryStateOnSurface>::const_iterator ic=
components.begin();
73 mode_Px = pxUtils.mode().mean();
74 mode_Py = pyUtils.mode().mean();
75 mode_Pz = pzUtils.mode().mean();
93 if ( tm.
recHit()->isValid() ) {
94 hitPos = tm.
recHit()->localPosition();
95 hitErr = tm.
recHit()->localPositionError();
103 if ( !collinearFit.
fit(fwdPars,fwdCov,bwdPars,bwdCov,
105 fitParameters,fitCovariance,fitChi2) ) CollFit =
false;
108 double qpIn = fitParameters(0);
109 double sig2In = fitCovariance(0,0);
110 double qpOut = fitParameters(1);
111 double sig2Out = fitCovariance(1,1);
112 double corrInOut = fitCovariance(0,1);
113 double pIn = 1./fabs(qpIn);
114 double pOut = 1./fabs(qpOut);
115 double sig2DeltaP = pIn/qpIn*pIn/qpIn*sig2In - 2*pIn/qpIn*pOut/qpOut*corrInOut +
116 pOut/qpOut*pOut/qpOut*sig2Out;
void computeQpMode(const TrajectoryStateOnSurface tsos, AlgebraicVector5 ¶meters, AlgebraicSymMatrix55 &covariance) const
const LocalTrajectoryParameters & localParameters() const
TrajectoryStateOnSurface theBackwardState
ROOT::Math::SMatrix< double, 6, 6, ROOT::Math::MatRepSym< double, 6 > > ResultMatrix
TrajectoryStateOnSurface forwardPredictedState() const
Access to forward predicted state (from fitter or builder)
bool fit(const TrajectoryMeasurement &tm, ResultVector ¶meters, ResultMatrix &covariance, double &chi2)
Fit for one TM. Return value "true" for success.
ROOT::Math::SMatrix< double, 6, 6, ROOT::Math::MatRepSym< double, 6 > > AlgebraicSymMatrix66
ConstRecHitPointer recHit() const
ROOT::Math::SVector< double, 6 > ResultVector
ROOT::Math::SMatrix< double, 5, 5, ROOT::Math::MatRepSym< double, 5 > > AlgebraicSymMatrix55
static double fitChi2(const CachingVertex< 5 > &vtx)
AlgebraicVector5 vector() const
TrajectoryStateOnSurface updatedState() const
const AlgebraicSymMatrix55 & matrix() const
const LocalTrajectoryError & localError() const
ROOT::Math::SVector< double, 5 > AlgebraicVector5
TrajectoryStateOnSurface theUpdateState
std::vector< TrajectoryStateOnSurface > components() const
TrajectoryStateOnSurface theForwardState
TrajectoryStateOnSurface backwardPredictedState() const
Access to backward predicted state (from smoother)