Skip to content

Commit

Permalink
Fix: shift_out Position Update
Browse files Browse the repository at this point in the history
  • Loading branch information
ax3l committed Dec 23, 2023
1 parent 17a358a commit 28c6555
Show file tree
Hide file tree
Showing 22 changed files with 22 additions and 22 deletions.
2 changes: 1 addition & 1 deletion src/particles/elements/Aperture.H
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ namespace impactx
}

// undo shift due to alignment errors of the element
shift_out(x, y, px, py);
shift_out(p.pos(RealAoS::x), p.pos(RealAoS::y), px, py);
}

/** This pushes the reference particle. */
Expand Down
2 changes: 1 addition & 1 deletion src/particles/elements/Buncher.H
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ namespace impactx
pt = ptout;

// undo shift due to alignment errors of the element
shift_out(x, y, px, py);
shift_out(p.pos(RealAoS::x), p.pos(RealAoS::y), px, py);
}

/** This pushes the reference particle. */
Expand Down
2 changes: 1 addition & 1 deletion src/particles/elements/CFbend.H
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ namespace impactx
pt = ptout;

// undo shift due to alignment errors of the element
shift_out(x, y, px, py);
shift_out(p.pos(RealAoS::x), p.pos(RealAoS::y), px, py);
}

/** This pushes the reference particle.
Expand Down
2 changes: 1 addition & 1 deletion src/particles/elements/ChrDrift.H
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ namespace impactx
pt = ptout;

// undo shift due to alignment errors of the element
shift_out(x, y, px, py);
shift_out(p.pos(RealAoS::x), p.pos(RealAoS::y), px, py);
}

/** This pushes the reference particle.
Expand Down
2 changes: 1 addition & 1 deletion src/particles/elements/ChrQuad.H
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ namespace impactx
pt = ptout;

// undo shift due to alignment errors of the element
shift_out(x, y, px, py);
shift_out(p.pos(RealAoS::x), p.pos(RealAoS::y), px, py);
}

/** This pushes the reference particle.
Expand Down
2 changes: 1 addition & 1 deletion src/particles/elements/ChrUniformAcc.H
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ namespace impactx
pt = pt/bgf;

// undo shift due to alignment errors of the element
shift_out(x, y, px, py);
shift_out(p.pos(RealAoS::x), p.pos(RealAoS::y), px, py);
}

/** This pushes the reference particle.
Expand Down
2 changes: 1 addition & 1 deletion src/particles/elements/ConstF.H
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ namespace impactx
pt = ptout;

// undo shift due to alignment errors of the element
shift_out(x, y, px, py);
shift_out(p.pos(RealAoS::x), p.pos(RealAoS::y), px, py);
}

/** This pushes the reference particle.
Expand Down
2 changes: 1 addition & 1 deletion src/particles/elements/DipEdge.H
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ namespace impactx
py = py + R43*y;

// undo shift due to alignment errors of the element
shift_out(x, y, px, py);
shift_out(p.pos(RealAoS::x), p.pos(RealAoS::y), px, py);
}

/** This pushes the reference particle. */
Expand Down
2 changes: 1 addition & 1 deletion src/particles/elements/Drift.H
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ namespace impactx
pt = ptout;

// undo shift due to alignment errors of the element
shift_out(x, y, px, py);
shift_out(p.pos(RealAoS::x), p.pos(RealAoS::y), px, py);
}

/** This pushes the reference particle.
Expand Down
2 changes: 1 addition & 1 deletion src/particles/elements/ExactDrift.H
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ namespace impactx
pt = ptout;

// undo shift due to alignment errors of the element
shift_out(x, y, px, py);
shift_out(p.pos(RealAoS::x), p.pos(RealAoS::y), px, py);
}

/** This pushes the reference particle.
Expand Down
2 changes: 1 addition & 1 deletion src/particles/elements/ExactSbend.H
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ namespace impactx
pt = ptout;

// undo shift due to alignment errors of the element
shift_out(x, y, px, py);
shift_out(p.pos(RealAoS::x), p.pos(RealAoS::y), px, py);
}

/** This pushes the reference particle.
Expand Down
2 changes: 1 addition & 1 deletion src/particles/elements/Kicker.H
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ namespace impactx
pt = ptout;

// undo shift due to alignment errors of the element
shift_out(x, y, px, py);
shift_out(p.pos(RealAoS::x), p.pos(RealAoS::y), px, py);
}

/** This pushes the reference particle. */
Expand Down
2 changes: 1 addition & 1 deletion src/particles/elements/Multipole.H
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ namespace impactx
pt = ptout;

