18 x[
Z0] = l1track3D.
z0();
28 double rInv =
x[
INVR];
29 double phi0 =
x[
PHI0];
31 for (
unsigned i = 0;
i <
stubs_.size();
i++) {
35 D(
j,
INVR) = -0.5 * ri * ri;
47 double width = 0.5 *
stubs_[
i]->trackerModule()->sensorWidth();
48 double nstrip = 0.5 *
stubs_[
i]->nStrips();
50 double Deltai =
width * (
iphi - nstrip) / nstrip;
53 double DeltaiOverRi = Deltai / ri;
54 double theta0 = DeltaiOverRi + (2. / 3.) * DeltaiOverRi * DeltaiOverRi * DeltaiOverRi;
56 double phi_track = phi0 - 0.5 * rInv * ri;
60 D(
j,
INVR) = -1 * ri * ri * ri * rInv;
66 D(
j,
INVR) = -0.5 * ri * ri;
68 D(
j,
T) = ri * 0.5 * rInv * ri * tInv - ((phi_track - phii) - theta0) * ri * tInv;
69 D(
j,
Z0) = ri * 0.5 * rInv * tInv - ((phi_track - phii) - theta0) * tInv;
83 for (
unsigned i = 0;
i <
stubs_.size();
i++) {
84 double sigmaPerp =
stubs_[
i]->sigmaPerp();
85 double sigmaPar =
stubs_[
i]->sigmaPar();
87 sigmaPerp =
sqrt(sigmaPerp * sigmaPerp + sigmaScat * sigmaScat * ri * ri);
89 Vinv(2 *
i, 2 *
i) = 1 / sigmaPerp;
90 Vinv(2 *
i + 1, 2 *
i + 1) = 1 / sigmaPar;
92 Vinv(2 *
i, 2 *
i) = 1 / sigmaPar;
93 Vinv(2 *
i + 1, 2 *
i + 1) = 1 / sigmaPerp;
102 unsigned int n =
stubs_.size();
106 double rInv =
x[
INVR];
107 double phi0 =
x[
PHI0];
119 for (
unsigned int i = 0;
i <
n;
i++) {
122 double phii =
stubs_[
i]->phi();
123 double sigmaPerp =
stubs_[
i]->sigmaPerp();
124 double sigmaPar =
stubs_[
i]->sigmaPar();
125 sigmaPerp =
sqrt(sigmaPerp * sigmaPerp + sigmaScat * sigmaScat * ri * ri);
128 double halfRinvRi = 0.5 * ri * rInv;
129 double aSinHalfRinvRi = halfRinvRi + (2. / 3.) * halfRinvRi * halfRinvRi * halfRinvRi;
130 double deltaphi =
reco::deltaPhi(phi0 - aSinHalfRinvRi - phii, 0.);
131 delta[
j++] = (ri * deltaphi) / sigmaPerp;
132 delta[
j++] = (z0 + (2.0 / rInv) *
t * aSinHalfRinvRi - zi) / sigmaPar;
135 double r_track = (zi - z0) * tInv;
136 double phi_track = phi0 - 0.5 * rInv * (zi - z0) * tInv;
140 double width = 0.5 *
stubs_[
i]->trackerModule()->sensorWidth();
141 double nstrip = 0.5 *
stubs_[
i]->nStrips();
143 double Deltai =
width * (
iphi - nstrip) / nstrip;
148 double DeltaiOverRi = Deltai / ri;
149 double theta0 = DeltaiOverRi + (2. / 3.) * DeltaiOverRi * DeltaiOverRi * DeltaiOverRi;
150 double Delta = Deltai - r_track * (theta0 - (phi_track - phii));
152 delta[
j++] = (r_track - ri) / sigmaPar;
153 delta[
j++] = Delta / sigmaPerp;
constexpr double deltaPhi(double phi1, double phi2)
float phi0() const override
float qOverPt() const override
TVectorD seed(const L1track3D &l1track3D) override
double kalmanMultiScattTerm() const
Abs< T >::type abs(const T &t)
const Settings * settings_
std::vector< Stub * > stubs_
=== This is the base class for the linearised chi-squared track fit algorithms.
TVectorD residuals(const TVectorD &x) override
TMatrixD D(const TVectorD &x) override
double invPtToInvR() const