Changeset 25291dd in git for modules/TrackCovariance.cc
- Timestamp:
- Oct 17, 2020, 4:05:03 AM (4 years ago)
- Children:
- 44f4a4e
- Parents:
- 4e5ed02 (diff), be1a3be (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
modules/TrackCovariance.cc
r4e5ed02 r25291dd 102 102 while((candidate = static_cast<Candidate *>(fItInputArray->Next()))) 103 103 { 104 const TLorentzVector &candidatePosition = candidate->InitialPosition; 104 105 // converting to meters 106 const TLorentzVector &candidatePosition = candidate->InitialPosition*1e-03; 105 107 const TLorentzVector &candidateMomentum = candidate->Momentum; 106 108 … … 113 115 114 116 candidate->Momentum.SetVectM(track.GetObsP(), mass); 115 candidate->InitialPosition.SetXYZT(track.GetObsX().X(),track.GetObsX().Y(),track.GetObsX().Z(),candidatePosition.T());116 117 118 // converting back to mm 119 candidate->InitialPosition.SetXYZT(track.GetObsX().X()*1e03,track.GetObsX().Y()*1e03,track.GetObsX().Z()*1e03,candidatePosition.T()*1e03); 120 117 121 // save full covariance 5x5 matrix internally (D0, phi, Curvature, dz, ctg(theta)) 118 122 candidate->TrackCovariance = track.GetCov(); … … 123 127 ct = track.GetObsPar()[4]; 124 128 125 candidate->Xd = track.GetObsX().X() ;126 candidate->Yd = track.GetObsX().Y() ;127 candidate->Zd = track.GetObsX().Z() ;129 candidate->Xd = track.GetObsX().X()*1e03; 130 candidate->Yd = track.GetObsX().Y()*1e03; 131 candidate->Zd = track.GetObsX().Z()*1e03; 128 132 129 candidate->D0 = track.GetObsPar()[0];130 candidate->Phi = track.GetObsPar()[1];131 candidate->C = track.GetObsPar()[2];132 candidate->DZ = track.GetObsPar()[3];133 candidate->D0 = track.GetObsPar()[0]*1e03; 134 candidate->Phi = track.GetObsPar()[1]; 135 candidate->C = track.GetObsPar()[2]*1e03; 136 candidate->DZ = track.GetObsPar()[3]*1e03; 133 137 candidate->CtgTheta = track.GetObsPar()[4]; 134 candidate->P = track.GetObsP().Mag();135 candidate->PT = pt;136 candidate->Charge = q;138 candidate->P = track.GetObsP().Mag(); 139 candidate->PT = pt; 140 candidate->Charge = q; 137 141 138 dd0 = TMath::Sqrt(track.GetCov()(0, 0)) ;139 ddz = TMath::Sqrt(track.GetCov()(3, 3)) ;142 dd0 = TMath::Sqrt(track.GetCov()(0, 0))*1e03; 143 ddz = TMath::Sqrt(track.GetCov()(3, 3))*1e03; 140 144 dphi = TMath::Sqrt(track.GetCov()(1, 1)); 141 145 dct = TMath::Sqrt(track.GetCov()(4, 4)); 142 146 dpt = 2 * TMath::Sqrt( track.GetCov()(2, 2))*pt*pt / (0.2998*fBz); 143 147 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)) ;148 dC = TMath::Sqrt(track.GetCov()(2, 2))*1e03; 145 149 146 150 candidate->ErrorD0 = dd0;
Note:
See TracChangeset
for help on using the changeset viewer.