Last change
on this file since 4 was
4,
checked in by zhangj, 11 years ago
|
Initial import--MML version from SOLEIL@2013
|
File size:
429 bytes
|
Line | |
---|
1 | function N = getnumberofsectors |
---|
2 | %GETNUMBEROFSECTORS - Number of sectors in the lattice |
---|
3 | % N = getnumberofsectors |
---|
4 | |
---|
5 | % |
---|
6 | % Written By Gregory J. Portmann |
---|
7 | |
---|
8 | % Get the sectors from the device list. |
---|
9 | % Guess at a few family names. |
---|
10 | |
---|
11 | List = family2dev(gethcmfamily); |
---|
12 | if isempty(List) |
---|
13 | List = family2dev(gethbpmfamily); |
---|
14 | end |
---|
15 | if isempty(List) |
---|
16 | List = family2dev('BEND'); |
---|
17 | end |
---|
18 | |
---|
19 | |
---|
20 | if isempty(List) |
---|
21 | N = 1; |
---|
22 | else |
---|
23 | N = max(List(:,1)); |
---|
24 | end |
---|
Note: See
TracBrowser
for help on using the repository browser.