Project

General

Profile

DocLatticeList.txt

Kyle Hazelwood, 01/15/2015 12:00 PM

 
1

    
2
1. BPM lists are defined BPM system utilities bpm_query and bpm_get_names, the list should be same as
3
in lattice with type 'HMON' and 'VMON'.
4

    
5
bpm_query(&na[0],&na[1]) -> na(111,110)
6
bpm_get_names(nam[0],nam[1]) -> "R:HP100 R:HP102 R:HP104 R:HP106 ....
7
bpm_name[HORZ] = "100 ", "102 ", "104 ", "106 ".........
8
	ascii_to_numeric_c(&k,1,bpm_name[pl][i],CNV_LONG);
9
	bpm_sec_num[pl][k-1]++;
10
	bpm_sec_num -> {{16, 16, 27, 16, 16, 20}, {15, 16, 27, 15, 16, 21}}
11
	
12

    
13
 bpm_name[0] - 111 {16, 16, 27, 16, 16, 20}
14
 {"100 ", "102 ", "104 ", "106 ", "108 ", "110 ", "112 ", "114 ", "116 ", "118 ", "120 ",
15
 "122 ", "124 ", "126 ", "128 ", "130 ", 
16
 "202 ", "204 ", "206 ", "208 ", "210 ", "212 ", "214 ", "216 ", "218 ", "220 ", "222 ",
17
 "224 ", "226 ", "228 ", "230 ", "232 ",
18
 "301A", "302A", "302B", "303 ", "304 ", "305B", "305C", "307C", "307B", "307A", "308A",
19
 "310 ", "312 ", "314 ", "316 ", "318 ", "320 ", "322 ", "324 ", "326 ", "328 ", "330 ",
20
 "332 ", "334 ", "336 ", "338 ", "340 ", 
21
 "400 ", "402 ", "404 ", "406 ", "408 ", "410 ", "412 ", "414 ", "416 ", "418 ", "420 ",
22
 "422 ", "424 ", "426 ", "428 ", "430 ", 
23
 "502 ", "504 ", "506 ", "508 ", "510 ", "512 ", "514 ", "516 ", "518 ", "520 ", "522 ",
24
 "524 ", "526 ", "528 ", "530 ", "532 ", 
25
 "602 ", "604 ", "606 ", "608 ", "610 ", "612 ", "614 ", "616 ", "618 ", "620 ", "622 ",
26
 "624 ", "626 ", "628 ", "630 ", "632 ", "634 ", "636 ", "638 ", "640 "}
27
 p bpm_name[1] - 110 {15, 16, 27, 15, 16, 21}
28
{"101 ", "103 ", "105 ", "107 ", "109 ", "111 ", "113 ", "115 ", "117 ", "119 ", "121 ",
29
 "123 ", "125 ", "127 ", "129 ", 
30
 "201 ", "203 ", "205 ", "207 ", "209 ", "211 ", "213 ", "215 ", "217 ", "219 ", "221 ",
31
 "223 ", "225 ", "227 ", "229 ", "231 ", 
32
 "301 ", "302A", "302B", "303 ", "304 ", "305B", "305C", "307C", "307B", "307A", "309 ",
33
 "311 ", "313 ", "315 ", "317 ", "319 ", "321 ", "323 ", "325 ", "327 ", "329 ", "331 ",
34
 "333 ", "335 ", "337 ", "339 ", "341 ",
35
 "401 ", "403 ", "405 ", "407 ", "409 ", "411 ", "413 ", "415 ", "417 ", "419 ", "421 ",
36
 "423 ", "425 ", "427 ", "429 ", "501 ", "503 ", "505 ", "507 ", "509 ", "511 ", "513 ",
37
 "515 ", "517 ", "519 ", "521 ", "523 ", "525 ", "527 ", "529 ", "531 ", 
38
 "601 ", "603 ", "605 ", "607 ", "609 ", "611 ", "613 ", "615 ", "617 ", "619 ", "621 ", 
39
 "623 ", "625 ", "627 ", "629 ", "631 ", "633 ", "635 ", "637 ", "639 ", "641 "}
40
(gdb) 
41
	
