Issue on energy value while importing ASCII file
Posted: Mon 3 Mar 2025 09:19
Dear Didier,
I want to import data from an ASCII file written as described in the manual as follows :
Number_of_particle Mass(MeV) Beam_energy(MeV) Beam_Frequency(MHz) Beam_courant(A)
X0(m) Xp0(rad) Y0(m) Yp0(rad) Z0(m) Δp0/ps
X1(m) Xp1(rad) Y1(m) Yp1(rad) Z1(m) Δp1/ps
…
Tehn I built a file this way :
10000 938.272 0.095 352.21 0.053074
0.00137746 -0.0482642 0.00052219 0.0109325 0.00428458 10.0623
0.00154513 -0.0249219 0.00135488 0.012837 0.0042817 10.0623
...
So the energy should then be 0.095 KeV, but when I import the file in PlotWin, the energy is 0, and then in TraceWin the energy is 2 MeV, all others parameters being equal to what's in the ASCII file.
I attached the ASCII file.
Emmanuel
I want to import data from an ASCII file written as described in the manual as follows :
Number_of_particle Mass(MeV) Beam_energy(MeV) Beam_Frequency(MHz) Beam_courant(A)
X0(m) Xp0(rad) Y0(m) Yp0(rad) Z0(m) Δp0/ps
X1(m) Xp1(rad) Y1(m) Yp1(rad) Z1(m) Δp1/ps
…
Tehn I built a file this way :
10000 938.272 0.095 352.21 0.053074
0.00137746 -0.0482642 0.00052219 0.0109325 0.00428458 10.0623
0.00154513 -0.0249219 0.00135488 0.012837 0.0042817 10.0623
...
So the energy should then be 0.095 KeV, but when I import the file in PlotWin, the energy is 0, and then in TraceWin the energy is 2 MeV, all others parameters being equal to what's in the ASCII file.
I attached the ASCII file.
Emmanuel