Page 1 of 1

Question about elegant to ASTRA conversion

Posted: 28 Oct 2019, 14:53
by WEI-HOU
Hi,

I am having some problems with the file conversion between elegant particle data and that of ASTRA.
For example, I have an ASTRA particle data with 10000 particles, after using astra2elegant then elegant2astra, the number of particles becomes 10001.
Apart from that, the reference momentum ( 1st row 6th column of ASTRA particle file) has changed as well.
Is this due to the fact that there is no "fiducial particle" in elegant ?

Thanks.

Regards
Wei Hou

Re: Question about elegant to ASTRA conversion

Posted: 28 Oct 2019, 16:05
by michael_borland
Wei Hou,

astra2elegant considers the ASTRA fiducial particle to be an ordinary particle, so it appears in the elegant file. When converting back, elegant2astra doesn't "know" that one of the particles is special, but it knows that ASTRA needs a fiducial particle, so it creates one. Hence, you'll add one particle each time through this loop. Also, elegant2astra uses the mean values of pz and t as the reference, since it doesn't recognize a fiducial in the elegant output.

--Michael

Re: Question about elegant to ASTRA conversion

Posted: 30 Oct 2019, 12:07
by WEI-HOU
Thanks a lot for your clarification.