42
get_tune
43
2. List of trims is defined in lattice data type 'HKIC', and checked by num_ob_ceds, which are hard
44
numbers given.
45

    
46
num_ob_ceds[0,1] - > (104,104)
47
nele = read_lat(1,18,1,"HKIC","H","",...) -> nele = 104
48
    memcpy(ced_name[HORZ][i],&lat[i].element_name[1],3); ->   
49
    ascii_to_numeric_c(&k,1,ced_name[HORZ][i],CNV_LONG); 
50
    ced_sec_num[HORZ][k-1]++;
51
 
52
	ced_name[0:1] ->  "100", "102", "104", "106",......"101", "103", "105", "107",
53
    ced_sec_num[0] = {16, 16, 20, 16, 16, 20} {15, 16, 21, 15, 16, 21}
54
for bpm:
55
nele = read_lat(rid,fid,1,"HMON","HP","",TRUE,(char **)&lat); -> nele = 111
56
"select count(*) from wu.mi_la_data where rid=1 and fid=18 and element_type IN ('VMON') and 
57
element_name like 'VP%'"
58

    
59
 if (nele < num_bpms[HORZ])
60
    return(util_errpost(MYERR,"Err:bpm(H) num wrong in get_lat"));
61
    
62
 bpm_lat_match(HORZ,nele,(char **)&lat);
63
 (gdb) p flg
64
$1 = {0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20,
65
 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, -1, 33, 34, 35, 36, 37, 38, 41, 40,
66
 39, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60,
67
 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80,
68
 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100,
69
 101, 102, 103, 104, 105, 106, 107, 108, 109, 110}
