Skip to content

Commit

Permalink
Merge pull request #68 from eicheB/FixTrajLength
Browse files Browse the repository at this point in the history
Fix trajectory length of secondary particles
  • Loading branch information
DavidWalz committed Mar 22, 2016
2 parents db33564 + fa925e5 commit 9c3f527
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Candidate.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ void Candidate::addSecondary(int id, double energy) {
void Candidate::addSecondary(int id, double energy, Vector3d position) {
ref_ptr<Candidate> secondary = new Candidate;
secondary->setRedshift(redshift);
secondary->setTrajectoryLength(trajectoryLength);
secondary->setTrajectoryLength(trajectoryLength-(current.getPosition()-position).getR());
secondary->source = source;
secondary->previous = previous;
secondary->created = current;
Expand Down

0 comments on commit 9c3f527

Please sign in to comment.