- Timestamp:
- Mar 2, 2021, 3:34:21 PM (4 years ago)
- Branches:
- master
- Children:
- 537d24f, a1a25d4
- Parents:
- df408d2
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
external/TrackCovariance/TrkUtil.cc
rdf408d2 r92b8d11 31 31 Double_t r2 = x.Perp2(); 32 32 Double_t cross = x(0) * p(1) - x(1) * p(0); 33 Double_t T = TMath::Sqrt(pt * pt - 2 * a * cross + a * a * r2);33 Double_t T = sqrt(pt * pt - 2 * a * cross + a * a * r2); 34 34 Double_t phi0 = atan2((p(1) - a * x(0)) / T, (p(0) + a * x(1)) / T); // Phi0 35 35 Double_t D; // Impact parameter D … … 41 41 Par(2) = C; // Store C 42 42 //Longitudinal parameters 43 Double_t B = C * TMath::Sqrt(TMath::Max(r2 - D * D, 0.0) / (1 + 2 * C * D));43 Double_t B = C * sqrt(TMath::Max(r2 - D * D, 0.0) / (1 + 2 * C * D)); 44 44 Double_t st = asin(B) / C; 45 45 Double_t ct = p(2) / pt; … … 115 115 pACTS(2) = Par(1); // Phi0 is unchanged 116 116 pACTS(3) = atan2(1.0, Par(4)); // Theta in [0, pi] range 117 pACTS(4) = Par(2) / (b * TMath::Sqrt(1 + Par(4) * Par(4))); // q/p in GeV117 pACTS(4) = Par(2) / (b * sqrt(1 + Par(4) * Par(4))); // q/p in GeV 118 118 pACTS(5) = 0.0; // Time: currently undefined 119 119 // … … 132 132 A(0, 0) = 1000.; // D-D conversion to mm 133 133 A(1, 2) = 1.0; // phi0-phi0 134 A(2, 4) = 1.0 / ( TMath::Sqrt(1.0 + ct * ct) * b); // q/p-C134 A(2, 4) = 1.0 / (sqrt(1.0 + ct * ct) * b); // q/p-C 135 135 A(3, 1) = 1000.; // z0-z0 conversion to mm 136 136 A(4, 3) = -1.0 / (1.0 + ct * ct); // theta - cot(theta)
Note:
See TracChangeset
for help on using the changeset viewer.