Changes in modules/TrackCovariance.cc [c18dca6:3051ea17] in git
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
modules/TrackCovariance.cc
rc18dca6 r3051ea17 96 96 Candidate *candidate, *mother; 97 97 Double_t mass, p, pt, q, ct; 98 Double_t dd0, ddz, dphi, dct, dp, dpt ;98 Double_t dd0, ddz, dphi, dct, dp, dpt, dC; 99 99 100 100 … … 115 115 candidate->InitialPosition.SetXYZT(track.GetObsX().X(),track.GetObsX().Y(),track.GetObsX().Z(),candidatePosition.T()); 116 116 117 // save full ACTS friendly covariance matrix internally (6x6: D, z0, phi0, theta, q/p, time)118 candidate->TrackCovariance ACTS = track.GetCovACTS();117 // save full covariance 5x5 matrix internally (D0, phi, Curvature, dz, ctg(theta)) 118 candidate->TrackCovariance = track.GetCov(); 119 119 120 120 pt = candidate->Momentum.Pt(); … … 128 128 129 129 candidate->D0 = track.GetObsPar()[0]; 130 candidate->Phi = track.GetObsPar()[1]; 131 candidate->C = track.GetObsPar()[2]; 130 132 candidate->DZ = track.GetObsPar()[3]; 133 candidate->CtgTheta = track.GetObsPar()[4]; 131 134 candidate->P = track.GetObsP().Mag(); 132 candidate->CtgTheta = track.GetObsPar()[4];133 candidate->Phi = track.GetObsPar()[1];134 135 135 candidate->PT = pt; 136 136 candidate->Charge = q; … … 142 142 dpt = 2 * TMath::Sqrt( track.GetCov()(2, 2))*pt*pt / (0.2998*fBz); 143 143 dp = TMath::Sqrt((1.+ct*ct)*dpt*dpt + 4*pt*pt*ct*ct*dct*dct/(1.+ct*ct)/(1.+ct*ct)); 144 dC = TMath::Sqrt(track.GetCov()(2, 2)); 144 145 145 146 candidate->ErrorD0 = dd0; 146 147 candidate->ErrorDZ = ddz; 147 148 candidate->ErrorP = dp; 149 candidate->ErrorC = dC; 148 150 candidate->ErrorCtgTheta = dct; 149 151 candidate->ErrorPhi = dphi;
Note:
See TracChangeset
for help on using the changeset viewer.