ID1 and ID2 are set by hand in the distribution command -> they will be stored in this data/track-orbit: OK
only ID1 is set by hand in the distribution command-> ID1 will be correctly stored in the data/track-orbit and a random particle with ID2 will be stored as well
ID1 and ID2 are not set by hand-> two random particles from the distribution with ID1 and ID2 are stored in the data/track-orbit -> useless output
Distribution from a file
Particles that in the file corresponds to ID1 and ID2 will be stored. All the three previous situations are possible
OPAL-Cyc
I don't know if you want to create a separate file for ID1 and ID2 or use the trackOrbit.dat (since the name you wrote was closed) that already exists. If you use the same file: are you going to replace ID0 with ID1?
In general I think it is a good solution to store ID1 and ID2 in a separate file. Above the possible scenario I have in mind are listed. This additional file should avoid to dump frequently the phase space into the H5file with a gain in computational time, size of the output and faster post-processing analysis.
Based on the current structure of the stat file, it is easier to store ID1 and ID2 in a separate file than in the stat file since those particles can get lost in the beamline.
I have compared the trackOrbit.datfile from OPAL-T and OPAL-Cyc and there are some differences:
Directory:
OPAL-T: stored in the data directory
OPAL-Cyc: stored in the simulation directory together with the other output files (stat and h5)
Format:
OPAL-T: contains an additional column SPOS
OPAL-Cyc: does not contain this column
Units:
OPAL-T: coordinates [m]
OPAL-Cyc: coordinates [mm]
Stored particles:
OPAL-T: ID1 and ID2
OPAL-Cyc: ID0 and ID1. But it will probably change as Andreas wrote: Because we give up on the ID=0 as reference particle with the new TracerParticles class this maybe need some adjustments.
I would suggest to specify in the documentation about ID1 and ID2 that the OFFSET attributes within the distribution command have no effect on the ID1 and ID2, at least in OPAL-T.
I don't know what it is the status of this implementation with respect to the points above. In addition ID1 and ID2 seems working fine with Gaussian distribution, but I am not sure if they have been tested with the other types of distributions. I remember, Nicole had problem with her case.
In addition, I don't know the status of this implementation in OPAL-Cyc.
I would wait to write the manual till some of the points have been clarified. My entry was more a remark once the issues will be closed.
We can specify ID1 and ID2 on the distribution command and store in the separate file and stat file. Still some possible unit incompatibilities will be solved in an other issue