From 4012f627fbceb5692d0fd12a416fdeae5a5b4ecd Mon Sep 17 00:00:00 2001 From: Shishlo Date: Mon, 10 Aug 2026 14:48:20 -0400 Subject: [PATCH] The z and dE coordinates were added. --- examples/RK4_Tracker/rk_tracker_quad_and_dipole_test.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/examples/RK4_Tracker/rk_tracker_quad_and_dipole_test.py b/examples/RK4_Tracker/rk_tracker_quad_and_dipole_test.py index e8dbcb0c..7d36d858 100755 --- a/examples/RK4_Tracker/rk_tracker_quad_and_dipole_test.py +++ b/examples/RK4_Tracker/rk_tracker_quad_and_dipole_test.py @@ -40,7 +40,7 @@ bunch_init.getSyncParticle().kinEnergy(eKin) #---- Add particle to the bunch -(x, xp, y, yp, z, dE) = (0.002 , 0. , 0.003 , 0. , 0. , 0. ) +(x, xp, y, yp, z, dE) = (0.002 , -0.01 , -0.003 , 0.004 , 10. , 0.010 ) bunch_init.addParticle(x, xp, y, yp, z, dE) #----------------------------------------------- @@ -88,6 +88,7 @@ print ("==========================================================") print ("TEAPOT tracking final (x,xp) = %+9.5f , %+9.5f ) [mm,mrad]"%(bunch.x(0)*1000,bunch.xp(0)*1000)) print ("TEAPOT tracking final (y,yp) = %+9.5f , %+9.5f ) [mm,mrad]"%(bunch.y(0)*1000,bunch.yp(0)*1000)) +print ("TEAPOT tracking final (z,yp) = %+9.3f , %+9.3f ) [m,MeV]"%(bunch.z(0),bunch.dE(0)*1000)) print ("==========================================================") #---------------------------------------------------------- @@ -174,5 +175,6 @@ yp = bunch.yp(0) + synch_part_pvector[1]/synch_part_pvector[2] print ("(x,xp) = %+9.5f , %+9.5f ) [mm,mrad]"%(x*1000,xp*1000)) print ("(y,yp) = %+9.5f , %+9.5f ) [mm,mrad]"%(y*1000,yp*1000)) +print ("(z,yp) = %+9.3f , %+9.3f ) [m,MeV]"%(bunch.z(0),bunch.dE(0)*1000)) print ("==========================================================") print ("Stop.") \ No newline at end of file