EIC Software
Reference for
EIC
simulation and reconstruction software on GitHub
Home page
Related Pages
Modules
Namespaces
Classes
Files
External Links
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
packet_mnemonic.cc
Go to the documentation of this file.
Or view
the newest version in sPHENIX GitHub for file packet_mnemonic.cc
1
#include "
packetConstants.h
"
2
3
4
5
const
char
*
get_mnemonic
(
const
int
structure,
const
int
format)
6
{
7
// if we are not "Unformatted", we return nothing for now.
8
// later we will also return the hit formats.
9
10
if
(structure)
return
""
;
11
12
switch
(format)
13
{
14
case
(
IDCRAW
):
return
"IDCRAW"
;
15
case
(
IDDGEN
):
return
"IDDGEN"
;
16
case
(
IDHCPY
):
return
"IDHCPY"
;
17
case
(
ID1STR
):
return
"ID1STR"
;
18
case
(
IDCSTR
):
return
"IDCSTR"
;
19
case
(
ID2EVT
):
return
"ID2EVT"
;
20
case
(
ID4EVT
):
return
"ID4EVT"
;
21
case
(
ID2SUP
):
return
"ID2SUP"
;
22
case
(
ID4SCALER
):
return
"ID4SCALER"
;
23
case
(
IDDIGITIZER_12S
):
return
"IDDIGITIZER_12S"
;
24
case
(
IDDIGITIZER_16S
):
return
"IDDIGITIZER_16S"
;
25
case
(
IDDIGITIZER_31S
):
return
"IDDIGITIZER_31S"
;
26
case
(
IDHAMMOND
):
return
"IDHAMMOND"
;
27
case
(
IDSAM
):
return
"IDSAM"
;
28
case
(
IDDCFEM
):
return
"IDDCFEM"
;
29
case
(
IDMIZNHC
):
return
"IDMIZNHC"
;
30
31
case
(
IDBBC_DCM0
):
return
"IDBBC_DCM0"
;
32
case
(
IDMVD_DCM0
):
return
"IDMVD_DCM0"
;
33
case
(
IDDCH_DCM0
):
return
"IDDCH_DCM0"
;
34
case
(
IDPC_DCM0
):
return
"IDPC_DCM0"
;
35
case
(
IDTEC_DCM0
):
return
"IDTEC_DCM0"
;
36
case
(
IDRICH_DCM0
):
return
"IDRICH_DCM0"
;
37
case
(
IDTOF_DCM0
):
return
"IDTOF_DCM0"
;
38
case
(
IDPBSC_DCM0
):
return
"IDPBSC_DCM0"
;
39
case
(
IDPBGL_DCM0
):
return
"IDPBGL_DCM0"
;
40
case
(
IDMUTA_DCM0
):
return
"IDMUTA_DCM0"
;
41
case
(
IDMUTC_DCM0
):
return
"IDMUTC_DCM0"
;
42
case
(
IDMUID_DCM0
):
return
"IDMUID_DCM0"
;
43
case
(
IDZDC_DCM0
):
return
"IDZDC_DCM0"
;
44
45
case
(
IDBBC_LL1
):
return
"IDBBC_LL1"
;
46
case
(
IDMVD_LL1
):
return
"IDMVD_LL1"
;
47
case
(
IDRICH_LL1
):
return
"IDRICH_LL1"
;
48
case
(
IDTOF_LL1
):
return
"IDTOF_LL1"
;
49
case
(
IDPBSC_LL1
):
return
"IDPBSC_LL1"
;
50
case
(
IDPBGL_LL1
):
return
"IDPBGL_LL1"
;
51
case
(
IDMUIDH_LL1
):
return
"IDMUIDH_LL1"
;
52
case
(
IDMUIDV_LL1
):
return
"IDMUIDV_LL1"
;
53
case
(
IDNTCZDC_LL1
):
return
"IDNTCZDC_LL1"
;
54
case
(
IDBIG_LL1
):
return
"IDBIG_LL1"
;
55
case
(
IDERT_E_LL1
):
return
"IDERT_E_LL1"
;
56
case
(
IDERT_W_LL1
):
return
"IDERT_W_LL1"
;
57
case
(
IDGL1
):
return
"IDGL1"
;
58
case
(
IDGL1P
):
return
"IDGL1P"
;
59
case
(
IDGL1_EVCLOCK
):
return
"IDGL1_EVCLOCK"
;
60
case
(
IDL2DECISION
) :
return
"L2DECISION"
;
61
case
(
IDL2PRIMITIVE
) :
return
"L2PRIMITIVE"
;
62
case
(
IDBBC_DCM1
):
return
"IDBBC_DCM1"
;
63
case
(
IDMVD_DCM1
):
return
"IDMVD_DCM1"
;
64
case
(
IDDCH_DCM1
):
return
"IDDCH_DCM1"
;
65
case
(
IDPC_DCM1
):
return
"IDPC_DCM1"
;
66
case
(
IDTEC_DCM1
):
return
"IDTEC_DCM1"
;
67
case
(
IDRICH_DCM1
):
return
"IDRICH_DCM1"
;
68
case
(
IDTOF_DCM1
):
return
"IDTOF_DCM1"
;
69
case
(
IDPBSC_DCM1
):
return
"IDPBSC_DCM1"
;
70
case
(
IDPBGL_DCM1
):
return
"IDPBGL_DCM1"
;
71
case
(
IDMUTA_DCM1
):
return
"IDMUTA_DCM1"
;
72
case
(
IDMUTC_DCM1
):
return
"IDMUTC_DCM1"
;
73
case
(
IDMUID_DCM1
):
return
"IDMUID_DCM1"
;
74
case
(
IDZDC_DCM1
):
return
"IDZDC_DCM1"
;
75
76
case
(
IDBBC_DCM2
):
return
"IDBBC_DCM2"
;
77
case
(
IDMVD_DCM2
):
return
"IDMVD_DCM2"
;
78
case
(
IDDCH_DCM2
):
return
"IDDCH_DCM2"
;
79
case
(
IDPC_DCM2
):
return
"IDPC_DCM2"
;
80
case
(
IDTEC_DCM2
):
return
"IDTEC_DCM2"
;
81
case
(
IDRICH_DCM2
):
return
"IDRICH_DCM2"
;
82
case
(
IDTOF_DCM2
):
return
"IDTOF_DCM2"
;
83
case
(
IDMUTA_DCM2
):
return
"IDMUTA_DCM2"
;
84
case
(
IDMUTC_DCM2
):
return
"IDMUTC_DCM2"
;
85
// case(IDMUID_DCM2): return "IDMUID_DCM2";
86
case
(
IDZDC_DCM2
):
return
"IDZDC_DCM2"
;
87
88
// case(IDPC_DCM3): return "IDPC_DCM3";
89
90
case
(
IDEMC_OLDSTYLE
):
return
"IDEMC_OLDSTYLE"
;
91
92
case
(
IDEMC_REFERENCE
):
return
"IDEMC_REFERENCE"
;
93
case
(
IDEMC_REFERENCE0SUP
):
return
"IDEMC_REFERENCE0SUP"
;
94
95
case
(
IDEMC_SHORTREFERENCE
):
return
"IDEMC_SHORTREFERENCE"
;
96
case
(
IDEMC_SHORTREFERENCE0SUP
):
return
"IDEMC_SHORTREFERENCE0SUP"
;
97
98
99
case
(
IDEMC_DCM32
):
return
"IDEMC_DCM32"
;
100
case
(
IDPBSC_DCMS
):
return
"IDPBSC_DCMS"
;
101
case
(
IDPBSC_DCMZS
):
return
"IDPBSC_DCMZS"
;
102
// case(IDPBSC_DCM5): return "IDPBSC_DCM5";
103
// case(IDPBSC_DCM05): return "IDPBSC_DCM05";
104
105
case
(
IDPBGL_DCM32
):
return
"IDPBGL_DCM32"
;
106
case
(
IDPBGL_DCMS
):
return
"IDPBGL_DCMS"
;
107
case
(
IDPBGL_DCMZS
):
return
"IDPBGL_DCMZS"
;
108
//case(IDPBGL_DCM5): return "IDPBGL_DCM5";
109
//case(IDPBGL_DCM05): return "IDPBGL_DCM05";
110
111
case
(
IDTOF_DCM16
):
return
"IDTOF_DCM16"
;
112
113
case
(
IDPC_FPGA
):
return
"IDPC_FPGA"
;
114
case
(
IDPC_FPGA0SUP
):
return
"IDPC_FPGA0SUP"
;
115
116
case
(
IDRICH_FPGA
):
return
"IDRICH_FPGA"
;
117
case
(
IDRICH_FPGA0SUP
):
return
"IDRICH_FPGA0SUP"
;
118
119
case
(
IDMUTC_FPGA
):
return
"IDMUTC_FPGA"
;
120
case
(
IDMUTC_FPGA0SUP
):
return
"IDMUTC_FPGA0SUP"
;
121
case
(
IDMUTC_FPGASHORT
):
return
"IDMUTC_FPGASHORT"
;
122
case
(
IDMUTC_FPGASHORTSUP
):
return
"IDMUTC_FPGASHORTSUP"
;
123
case
(
IDMUTC_FPGANEW
):
return
"IDMUTC_FPGANEW"
;
124
case
(
IDMUTC_FPGANEWSUP
):
return
"IDMUTC_FPGANEWSUP"
;
125
126
case
(
IDMUTC_15_FPGA
):
return
"IDMUTC_15_FPGA"
;
127
case
(
IDMUTC_15_FPGA0SUP
):
return
"IDMUTC_15_FPGA0SUP"
;
128
129
case
(
IDMUTC_DCM3
):
return
"IDMUTC_DCM3"
;
130
131
case
(
IDMVD_FPGA
):
return
"IDMVD_FPGA"
;
132
case
(
IDMVD_FPGA0SUP
):
return
"IDMVD_FPGA0SUP"
;
133
case
(
IDMVD_PED_FPGA0SUP
):
return
"IDMVD_PED_FPGA0SUP"
;
134
135
// case(IDMUID_FPGA): return "IDMUID_FPGA";
136
case
(
IDMUID_FPGA0SUP
):
return
"IDMUID_FPGA0SUP"
;
137
138
case
(
IDBBC_FPGA
):
return
"IDBBC_FPGA"
;
139
case
(
IDBBC_FPGA0SUP
):
return
"IDBBC_FPGA0SUP"
;
140
141
case
(
IDZDC_FPGA
):
return
"IDZDC_FPGA"
;
142
case
(
IDZDC_FPGA0SUP
):
return
"IDZDC_FPGA0SUP"
;
143
144
case
(
IDTOF_FPGA
):
return
"IDTOF_FPGA"
;
145
case
(
IDTOF_FPGA0SUP
):
return
"IDTOF_FPGA0SUP"
;
146
147
case
(
IDTOFW_FPGA
):
return
"IDTOFW_FPGA"
;
148
case
(
IDTOFW_FPGA0SUP
):
return
"IDTOFW_FPGA0SUP"
;
149
150
case
(
IDEMC_FPGA
):
return
"IDEMC_FPGA"
;
151
case
(
IDEMC_FPGA0SUP
):
return
"IDEMC_FPGA0SUP"
;
152
case
(
IDEMC_FPGASHORT
):
return
"IDEMC_FPGASHORT"
;
153
case
(
IDEMC_FPGASHORT0SUP
):
return
"IDEMC_FPGASHORT0SUP"
;
154
155
case
(
IDEMC_FPGA3WORDS
):
return
"IDEMC_FPGA3WORDS"
;
156
case
(
IDEMC_FPGA3WORDS0SUP
):
return
"IDEMC_FPGA3WORDS0SUP"
;
157
158
case
(
IDNTCT0_FPGA
):
return
"IDNTCT0_FPGA"
;
159
case
(
IDNTCT0_FPGA0SUP
):
return
"IDNTCT0_FPGA0SUP"
;
160
161
case
(
IDRPC_DCM0
):
return
"IDRPC_DCM0"
;
162
case
(
IDRPC_FPGA
):
return
"IDRPC_FPGA"
;
163
case
(
IDRPC_FPGA0SUP
):
return
"IDRPC_FPGA0SUP"
;
164
165
166
case
(
IDEMCRICH_LL1
):
return
"IDEMCRICH_LL1"
;
167
168
case
(
IDFCAL_FPGA
):
return
"IDFCAL_FPGA"
;
169
case
(
IDFCAL_FPGA0SUP
):
return
"IDFCAL_FPGA0SUP"
;
170
case
(
IDFCAL_FPGA3
):
return
"IDFCAL_FPGA3"
;
171
case
(
IDFCAL_FPGA0SUP3
):
return
"IDFCAL_FPGA0SUP3"
;
172
173
case
(
IDHBD_FPGA
):
return
"IDHBD_FPGA"
;
174
case
(
IDHBD_FPGA0SUP
):
return
"IDHBD_FPGA0SUP"
;
175
case
(
IDHBD_FPGASHORT
):
return
"IDHBD_FPGASHORT"
;
176
case
(
IDHBD_FPGASHORT0SUP
):
return
"IDHBD_FPGASHORT0SUP"
;
177
178
case
(
IDFVTX_DCM0
):
return
"IDFVTX_DCM0"
;
179
case
(
IDFVTX_SIM
):
return
"IDFVTX_SIM"
;
180
181
case
(
IDRXNP_FPGASHORT
):
return
"IDRXNP_FPGASHORT"
;
182
case
(
IDRXNP_FPGASHORT0SUP
):
return
"IDRXNP_FPGASHORT0SUP"
;
183
184
185
case
(
IDCDEVIR
):
return
"IDCDEVIR"
;
186
case
(
IDCDEVDVM
):
return
"IDCDEVDVM"
;
187
case
(
IDCDEVRING
):
return
"IDCDEVRING"
;
188
case
(
IDCDEVRINGPOL
):
return
"IDCDEVRINGPOL"
;
189
case
(
IDCDEVRINGFILL
):
return
"IDCDEVRINGFILL"
;
190
case
(
IDCDEVWCMHISTORY
):
return
"IDCDEVWCMHISTORY"
;
191
case
(
IDCDEVSIS
):
return
"IDCDEVSIS"
;
192
case
(
IDCDEVPOLARIMETER
):
return
"IDCDEVPOLARIMETER"
;
193
case
(
IDCDEVPOLDATA
):
return
"IDCDEVPOLDATA"
;
194
//ejd ADD cdev packed identifiers
195
case
(
IDCDEVPOLARIMETERTARGET
):
return
"IDCDEVPOLTARGET"
;
196
case
(
IDCDEVBPM
):
return
"IDCDEVBPM"
;
197
case
(
IDCDEVMADCH
):
return
"IDCDEVMADCH"
;
198
case
(
IDCDEVBUCKETS
):
return
"IDCDEVBUCKETS"
;
199
case
(
IDCDEVRINGNOPOL
):
return
"IDCDEVRINGNOPOL"
;
200
201
case
(
IDGL1PSUM
):
return
"IDGL1PSUM"
;
202
case
(
IDGL1PSUMOBS
):
return
"IDGL1PSUMOBS"
;
203
case
(
IDCDEVDESCR
):
return
"IDCDEVDESCR"
;
204
case
(
IDSTARSCALER
):
return
"IDSTARSCALER"
;
205
206
case
(
IDPXL_DCM0
):
return
"IDPXL_DCM0"
;
207
case
(
IDMUTRG_DCM0
):
return
"IDMUTRG_DCM0"
;
208
case
(
IDFOCAL_FPGATEST
):
return
"IDFOCAL_FPGATEST"
;
209
210
211
}
212
return
"UNKNOWN"
;
213
}
214
215
// ---------------------------------------------------------------------
216
217
const
char
*
get_type_mnemonic
(
const
int
id
)
218
{
219
switch
(
id
)
220
{
221
case
(1):
return
" 8-bit"
;
222
case
(2):
return
"16-bit"
;
223
case
(4):
return
"32-bit"
;
224
}
225
return
"UNKNOWN"
;
226
}
online_distribution
blob
master
newbasic
packet_mnemonic.cc
Built by
Jin Huang
. updated:
Mon Jan 22 2024 12:43:55
using
1.8.2 with
EIC GitHub integration