// undo shift due to alignment errors of the element
shift_out(x, y, px, py);
shift_out(p.pos(RealAoS::x), p.pos(RealAoS::y), px, py);
}

/** This pushes the reference particle. */
Expand Down
2 changes: 1 addition & 1 deletion src/particles/elements/NonlinearLens.H
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ namespace impactx
pt = ptout;

// undo shift due to alignment errors of the element
shift_out(x, y, px, py);
shift_out(p.pos(RealAoS::x), p.pos(RealAoS::y), px, py);
}

/** This pushes the reference particle. */
Expand Down
2 changes: 1 addition & 1 deletion src/particles/elements/Quad.H
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ namespace impactx
pt = ptout;

// undo shift due to alignment errors of the element
shift_out(x, y, px, py);
shift_out(p.pos(RealAoS::x), p.pos(RealAoS::y), px, py);
}

/** This pushes the reference particle.
Expand Down
2 changes: 1 addition & 1 deletion src/particles/elements/RFCavity.H
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,7 @@ namespace RFCavityData
pt = ptout;

// undo shift due to alignment errors of the element
shift_out(x, y, px, py);
shift_out(p.pos(RealAoS::x), p.pos(RealAoS::y), px, py);
}

/** This pushes the reference particle.
Expand Down
2 changes: 1 addition & 1 deletion src/particles/elements/Sbend.H
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ namespace impactx
pt = ptout;

// undo shift due to alignment errors of the element
shift_out(x, y, px, py);
shift_out(p.pos(RealAoS::x), p.pos(RealAoS::y), px, py);
}

/** This pushes the reference particle.
Expand Down
2 changes: 1 addition & 1 deletion src/particles/elements/ShortRF.H
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ namespace impactx
pt = pt/bgf;

// undo shift due to alignment errors of the element
shift_out(x, y, px, py);
shift_out(p.pos(RealAoS::x), p.pos(RealAoS::y), px, py);
}

/** This pushes the reference particle. */
Expand Down
2 changes: 1 addition & 1 deletion src/particles/elements/SoftQuad.H
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,7 @@ namespace SoftQuadrupoleData
pt = ptout;

// undo shift due to alignment errors of the element
shift_out(x, y, px, py);
shift_out(p.pos(RealAoS::x), p.pos(RealAoS::y), px, py);
}

/** This pushes the reference particle.
Expand Down
2 changes: 1 addition & 1 deletion src/particles/elements/SoftSol.H
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,7 @@ namespace SoftSolenoidData
pt = ptout;

// undo shift due to alignment errors of the element
shift_out(x, y, px, py);
shift_out(p.pos(RealAoS::x), p.pos(RealAoS::y), px, py);
}

/** This pushes the reference particle.
Expand Down
2 changes: 1 addition & 1 deletion src/particles/elements/Sol.H
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ namespace impactx
pt = ptout;

// undo shift due to alignment errors of the element
shift_out(x, y, px, py);
shift_out(p.pos(RealAoS::x), p.pos(RealAoS::y), px, py);
}

/** This pushes the reference particle.
Expand Down
2 changes: 1 addition & 1 deletion src/particles/elements/ThinDipole.H
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ namespace impactx
pt = ptout;

// undo shift due to alignment errors of the element
shift_out(x, y, px, py);
shift_out(p.pos(RealAoS::x), p.pos(RealAoS::y), px, py);
}

/** This pushes the reference particle. */
Expand Down

0 comments on commit 28c6555

Please sign in to comment.