70
(gdb) p bpm_name[0][32]
71
$5 = "301A"
72
(gdb) p la[32].element_name
73
$6 = "HP301", ' ' <repeats 35 times>
74
(
75
 clib_free((char **)&lat);
76
    
77
 nele = read_lat(rid,fid,1,"VMON","VP","",TRUE,(char **)&lat); -> nele = 110
78
 if (nele < num_bpms[VERT])
79
    return(util_errpost(MYERR,"Err:bpm(V) num wrong in get_lat"));
80
   
81
1> select element_name,psi_x from wu.mi_la_data where rid=1 and fid=18 and
82
2> element_type='hmon'
83
3> go
84
 element_name                             psi_x
85
 ---------------------------------------- --------------------
86
 HP328                                                0.002247
87
 HP330                                                0.214412
88
 HP332                                                0.449198
89
 HP334                                                0.691048
90
 HP336                                                0.921892
91
 HP338                                                1.167824
92
 HP340                                                1.398597
93
 HP400                                                1.664019
94
 HP402                                                1.895922
95
 HP404                                                2.144382
96
 HP406                                                2.363215
97
 HP408                                                2.630112
98
 HP410                                                2.849504
99
 HP412                                                3.100022
100
 HP414                                                3.323956
101
 HP416                                                3.573819
102
 HP418                                                3.799787
103
 HP420                                                4.046049
104
 HP422                                                4.275178
105
 HP424                                                4.517817
106
 HP426                                                4.751531
107
 HP428                                                4.990205
108
 HP430                                                5.227858
109
 HP502                                                5.461873
110
 HP504                                                5.704861
111
 HP506                                                5.935781
112
 HP508                                                6.181699
113
 HP510                                                6.408480
114
 HP512                                                6.657314
115
 HP514                                                6.881408
116
 HP516                                                7.131536
117
 HP518                                                7.359143
118
 HP520                                                7.627511
119
 HP522                                                7.856506
120
 HP524                                                8.075709
121
 HP526                                                8.363464
122
 HP528                                                8.589072
123
 HP530                                                8.800941
124
 HP532                                                9.108803
125
 HP602                                                9.350921
126
 HP604                                                9.632839
127
 HP606                                                9.865501
128
 HP608                                               10.147137
129
 HP610                                               10.369037
130
 HP612                                               10.685139
131
 HP614                                               10.890483
132
 HP616                                               11.121100
133
 HP618                                               11.408714
134
 HP620                                               11.643515
135
 HP622                                               11.866093
136
 HP624                                               12.112893
137
 HP626                                               12.350946
138
 HP628                                               12.599209
139
 HP630                                               12.820188
140
 HP632                                               13.073916
141
 HP634                                               13.295218
142
 HP636                                               13.547087
143
 HP638                                               13.770796
144
 HP640                                               14.022924
145
 HP100                                               14.267145
146
 HP102                                               14.520015
147
 HP104                                               14.748479
148
 HP106                                               14.984842
149
 HP108                                               15.235236
150
 HP110                                               15.468511
151
 HP112                                               15.707663
152
 HP114                                               15.940442
153
 HP116                                               16.184454
154
 HP118                                               16.412567
155
 HP120                                               16.661430
156
 HP122                                               16.884312
157
 HP124                                               17.137150
158
 HP126                                               17.357727
159
 HP128                                               17.613567
160
 HP130                                               17.832041
161
 HP202                                               18.087782
162
 HP204                                               18.307329
163
 HP206                                               18.560581
164
 HP208                                               18.783943
165
 HP210                                               19.031771
166
 HP212                                               19.262291
167
 HP214                                               19.503336
168
 HP216                                               19.737528
169
 HP218                                               19.979200
170
 HP220                                               20.233936
171
 HP222                                               20.476177
172
 HP224                                               20.688047
173
 HP226                                               20.983883
174
 HP228                                               21.199497
175
 HP230                                               21.404388
176
 HP232                                               21.714895
177
 HP301                                               21.766775
178
 HP302A                                              21.876375
179
 HP302B                                              22.248220
180
 HP303                                               22.298922
181
 HP304                                               22.393723
182
 HP305B                                              22.625648
183
 HP305C                                              22.645531
184
 HP307C                                              22.811159
185
 HP307B                                              22.844030
186
 HP307A                                              22.932407
187
 HP308A                                              23.029652
188
 HP310                                               23.199015
189
 HP312                                               23.508696
190
 HP314                                               23.710815
191
 HP316                                               23.933250
192
 HP318                                               24.226772
193
 HP320                                               24.458475
194
 HP322                                               24.688818
195
 HP324                                               24.924442
196
 HP326                                               25.175055
197

    
198
(111 rows affected)
199
1> select element_name,psi_x from wu.mi_la_data where rid=1 and fid=18 and
200
2> element_type='hkic'
201
3> go
202
 element_name                             psi_x
203
 ---------------------------------------- --------------------
204
 H328                                                 0.021537
205
 H330                                                 0.251869
206
 H332                                                 0.453591
207
 H334                                                 0.694823
208
 H336                                                 0.926232
209
 H338                                                 1.171652
210
 H340                                                 1.448056
211
 H400                                                 1.667959
212
 H402                                                 1.899316
213
 H404                                                 2.142731
214
 H406                                                 2.369756
215
 H408                                                 2.634187
216
 H410                                                 2.853568
217
 H412                                                 3.104115
218
 H414                                                 3.327899
219
 H416                                                 3.578033
220
 H418                                                 3.803638
221
 H420                                                 4.050357
222
 H422                                                 4.278961
223
 H424                                                 4.522193
224
 H426                                                 4.755281
225
 H428                                                 4.994611
226
 H430                                                 5.231601
227
 H502                                                 5.466259
228
 H504                                                 5.708642
229
 H506                                                 5.940118
230
 H508                                                 6.185526
231
 H510                                                 6.412727
232
 H512                                                 6.679354
233
 H514                                                 6.905094
234
 H516                                                 7.135554
235
 H518                                                 7.365538
236
 H520                                                 7.631650
237
 H522                                                 7.859721
238
 H524                                                 8.080395
239
 H526                                                 8.368834
240
 H528                                                 8.593150
241
 H530                                                 8.804732
242
 H532                                                 9.112991
243
 H602                                                 9.365524
244
 H604                                                 9.643225
245
 H606                                                 9.880531
246
 H608                                                10.161073
247
 H610                                                10.374259
248
 H612                                                10.688898
249
 H614                                                10.894663
250
 H616                                                11.125566
251
 H618                                                11.414347
252
 H620                                                11.646578
253
 H622                                                11.869454
254
 H624                                                12.119187
255
 H626                                                12.355192
256
 H628                                                12.621910
257
 H630                                                12.843030
258
 H632                                                13.078099
259
 H634                                                13.299058
260
 H636                                                13.551409
261
 H638                                                13.774528
262
 H640                                                14.029927
263
 H100                                                14.270962
264
 H102                                                14.518138
265
 H104                                                14.751410
266
 H106                                                14.992023
267
 H108                                                15.238985
268
 H110                                                15.473042
269
 H112                                                15.711312
270
 H114                                                15.944943
271
 H116                                                16.188137
272
 H118                                                16.416994
273
 H120                                                16.665180
274
 H122                                                16.888611
275
 H124                                                17.141005
276
 H126                                                17.361883
277
 H128                                                17.617563
278
 H130                                                17.873003
279
 H202                                                18.091938
280
 H204                                                18.311176
281
 H206                                                18.564892
282
 H208                                                18.787689
283
 H210                                                19.056686
284
 H212                                                19.282375
285
 H214                                                19.528706
286
 H216                                                19.741192
287
 H218                                                19.986330
288
 H220                                                20.237692
289
 H222                                                20.479778
290
 H224                                                20.692141
291
 H226                                                20.989849
292
 H228                                                21.203072
293
 H230                                                21.409277
294
 H232                                                21.719601
295
 H302                                                21.910690
296
 H305                                                22.641203
297
 H307                                                22.824539
298
 H308                                                23.047621
299
 H310                                                23.230919
300
 H312                                                23.544413
301
 H314                                                23.714527
302
 H316                                                23.938213
303
 H318                                                24.231754
304
 H320                                                24.461927
305
 H322                                                24.691845
306
 H324                                                24.931395
307
 H326                                                25.207863
308

    
309
(104 rows affected)
310
1>
311
> select element_name,psi_y from wu.mi_la_data where rid=1 and fid=18 and
312
> element_type='vmon'
313
> go
314
element_name                             psi_y
315
---------------------------------------- --------------------
316
VP329                                                0.133923
317
VP331                                                0.348453
318
VP333                                                0.577190
319
VP335                                                0.786811
320
VP337                                                1.017066
321
VP339                                                1.207821
322
VP341                                                1.539350
323
VP401                                                1.716924
324
VP403                                                1.942008
325
VP405                                                2.150526
326
VP407                                                2.476033
327
VP409                                                2.668809
328
VP411                                                2.887064
329
VP413                                                3.112949
330
VP415                                                3.323712
331
VP417                                                3.555151
332
VP419                                                3.763320
333
VP421                                                3.994276
334
VP423                                                4.205930
335
VP425                                                4.430527
336
VP427                                                4.650423
337
VP429                                                4.866031
338
VP501                                                5.094086
339
VP503                                                5.303184
340
VP505                                                5.534698
341
VP507                                                5.743833
342
VP509                                                5.973264
343
VP511                                                6.187188
344
VP513                                                6.408645
345
VP515                                                6.631808
346
VP517                                                6.822344
347
VP519                                                7.152043
348
VP521                                                7.332365
349
VP523                                                7.569599
350
VP525                                                7.824651
351
VP527                                                8.072785
352
VP529                                                8.278450
353
VP531                                                8.631019
354
VP601                                                8.901282
355
VP603                                                9.168718
356
VP605                                                9.430427
357
VP607                                                9.692356
358
VP609                                                9.972040
359
VP611                                               10.242712
360
VP613                                               10.597296
361
VP615                                               10.799663
362
VP617                                               11.080527
363
VP619                                               11.293036
364
VP621                                               11.525551
365
VP623                                               11.725794
366
VP625                                               12.058215
367
VP627                                               12.244120
368
VP629                                               12.470724
369
VP631                                               12.689097
370
VP633                                               12.904797
371
VP635                                               13.134043
372
VP637                                               13.341298
373
VP639                                               13.554916
374
VP641                                               13.864285
375
VP101                                               14.064777
376
VP103                                               14.270321
377
VP105                                               14.490418
378
VP107                                               14.801169
379
VP109                                               15.011579
380
VP111                                               15.222526
381
VP113                                               15.446756
382
VP115                                               15.667447
383
VP117                                               15.881435
384
VP119                                               16.111372
385
VP121                                               16.319080
386
VP123                                               16.552282
387
VP125                                               16.760292
388
VP127                                               16.990393
389
VP129                                               17.204279
390
VP201                                               17.426434
391
VP203                                               17.649141
392
VP205                                               17.861975
393
VP207                                               18.092873
394
VP209                                               18.300280
395
VP211                                               18.532227
396
VP213                                               18.742224
397
VP215                                               18.970631
398
VP217                                               19.165800
399
VP219                                               19.493858
400
VP221                                               19.674864
401
VP223                                               19.899832
402
VP225                                               20.168427
403
VP227                                               20.403383
404
VP229                                               20.624989
405
VP231                                               20.884932
406
VP301                                               21.120670
407
VP302A                                              21.309521
408
VP302B                                              21.466612
409
VP303                                               21.685667
410
VP304                                               21.714230
411
VP305B                                              21.793100
412
VP305C                                              21.823685
413
VP307C                                              22.008001
414
VP307B                                              22.046904
415
VP307A                                              22.066105
416
VP309                                               22.156237
417
VP311                                               22.434113
418
VP313                                               22.659552
419
VP315                                               22.884434
420
VP317                                               23.143373
421
VP319                                               23.376923
422
VP321                                               23.592949
423
VP323                                               23.800362
424
VP325                                               24.122501
425
VP327                                               24.300081
426

    
427
110 rows affected)
428
> select element_name,psi_y from wu.mi_la_data where rid=1 and fid=18 and
429
> element_type='vkic'
430
> go
431
element_name                             psi_y
432
---------------------------------------- --------------------
433
V329                                                 0.097648
434
V331                                                 0.309124
435
V333                                                 0.574096
436
V335                                                 0.783641
437
V337                                                 1.013817
438
V339                                                 1.203368
439
V341                                                 1.535662
440
V401                                                 1.699474
441
V403                                                 1.939255
442
V405                                                 2.146126
443
V407                                                 2.472135
444
V409                                                 2.665882
445
V411                                                 2.883634
446
V413                                                 3.109960
447
V415                                                 3.320419
448
V417                                                 3.552015
449
V419                                                 3.760205
450
V421                                                 3.990961
451
V423                                                 4.187322
452
V425                                                 4.409085
453
V427                                                 4.647470
454
V429                                                 4.862649
455
V501                                                 5.091044
456
V503                                                 5.299968
457
V505                                                 5.531489
458
V507                                                 5.740779
459
V509                                                 5.969893
460
V511                                                 6.168746
461
V513                                                 6.387149
462
V515                                                 6.613177
463
V517                                                 6.817478
464
V519                                                 7.148632
465
V521                                                 7.329720
466
V523                                                 7.566314
467
V525                                                 7.818031
468
V527                                                 8.069674
469
V529                                                 8.275172
470
V531                                                 8.627235
471
V601                                                 8.888927
472
V603                                                 9.159654
473
V605                                                 9.414872
474
V607                                                 9.679762
475
V609                                                 9.975262
476
V611                                                10.239204
477
V613                                                10.594195
478
V615                                                10.796393
479
V617                                                11.074096
480
V619                                                11.290547
481
V621                                                11.522853
482
V623                                                11.729968
483
V625                                                12.054451
484
V627                                                12.241189
485
V629                                                12.448812
486
V631                                                12.671028
487
V633                                                12.901330
488
V635                                                13.131071
489
V637                                                13.338021
490
V639                                                13.550083
491
V641                                                13.844616
492
V101                                                14.067046
493
V103                                                14.267874
494
V105                                                14.485305
495
V107                                                14.797526
496
V109                                                15.008224
497
V111                                                15.219589
498
V113                                                15.443288
499
V115                                                15.664527
500
V117                                                15.878032
501
V119                                                16.108343
502
V121                                                16.315861
503
V123                                                16.531942
504
V125                                                16.741430
505
V127                                                16.987001
506
V129                                                17.201344
507
V201                                                17.422977
508
V203                                                17.646198
509
V205                                                17.858606
510
V207                                                18.089809
511
V209                                                18.297096
512
V211                                                18.493675
513
V213                                                18.723461
514
V215                                                18.967222
515
V217                                                19.161463
516
V219                                                19.489973
517
V221                                                19.672527
518
V223                                                19.896183
519
V225                                                20.162537
520
V227                                                20.399912
521
V229                                                20.621887
522
V231                                                20.820486
523
V301                                                21.095890
524
V303                                                21.696987
525
V305                                                21.828379
526
V307                                                22.019556
527
V309                                                22.153036
528
V311                                                22.427492
529
V313                                                22.656504
530
V315                                                22.880884
531
V317                                                23.137260
532
V319                                                23.374191
533
V321                                                23.590570
534
V323                                                23.795303
535
V325                                                24.087021
536
V327                                                24.281178
537

    
538
104 rows affected)
539
>