StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
segments.h
1 #ifndef _SEGMENTS_H_
2 #define _SEGMENTS_H_
3 
4 // shmLib Shared memory segments used by DAQ
5 //
6 // The segment number should be between 0...9
7 
8 // Bufferbox:
9 #ifndef RTS_PROJECT_PP
10 #define EVB_MON_SEG 1
11 #define EVB_SUPERMON_SEG 3
12 #define EVB_CTL_SEG 4
13 #define EVB_SCA_SEG 5
14 #define SPOOL_CTL_SEG 8
15 #define DISK_MANAGER_SEG 9
16 #define MSG_Q_SEG 2
17 #define MSG_Q_SEG_SIZE (1024 * 1024 * 20)
18 #else // PP!
19 #define EVB_MON_SEG 1
20 #define EVB_CTL_SEG 4
21 #define EVB_SCA_SEG 2
22 #define SPOOL_CTL_SEG 8
23 #endif
24 
25 // evp:
26 #define EVP_SEG 5
27 
28 #ifndef RTS_PROJECT_PP
29 #define EVP_SEG_SIZE (300*1024*1024)
30 #else
31 #define EVP_SEG_SIZE (64*1024) // biggest pp event ~64k
32 #endif
33 
34 #define VX_FILE_REQUEST_SEG 6
35 #define VX_FILE_REQUEST_SIZE (1024 * 1024 * 12)
36 
37 #define SC_SEG 7
38 
39 // Some usefull keys for reference
40 //
41 //#define SHM_KEY_BASE 0xfd000000
42 //#define SHM_KEY_SEM 0xfd001000
43 //#define SHM_KEY_QUEUES 0xfd002000
44 
45 #endif