Changeset 7b518f0 in git for modules/TrackCovariance.cc
- Timestamp:
- Feb 26, 2020, 1:22:26 PM (5 years ago)
- Branches:
- ImprovedOutputFile, master
- Children:
- 1388e73
- Parents:
- 1294bba
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
modules/TrackCovariance.cc
r1294bba r7b518f0 89 89 { 90 90 Candidate *candidate, *mother; 91 Double_t energy;91 Double_t mass; 92 92 93 93 fItInputArray->Reset(); … … 97 97 const TLorentzVector &candidateMomentum = candidate->Momentum; 98 98 99 energy = candidateMomentum.E();99 mass = candidateMomentum.M(); 100 100 101 101 ObsTrk track(candidatePosition.Vect(), candidateMomentum.Vect(), candidate->Charge, fBz, fCovariance); … … 103 103 mother = candidate; 104 104 candidate = static_cast<Candidate *>(candidate->Clone()); 105 candidate->Momentum.SetVect(track.GetObsP()); 106 candidate->Momentum.SetE(energy); 105 candidate->Momentum.SetVectM(track.GetObsP(), mass); 107 106 108 107 candidate->AddCandidate(mother);
Note:
See TracChangeset
for help on using the changeset viewer.