Project

General

Profile

dc_job_sel.txt

Kyle Hazelwood, 01/15/2015 10:53 AM

 
1

    
2
*+ 072712 I3 families,tables(curves,functions),mrf,mrfd,c453...
3

    
4
So called families are 'curves' to control RF.
5
The first one is anode curve dealt in module hv.cpp.
6
The other 8 curves (#1:8) are so called high level RF curves, dealt in hl.cpp
7
PGM_STRUCT(6 parameters) defines job at hands.
8
  
9
static  char	famnam[][FAMNAM_LEN] = {
10
                                        "Anode program",
11
                                        "Bias supply program",
12
                                        "Open loop gain",
13
                                        "Cascode Q gain",
14
                                        "Anode limit program",
15
                                        "Grid bias program",
16
                                        "Direct FB loop gain",
17
                                        "Slip stacking APG",
18
                                        "FF B.L.C. amplitude" };
19
static  char 	funnam[][FUNNAM_LEN + 1] = {
20
                           "f(t,e)/ none ",
21
                           " none /f(p)  ",
22
                           "f(t,e)/f(p,e)",
23
                           "f(t,e)/f(p,e)",
24
			   " none /f(p)  ",
25
			   "f(t,e)/f(p,e)",
26
			   "f(t,e)/f(p)  ",
27
			   "f(t,e)/ none ",
28
                           "f(t,e)/f(p,e)"};
29

    
30
Each family can have two curve to control. f(t) the independent of function(curve) is time; f(p) momentum; They may be event dependent - f(t,e) and 
31
f(p,e). This is falged by i1:i20 of DB table i3_pgm_pars. In it there are 2 int for each family for 't' table(curve,fuction) and 'p' table. 
32
Each word has 3 possible values: 0 -curve non-existing; 1 - existing;
33
-1: existing & event dependent.
34
for example the first par (-1,0) for anode table, f(t,e) / no 'p' table. When
35
you select table with the menubar it goes by this i3_pgm_pars. 
36

    
37

    
38

    
39
1> select * from i3_pgm_pars
40
2> go
41
 family      cycle       tgh         mrf         mrfd        c465
42
         i1          i2          i3          i4          i5
43
         i6          i7          i8          i9          i10
44
         i11         i12         i13         i14         i15
45
         i16         i17         i18         i19         i20
46
 ----------- ----------- ----------- ----------- ----------- -----------
47
         ----------- ----------- ----------- ----------- -----------
48
         ----------- ----------- ----------- ----------- -----------
49
         ----------- ----------- ----------- ----------- -----------
50
         ----------- ----------- ----------- ----------- -----------
51
           2           2           0           1           1           1
52
                  -1           0           0           1          -1
53
                  -1          -1          -1           0           1
54
                  -1          -1          -1           1          -1
55
                   0          -1          -1           0           0
56

    
57
(1 row affected)
58

    
59
Notes:
60
1. This is a job defining DB table(single rec) in I3
61
The first 6 are pars defined job at hand,PGM_STRUCT,
62
pgm_par1_r read the 6 pars in 
63
pgm_par1_update update when job is selected.
64
i1:i20 are used to define what kind of table: each pair is for a family.
65
The firsrt is about time table(independent variable is t);
66
the second is for momentum table(independent variable is p)
67
0 = none
68
1 = non-event dependent;
69
-1 = event dependent;
70
tgh represents the current table, either -1 or 1. 0 is out of question.
71
 
72
pgm_par2_r(i,tghc)