StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
rc.h
1 #ifndef _RC_H_
2 #define _RC_H_
3 
4 
5 /*******************************************************/
6 /* States */
7 /*******************************************************/
8 #define RC_NONE 0
9 #define RC_PRESENT 1
10 #define RC_READY 2
11 #define RC_RUNNING 3
12 #define RC_PAUSED 4
13 #define RC_ERROR 5
14 #define RC_CONFIGURING 6 /* new state as of Feb 2019 */
15 
16 #define RC_WAITING 128 /* Used as a flag on top of other status's */
17 #define RC_READY_WAIT (RC_WAITING + RC_READY)
18 #define RC_RUNNING_WAIT (RC_WAITING + RC_RUNNING)
19 #define RC_PAUSED_WAIT (RC_WAITING + RC_PAUSED)
20 #define RC_PRESENT_WAIT (RC_WAITING + RC_PRESENT)
21 
22 // Global Handler states (new model)
23 #define GS_ZERO 0 //unused; but for completeness
24 #define GS_NONE 1
25 #define GS_PRESENT 1
26 #define GS_READY 2
27 #define GS_CONFIGURING 3
28 #define GS_CONFIGURED 4
29 #define GS_STARTING 5
30 #define GS_RUNNING 6
31 #define GS_PAUSING 7
32 #define GS_PAUSED 8
33 #define GS_STOPPING 9
34 #define GS_ERROR 10
35 #define GS_WAITING 11 // mix of states for multinode detectors...
36 #define GS_SYNCING 12 // for FCS serial links
37 #define GS_ANY 100 // I want to move this to a sane value like 12
38 
39 // Reason for last run stop...
40 #define GSR_NO_RUNS 0
41 #define GSR_STOPRUN 1
42 #define GSR_STOPRUN_OPER_BAD 2 // operator marked bad
43 #define GSR_FLUSHTOKENS 3
44 #define GSR_FORCESTOP 4 // Also fill in node
45 #define GSR_DISCONNECTED 5 // Also fill in node
46 #define GSR_REBOOTED 6
47 #define GSR_STOPRUN_FAILED 7 // the stoprun command failed: file in node
48 
49 /*******************************************************/
50 /* Default Handler locations */
51 /*******************************************************/
52 #define ETH_OUT_SERVER "daqman"
53 #define ETH_SERVER_PORT 4000
54 #define ETH_UNIX_PORT ETH_SERVER_PORT
55 #define ETH_CLIENT_PORT 4001
56 #define ETH_VXWORKS_PORT ETH_CLIENT_PORT
57 #define ETH_RC_PORT 4010
58 
59 
60 /*******************************************************/
61 /* Configuration File Field Definitions */
62 /*******************************************************/
63 #define EVB_DEST_SCSI 0
64 #define EVB_DEST_TAPE 1
65 #define EVB_DEST_FILE 2
66 #define EVB_DEST_NONE 3
67 #define EVB_DEST_ETHNET 4
68 #define EVB_DEST_MYRINET 5
69 #define EVB_DEST_MYRINET2 6
70 
71 #define BB_DEST_NONE 0
72 #define BB_DEST_RCF 1
73 #define BB_DEST_DISK 2
74 #define BB_DEST_DBONLY 3
75 #define BB_DEST_COPY 4 /* both rcf and disk */
76 #define BB_DEST_WRITER_NONE 5
77 #define BB_DEST_LOCAL_DISK 6
78 #define BB_DEST_NONE_EVB 7
79 #endif