Analysis Software
Documentation for sPHENIX simulation software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
msg_profile.h
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file msg_profile.h
1 #ifndef __MSG_PROFILE_H__
2 #define __MSG_PROFILE_H__
3 
4 
5 // define some types of messages
6 
7 #define MSG_TYPE_WIDTH 3
8 #define MSG_TYPE_MAX 7
9 
10 #define MSG_TYPE_UNSPECIFIED 0
11 #define MSG_TYPE_ONLINE 1
12 #define MSG_TYPE_OFFLINE 2
13 #define MSG_TYPE_MONITORING 3
14 #define MSG_TYPE_CONTROL 4
15 #define MSG_TYPE_CODEDEBUG 5
16 #define MSG_TYPE_RUNTIME 6
17 #define MSG_TYPE_DEFAULT MSG_TYPE_UNSPECIFIED
18 
19 // define the source of a message
20 
21 #define MSG_SOURCE_WIDTH 3
22 #define MSG_SOURCE_MAX 34
23 
24 #define MSG_SOURCE_UNSPECIFIED 0
25 #define MSG_SOURCE_BEAMBEAM 1
26 #define MSG_SOURCE_BBC 1
27 #define MSG_SOURCE_MVD 2
28 #define MSG_SOURCE_DC 3
29 #define MSG_SOURCE_PC 4
30 #define MSG_SOURCE_TEC 5
31 #define MSG_SOURCE_RICH 6
32 #define MSG_SOURCE_TOF 7
33 #define MSG_SOURCE_PBSC 8
34 #define MSG_SOURCE_PBGL 9
35 #define MSG_SOURCE_MUTA 10
36 #define MSG_SOURCE_MUTC 11
37 #define MSG_SOURCE_MUID 12
38 #define MSG_SOURCE_HV 13
39 #define MSG_SOURCE_ET 14
40 #define MSG_SOURCE_RC 15
41 #define MSG_SOURCE_EVB 16
42 #define MSG_SOURCE_ZDC 17
43 #define MSG_SOURCE_DAQMON 18
44 #define MSG_SOURCE_LVL1 19
45 #define MSG_SOURCE_LVL2 20
46 #define MSG_SOURCE_GL1 21
47 #define MSG_SOURCE_BUFFERBOX 22
48 #define MSG_SOURCE_AEROGEL 23
49 #define MSG_SOURCE_ERT 24
50 #define MSG_SOURCE_MPC 25
51 #define MSG_SOURCE_RXNP 26
52 #define MSG_SOURCE_LOCALPOL 27
53 #define MSG_SOURCE_MONITOR 28
54 #define MSG_SOURCE_MUTR 29
55 #define MSG_SOURCE_TOFW 30
56 #define MSG_SOURCE_CLOCK 31
57 #define MSG_SOURCE_VTX 32
58 #define MSG_SOURCE_FVTX 33
59 
60 #define MSG_SOURCE_DEFAULT MSG_SOURCE_UNSPECIFIED
61 
62 // define the severity of a message
63 
64 #define MSG_SEV_WIDTH 2
65 #define MSG_SEV_MAX 5
66 
67 #define MSG_SEV_INFORMATIONAL 0
68 #define MSG_SEV_WARNING 1
69 #define MSG_SEV_ERROR 2
70 #define MSG_SEV_SEVEREERROR 3
71 #define MSG_SEV_FATAL 4
72 #define MSG_SEV_DEFAULT MSG_SEV_INFORMATIONAL
73 
74 #endif