mad_import.txt
1 |
a) |
---|---|
2 |
About how the MAD latttice tape output are imported to the lattice data base table: |
3 |
1. read element by element, the first data word after the type-element name is length of the |
4 |
element and the last data word is s-value. I calculate the s-value by adding 'length'. This give |
5 |
you the s-value at the front face. I forget why I did this way. |
6 |
2. The first 4 characters of the type-element name is extracted to be the type name. This must have been agreed upon between Dave J. and me, which I hope still stands. You should have a |
7 |
look to see if anything would cause problem in your application. |
8 |
|
9 |
b) |
10 |
there is another way to take care the number of digits of s-value. That is to provide an option |
11 |
to write a ascii file(.csv) file for a selected type. |