1 | <head> |
---|
2 | <title>SELECT</title> |
---|
3 | <!-- Changed by: Hans Grote, 11-Sep-2002 --> |
---|
4 | <link rel="stylesheet" type="text/css" href="madxdoc.css" /> |
---|
5 | </head> |
---|
6 | |
---|
7 | <body bgcolor="#ffffff"> |
---|
8 | |
---|
9 | <center> |
---|
10 | EUROPEAN ORGANIZATION FOR NUCLEAR RESEARCH |
---|
11 | <IMG SRC="http://cern.ch/madx/icons/mx7_25.gif" align=right> |
---|
12 | <h2>Sectormap output</h2> |
---|
13 | </center> |
---|
14 | |
---|
15 | <!--Begin New version: Jean-Luc Nougaret, 18-Dec-2008 --> |
---|
16 | |
---|
17 | <p> |
---|
18 | The flag "sectormap" on the Twiss command (together with an element |
---|
19 | selection via select,flag=sectormap,...) causes a file "sectormap" to |
---|
20 | be written. |
---|
21 | </p> |
---|
22 | |
---|
23 | <p>For each user-selected element, it contains the user-selected coefficients of the kick vector <code>K</code> (6 values), of the first-order map <code>R</code> (6 x 6 values) and of the second-order map <code>T</code> (6 x 6 x 6 values)</p> |
---|
24 | |
---|
25 | <p> |
---|
26 | The sector file is the output of a standard TFS table, which means that the set of columns of interest may be selected through a MAD-X command such as the following: |
---|
27 | </p> |
---|
28 | |
---|
29 | <p> |
---|
30 | <table bgcolor='#EEEEEE' width="75%"> |
---|
31 | <tr><td><code>select,flag=my_sect_table,column=name,pos,k1,r11,r66,t111;</code></tr></td> |
---|
32 | </table> |
---|
33 | </p> |
---|
34 | |
---|
35 | Each line of the sectormap file contains for each selected element, the set of chosen K,R,T matrix coefficients:<br><br> |
---|
36 | |
---|
37 | <table bgcolor='#EEEEEE' width="75%"> |
---|
38 | <tr><td>@ NAME</td><td> %13s</td><td> "MY_SECT_TABLE"</td></tr> |
---|
39 | <tr><td>@ TYPE</td><td> %09s</td><td> "SECTORMAP"</td></tr> |
---|
40 | <tr><td>@ TITLE</td><td> %08s</td><td> "no-title"</td></tr> |
---|
41 | <tr><td>@ ORIGIN</td> <td> %19s</td><td> "MAD-X 3.04.62 Linux"</td></tr> |
---|
42 | <tr><td>@ DATE</td><td> %08s</td><td> "18/12/08"</td></tr> |
---|
43 | <tr><td>@ TIME</td><td> %08s</td><td> "10.33.58"</td></tr> |
---|
44 | </table> |
---|
45 | <table bgcolor='#EEEEEE' width="75%"> |
---|
46 | <tr><td>* NAME</td><td>POS</td><td>K1</td><td>R11</td><td>R66</td><td>T111</td></tr> |
---|
47 | <tr><td>$ %s</td><td>%le</td><td>%le</td><td>%le </td><td>%le</td><td>%le</td></tr> |
---|
48 | <tr><td> "FIVECELL$START" </td><td>0</td><td>0</td><td>1</td><td>1</td><td>0</td></tr> |
---|
49 | <tr><td> "SEQSTART" </td><td>0</td><td> 0 </td><td> 1</td><td> 1 </td><td> 0</td></tr> |
---|
50 | <tr><td> "QF.1" </td><td>3.1</td><td>-1.305314637e-05</td><td>1.042224745</td><td>1</td><td>0</td></tr> |
---|
51 | <tr><td> "DRIFT_0"</td><td>3.265</td><td>7.451656548e-21</td><td>1</td><td>1</td><td>0</td></tr> |
---|
52 | <tr><td> "MSCBH"</td><td>4.365</td><td>-1.686090613e-15</td><td>0.9999972755</td><td>1</td><td>0.006004411526</td></tr> |
---|
53 | <tr><td> "CBH.1"</td><td>4.365</td><td>0</td><td>1</td><td>1</td><td>0</td></tr> |
---|
54 | <tr><td> "DRIFT_1"</td><td>5.519992305</td><td>-6.675347543e-21</td><td>1</td><td>1</td><td>0</td></tr> |
---|
55 | <tr><td> "MB"</td><td>19.72000769</td><td>2.566889547e-18</td><td>1.000000091</td><td>1</td><td>-4.135903063e-25</td></tr> |
---|
56 | <tr><td> "DRIFT_2"</td><td>21.17999231</td><td>-1.757758802e-20</td><td>1</td><td>1</td><td>0</td></tr> |
---|
57 | <tr><td> "MB"</td><td>35.38000769</td><td>2.822705549e-18</td><td>1.000000091</td><td>1</td><td>-4.135903063e-25</td></tr> |
---|
58 | <tr><td> "DRIFT_2"</td><td>36.83999231</td><td>2.480880093e-20</td><td>1</td><td>1</td><td>0</td></tr> |
---|
59 | <tr><td> "MB"</td><td>51.04000769</td><td>3.006954115e-18</td><td>1.000000091</td><td>1</td><td>-4.135903063e-25</td></tr> |
---|
60 | <tr><td> "DRIFT_3"</td><td>52.21</td><td>-4.886652187e-20</td><td>1</td><td>1</td><td>0</td></tr> |
---|
61 | <tr><td>...</td><td>...</td><td>...</td><td>...</td><td>...</td><td>...</td></tr> |
---|
62 | <tr><td>...</td><td>...</td><td>...</td><td>...</td><td>...</td><td>...</td></tr> |
---|
63 | <tr><td>...</td><td>...</td><td>...</td><td>...</td><td>...</td><td>...</td></tr> |
---|
64 | </table> |
---|
65 | |
---|
66 | <br> |
---|
67 | Of course, the <code>select</code> statement can be combined with additional options to filter-out the list of elements, such as in the following statement, which for instance only retains drift-type elements: |
---|
68 | <p> |
---|
69 | <table bgcolor='#EEEEEE' width="75%"> |
---|
70 | <tr><td><code>select,flag=my_sect_table,class=drift,column=name,pos,k1,r11,r66,t111;</code></tr></td> |
---|
71 | </table> |
---|
72 | </p> |
---|
73 | |
---|
74 | <p> |
---|
75 | <code>K</code> coefficients range: |
---|
76 | <code>K1</code>... <code>K6</code> |
---|
77 | </p> |
---|
78 | |
---|
79 | <p> |
---|
80 | <code>R</code> coefficients range: |
---|
81 | <table> |
---|
82 | <tr><td><code>R11</code></td><td>...</td><td><code>R61</code></td></tr> |
---|
83 | <tr><td><code>R12</code></td><td>...</td><td><code>R62</code></td></tr> |
---|
84 | <tr><td>...</td><td>...</td><td>...</td></tr> |
---|
85 | <tr><td><code>R61</code></td><td>...</td><td><code>R66</code></td></tr> |
---|
86 | </table> |
---|
87 | </p> |
---|
88 | |
---|
89 | <p> |
---|
90 | <code>T</code> coefficients range: |
---|
91 | <table> |
---|
92 | <tr><td><code>T111</code></td><td>...</td><td><code>T611</code></td></tr> |
---|
93 | <tr><td><code>T121</code></td><td>...</td><td><code>T621</code></td></tr> |
---|
94 | <tr><td>...</td><td>...</td><td>...</td></tr> |
---|
95 | <tr><td><code>T161</code></td><td>...</td><td><code>T661</code></td></tr> |
---|
96 | <tr><td><code>T112</code></td><td>...</td><td><code>T612</code></td></tr> |
---|
97 | <tr><td>...</td><td>...</td><td>...</td></tr> |
---|
98 | <tr><td><code>T166</code></td><td>...</td><td><code>T666</code></td></tr> |
---|
99 | </table> |
---|
100 | </p> |
---|
101 | |
---|
102 | <p> |
---|
103 | In the above notation, <code>Rij</code> stands for "effect on the <code>i</code>-th coordinate of the <code>j</code>-th coordinate in phase-space", whereas <code>Tijk</code> stands for "combined effect on the <code>i</code>-th coordinate of both the <code>j</code>-th and <code>k</code>-th coordinates in phase-space" along the lattice. |
---|
104 | </p> |
---|
105 | |
---|
106 | <!--End New Version --> |
---|
107 | |
---|
108 | <!-- Commented by jluc, on 18 December 2008 |
---|
109 | The flag "sectormap" on the Twiss command (together with an element |
---|
110 | selection via select,flag=sectormap,...) causes a file "sectormap" to |
---|
111 | be written. This is a fixed format file; per selected element it |
---|
112 | contains: |
---|
113 | |
---|
114 | <pre> |
---|
115 | end_position element_name |
---|
116 | kick vector (6 values) |
---|
117 | first order map (6 lines with 6 values each), column-wise |
---|
118 | second order map (36 lines with 6 columns each, column-column-wise) |
---|
119 | </pre> |
---|
120 | |
---|
121 | Or more explicitly: |
---|
122 | |
---|
123 | <pre> |
---|
124 | The first line is: |
---|
125 | K[1] ... K[6] |
---|
126 | |
---|
127 | Then: |
---|
128 | R[1,1] ... R[6,1] |
---|
129 | R[1,2] ... R[6,2] |
---|
130 | ... |
---|
131 | R[1,6] ... R[6,6] |
---|
132 | |
---|
133 | |
---|
134 | Then: |
---|
135 | T[1,1,1] ... T[6,1,1] |
---|
136 | T[1,2,1] ... T[6,2,1] |
---|
137 | ... |
---|
138 | T[1,6,1] ... T[6,6,1] |
---|
139 | T[1,1,2] ... T[6,1,2] |
---|
140 | ... |
---|
141 | T[1,6,6] ... T[6,6,6] |
---|
142 | </pre> |
---|
143 | --> |
---|
144 | |
---|
145 | |
---|
146 | The maps are the accumulated maps between the selected elements. They contain |
---|
147 | both the alignment, and field errors present. |
---|
148 | Together with the starting value of the closed orbit (which can be obtained |
---|
149 | from the standard twiss file) this allows the user to track particles over |
---|
150 | larger sectors, rather than element per element. A typical usage therefore |
---|
151 | lies in the interface to other programs, such as TRAIN. |
---|
152 | <address> |
---|
153 | <a href="http://www.cern.ch/Hans.Grote/hansg_sign.html">hansg</a>, |
---|
154 | May 8, 2001 |
---|
155 | </address> |
---|
156 | </body> |
---|
157 | |
---|
158 | |
---|
159 | |
---|
160 | |
---|
161 | |
---|