1 | #ifndef MAD_DEF_H |
---|
2 | #define MAD_DEF_H |
---|
3 | |
---|
4 | // Temporary file: |
---|
5 | // these constants should be split over their respective modules... |
---|
6 | // and most of them should be replaced by constant variables or enums |
---|
7 | |
---|
8 | /* preparation of Touschek */ |
---|
9 | /* defined constants for word lengths etc. */ |
---|
10 | #define ALIGN_MAX 14 /* alignment error array length */ |
---|
11 | #define EFIELD_TAB 42 /* field error array length for ESAVE table */ |
---|
12 | #define FIELD_MAX 42 /* field error array length */ |
---|
13 | #define RFPHASE_MAX 42 /* rf-phase error array length */ |
---|
14 | #define SEQ_DUMP_LEVEL 0 /* chooses amount of dumped output */ |
---|
15 | #define NAME_L 48 /* internal name length */ |
---|
16 | #define TITLE_SIZE 114 /* Size of the title for gnuplot ploting in tracking mode */ |
---|
17 | #define PTC_NAMES_L 13 /* Number of ptc variables treated in select_ptc_normal */ |
---|
18 | #define MAX_ROWS 101 /* Initial size of ptc_normal table */ |
---|
19 | #define FNAME_L 240 /* for file names */ |
---|
20 | |
---|
21 | #define INVALID 1.e20 /* used for erroneous value requests */ |
---|
22 | |
---|
23 | #define AUX_LG 50000 /* initial size for ancillary buffers */ |
---|
24 | #define MAX_ITEM 1000 /* initial # of items in tok_list etc. */ |
---|
25 | #define MAX_D_ITEM 30000 /* initial storage size for doubles */ |
---|
26 | #define MAX_LINE 20000 /* max. input line length (has to stay fixed) */ |
---|
27 | #define MAX_LOOP 100 /* max. count for (possibly circular) calls */ |
---|
28 | #define MAX_COND 100 /* max. nesting level for "if" and "while" */ |
---|
29 | #define MAX_TYPE 11 /* for SXF output */ |
---|
30 | #define MAX_TAG 50 /* for SXF output */ |
---|
31 | #define CHAR_BUFF_SIZE 100000 /* size of dynamic char_buff members */ |
---|
32 | #define IN_BUFF_SIZE 500000 /* initial size of buffer for command groups */ |
---|
33 | #define LINE_FILL 240 /* max. line length -2 for "save" output */ |
---|
34 | #define LINE_F_MAD8 70 /* the same, for mad-8 format */ |
---|
35 | #define MADX_LINE_MAX 78 /* for SXF output */ |
---|
36 | #define MAX_RAND 1000000000 /* for random generator */ |
---|
37 | #define NR_RAND 55 /* for random generator */ |
---|
38 | #define NJ_RAND 24 /* for random generator */ |
---|
39 | #define ND_RAND 21 /* for random generator */ |
---|
40 | #define MATCH_WORK 10 /* no. of work spaces in matching */ |
---|
41 | #define USER_TABLE_LENGTH 100 /* initial length of user defined tables */ |
---|
42 | #define MAXARRAY 1000 /* max. length of apex tables in aperture module*/ |
---|
43 | #define DQ_DELTAP 1.e-6 /* deltap for difference calculation of chrom. */ |
---|
44 | |
---|
45 | #define E_D_MAX 500 /* max. length of extra displacement tables (per element) */ |
---|
46 | #define E_D_LIST_CHUNK 1000 /* chunk to allocate memory for extra displacement tables */ |
---|
47 | |
---|
48 | #define MADX_LONG 1 |
---|
49 | #define MADX_DOUBLE 2 |
---|
50 | #define MADX_STRING 3 |
---|
51 | |
---|
52 | #define MAX_TFS_ROW 2000 /* max. number of rows for SDDS conversion */ |
---|
53 | #define MAX_TFS_COL 500 /* max. number of columns for SDDS conversion */ |
---|
54 | |
---|
55 | #endif // MAD_DEF_H |
---|
56 | |
---|