17 nPar_((NFreeTrackPar - NFreeVertexPar) *
particles.
size() + NFreeVertexPar),
32 TDecompBK Inverter(
cov_);
33 double det =
cov_.Determinant();
34 if (!Inverter.Decompose()) {
36 <<
"Fit failed: unable to invert SYM gain matrix " << det <<
" \n"
70 TVectorT<double> dalpha = vprime -
val_;
71 double c2 = dalpha * (
cov_inv_ * dalpha);
76 std::vector<TrackParticle> refitParticles;
80 for (
int i = 0;
i < FreeParCov.GetNrows();
i++) {
82 for (
int j = 0;
j < FreeParCov.GetNrows();
j++) {
86 TVectorT<double> TrackPar =
computePar(FreePar);
87 TMatrixTSym<double> TrackCov =
96 return refitParticles;
100 std::vector<LorentzVectorParticle> refitParticles;
113 TMatrixTSym<double> LVCov =
115 refitParticles.push_back(
118 return refitParticles;
125 for (
int i = 0;
i <
par_.GetNrows();
i++) {
127 for (
int j = 0;
j <
par_.GetNrows();
j++) {
174 double v = (2.0 *
kappa * (x *
cos(phi) + y *
sin(phi)));
178 }
else if (
v <= -1.0) {
183 s = 1.0 / (2.0 *
kappa) * arcsinv;
191 for (
int p = 0;
p < nparticles;
p++) {
204 TrackHelixVertexFitter::computedxydz(inpar,
p,
kappa, lam, phi, x, y, z,
s,
dxy,
dz);
214 int np(0), parsize(0);
216 double B = inpar(parsize +
BField0);
221 TrackHelixVertexFitter::computedxydz(inpar,
p,
kappa, lam, phi, x, y, z,
s,
dxy,
dz);
222 double phi1 = 2 *
s *
kappa + phi;
223 double bOverK =
B * (1.0 / fabs(
kappa));
237 int np(0), parsize(0);
239 for (
int p = 0;
p <
np;
p++) {