Analysis Software
Documentation for
sPHENIX
simulation software
Home page
Related Pages
Modules
Namespaces
Classes
Files
Examples
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
24
case
(
IDDIGITIZER_12S
):
return
"IDDIGITIZER_12S"
;
25
case
(
IDDIGITIZER_16S
):
return
"IDDIGITIZER_16S"
;
26
case
(
IDDIGITIZER_31S
):
return
"IDDIGITIZER_31S"
;
27
28
case
(
IDDIGITIZERV3_2S
):
return
"IDDIGITIZERV3_2S"
;
29
case
(
IDDIGITIZERV3_4S
):
return
"IDDIGITIZERV3_4S"
;
30
case
(
IDDIGITIZERV3_6S
):
return
"IDDIGITIZERV3_6S"
;
31
case
(
IDDIGITIZERV3_8S
):
return
"IDDIGITIZERV3_8S"
;
32
33
case
(
IDDIGITIZERV3_10S
):
return
"IDDIGITIZERV3_10S"
;
34
case
(
IDDIGITIZERV3_12S
):
return
"IDDIGITIZERV3_12S"
;
35
case
(
IDDIGITIZERV3_14S
):
return
"IDDIGITIZERV3_14S"
;
36
case
(
IDDIGITIZERV3_16S
):
return
"IDDIGITIZERV3_16S"
;
37
case
(
IDDIGITIZERV3_18S
):
return
"IDDIGITIZERV3_18S"
;
38
39
case
(
IDDIGITIZERV3_20S
):
return
"IDDIGITIZERV3_20S"
;
40
case
(
IDDIGITIZERV3_22S
):
return
"IDDIGITIZERV3_22S"
;
41
case
(
IDDIGITIZERV3_24S
):
return
"IDDIGITIZERV3_24S"
;
42
case
(
IDDIGITIZERV3_26S
):
return
"IDDIGITIZERV3_26S"
;
43
case
(
IDDIGITIZERV3_28S
):
return
"IDDIGITIZERV3_28S"
;
44
45
case
(
IDDIGITIZERV3_30S
):
return
"IDDIGITIZERV3_30S"
;
46
47
case
(
IDHAMMOND
):
return
"IDHAMMOND"
;
48
case
(
IDSAM
):
return
"IDSAM"
;
49
case
(
IDDCFEM
):
return
"IDDCFEM"
;
50
case
(
IDMIZNHC
):
return
"IDMIZNHC"
;
51
case
(
IDLL1_20S
):
return
"IDLL1_20S"
;
52
case
(
IDLL1v2_20S
):
return
"IDLL1v2_20S"
;
53
54
case
(
IDBBC_DCM0
):
return
"IDBBC_DCM0"
;
55
case
(
IDMVD_DCM0
):
return
"IDMVD_DCM0"
;
56
case
(
IDDCH_DCM0
):
return
"IDDCH_DCM0"
;
57
case
(
IDPC_DCM0
):
return
"IDPC_DCM0"
;
58
case
(
IDTEC_DCM0
):
return
"IDTEC_DCM0"
;
59
case
(
IDRICH_DCM0
):
return
"IDRICH_DCM0"
;
60
case
(
IDTOF_DCM0
):
return
"IDTOF_DCM0"
;
61
case
(
IDPBSC_DCM0
):
return
"IDPBSC_DCM0"
;
62
case
(
IDPBGL_DCM0
):
return
"IDPBGL_DCM0"
;
63
case
(
IDMUTA_DCM0
):
return
"IDMUTA_DCM0"
;
64
case
(
IDMUTC_DCM0
):
return
"IDMUTC_DCM0"
;
65
case
(
IDMUID_DCM0
):
return
"IDMUID_DCM0"
;
66
case
(
IDZDC_DCM0
):
return
"IDZDC_DCM0"
;
67
68
case
(
IDBBC_LL1
):
return
"IDBBC_LL1"
;
69
case
(
IDMVD_LL1
):
return
"IDMVD_LL1"
;
70
case
(
IDRICH_LL1
):
return
"IDRICH_LL1"
;
71
case
(
IDTOF_LL1
):
return
"IDTOF_LL1"
;
72
case
(
IDPBSC_LL1
):
return
"IDPBSC_LL1"
;
73
case
(
IDPBGL_LL1
):
return
"IDPBGL_LL1"
;
74
case
(
IDMUIDH_LL1
):
return
"IDMUIDH_LL1"
;
75
case
(
IDMUIDV_LL1
):
return
"IDMUIDV_LL1"
;
76
case
(
IDNTCZDC_LL1
):
return
"IDNTCZDC_LL1"
;
77
case
(
IDBIG_LL1
):
return
"IDBIG_LL1"
;
78
case
(
IDERT_E_LL1
):
return
"IDERT_E_LL1"
;
79
case
(
IDERT_W_LL1
):
return
"IDERT_W_LL1"
;
80
case
(
IDGL1
):
return
"IDGL1"
;
81
case
(
IDGL1P
):
return
"IDGL1P"
;
82
case
(
IDGL1_EVCLOCK
):
return
"IDGL1_EVCLOCK"
;
83
case
(
IDL2DECISION
) :
return
"L2DECISION"
;
84
case
(
IDL2PRIMITIVE
) :
return
"L2PRIMITIVE"
;
85
case
(
IDBBC_DCM1
):
return
"IDBBC_DCM1"
;
86
case
(
IDMVD_DCM1
):
return
"IDMVD_DCM1"
;
87
case
(
IDDCH_DCM1
):
return
"IDDCH_DCM1"
;
88
case
(
IDPC_DCM1
):
return
"IDPC_DCM1"
;
89
case
(
IDTEC_DCM1
):
return
"IDTEC_DCM1"
;
90
case
(
IDRICH_DCM1
):
return
"IDRICH_DCM1"
;
91
case
(
IDTOF_DCM1
):
return
"IDTOF_DCM1"
;
92
case
(
IDPBSC_DCM1
):
return
"IDPBSC_DCM1"
;
93
case
(
IDPBGL_DCM1
):
return
"IDPBGL_DCM1"
;
94
case
(
IDMUTA_DCM1
):
return
"IDMUTA_DCM1"
;
95
case
(
IDMUTC_DCM1
):
return
"IDMUTC_DCM1"
;
96
case
(
IDMUID_DCM1
):
return
"IDMUID_DCM1"
;
97
case
(
IDZDC_DCM1
):
return
"IDZDC_DCM1"
;
98
99
case
(
IDBBC_DCM2
):
return
"IDBBC_DCM2"
;
100
case
(
IDMVD_DCM2
):
return
"IDMVD_DCM2"
;
101
case
(
IDDCH_DCM2
):
return
"IDDCH_DCM2"
;
102
case
(
IDPC_DCM2
):
return
"IDPC_DCM2"
;
103
case
(
IDTEC_DCM2
):
return
"IDTEC_DCM2"
;
104
case
(
IDRICH_DCM2
):
return
"IDRICH_DCM2"
;
105
case
(
IDTOF_DCM2
):
return
"IDTOF_DCM2"
;
106
case
(
IDMUTA_DCM2
):
return
"IDMUTA_DCM2"
;
107
case
(
IDMUTC_DCM2
):
return
"IDMUTC_DCM2"
;
108
// case(IDMUID_DCM2): return "IDMUID_DCM2";
109
case
(
IDZDC_DCM2
):
return
"IDZDC_DCM2"
;
110
111
// case(IDPC_DCM3): return "IDPC_DCM3";
112
113
case
(
IDEMC_OLDSTYLE
):
return
"IDEMC_OLDSTYLE"
;
114
115
case
(
IDEMC_REFERENCE
):
return
"IDEMC_REFERENCE"
;
116
case
(
IDEMC_REFERENCE0SUP
):
return
"IDEMC_REFERENCE0SUP"
;
117
118
case
(
IDEMC_SHORTREFERENCE
):
return
"IDEMC_SHORTREFERENCE"
;
119
case
(
IDEMC_SHORTREFERENCE0SUP
):
return
"IDEMC_SHORTREFERENCE0SUP"
;
120
121
122
case
(
IDEMC_DCM32
):
return
"IDEMC_DCM32"
;
123
case
(
IDPBSC_DCMS
):
return
"IDPBSC_DCMS"
;
124
case
(
IDPBSC_DCMZS
):
return
"IDPBSC_DCMZS"
;
125
// case(IDPBSC_DCM5): return "IDPBSC_DCM5";
126
// case(IDPBSC_DCM05): return "IDPBSC_DCM05";
127
128
case
(
IDPBGL_DCM32
):
return
"IDPBGL_DCM32"
;
129
case
(
IDPBGL_DCMS
):
return
"IDPBGL_DCMS"
;
130
case
(
IDPBGL_DCMZS
):
return
"IDPBGL_DCMZS"
;
131
//case(IDPBGL_DCM5): return "IDPBGL_DCM5";
132
//case(IDPBGL_DCM05): return "IDPBGL_DCM05";
133
134
case
(
IDTOF_DCM16
):
return
"IDTOF_DCM16"
;
135
136
case
(
IDPC_FPGA
):
return
"IDPC_FPGA"
;
137
case
(
IDPC_FPGA0SUP
):
return
"IDPC_FPGA0SUP"
;
138
139
case
(
IDRICH_FPGA
):
return
"IDRICH_FPGA"
;
140
case
(
IDRICH_FPGA0SUP
):
return
"IDRICH_FPGA0SUP"
;
141
142
case
(
IDMUTC_FPGA
):
return
"IDMUTC_FPGA"
;
143
case
(
IDMUTC_FPGA0SUP
):
return
"IDMUTC_FPGA0SUP"
;
144
case
(
IDMUTC_FPGASHORT
):
return
"IDMUTC_FPGASHORT"
;
145
case
(
IDMUTC_FPGASHORTSUP
):
return
"IDMUTC_FPGASHORTSUP"
;
146
case
(
IDMUTC_FPGANEW
):
return
"IDMUTC_FPGANEW"
;
147
case
(
IDMUTC_FPGANEWSUP
):
return
"IDMUTC_FPGANEWSUP"
;
148
149
case
(
IDMUTC_15_FPGA
):
return
"IDMUTC_15_FPGA"
;
150
case
(
IDMUTC_15_FPGA0SUP
):
return
"IDMUTC_15_FPGA0SUP"
;
151
152
case
(
IDMUTC_DCM3
):
return
"IDMUTC_DCM3"
;
153
154
case
(
IDMVD_FPGA
):
return
"IDMVD_FPGA"
;
155
case
(
IDMVD_FPGA0SUP
):
return
"IDMVD_FPGA0SUP"
;
156
case
(
IDMVD_PED_FPGA0SUP
):
return
"IDMVD_PED_FPGA0SUP"
;
157
158
// case(IDMUID_FPGA): return "IDMUID_FPGA";
159
case
(
IDMUID_FPGA0SUP
):
return
"IDMUID_FPGA0SUP"
;
160
161
case
(
IDBBC_FPGA
):
return
"IDBBC_FPGA"
;
162
case
(
IDBBC_FPGA0SUP
):
return
"IDBBC_FPGA0SUP"
;
163
164
case
(
IDZDC_FPGA
):
return
"IDZDC_FPGA"
;
165
case
(
IDZDC_FPGA0SUP
):
return
"IDZDC_FPGA0SUP"
;
166
167
case
(
IDTOF_FPGA
):
return
"IDTOF_FPGA"
;
168
case
(
IDTOF_FPGA0SUP
):
return
"IDTOF_FPGA0SUP"
;
169
170
case
(
IDTOFW_FPGA
):
return
"IDTOFW_FPGA"
;
171
case
(
IDTOFW_FPGA0SUP
):
return
"IDTOFW_FPGA0SUP"
;
172
173
case
(
IDEMC_FPGA
):
return
"IDEMC_FPGA"
;
174
case
(
IDEMC_FPGA0SUP
):
return
"IDEMC_FPGA0SUP"
;
175
case
(
IDEMC_FPGASHORT
):
return
"IDEMC_FPGASHORT"
;
176
case
(
IDEMC_FPGASHORT0SUP
):
return
"IDEMC_FPGASHORT0SUP"
;
177
178
case
(
IDEMC_FPGA3WORDS
):
return
"IDEMC_FPGA3WORDS"
;
179
case
(
IDEMC_FPGA3WORDS0SUP
):
return
"IDEMC_FPGA3WORDS0SUP"
;
180
181
case
(
IDNTCT0_FPGA
):
return
"IDNTCT0_FPGA"
;
182
case
(
IDNTCT0_FPGA0SUP
):
return
"IDNTCT0_FPGA0SUP"
;
183
184
case
(
IDRPC_DCM0
):
return
"IDRPC_DCM0"
;
185
case
(
IDRPC_FPGA
):
return
"IDRPC_FPGA"
;
186
case
(
IDRPC_FPGA0SUP
):
return
"IDRPC_FPGA0SUP"
;
187
188
189
case
(
IDEMCRICH_LL1
):
return
"IDEMCRICH_LL1"
;
190
191
case
(
IDFCAL_FPGA
):
return
"IDFCAL_FPGA"
;
192
case
(
IDFCAL_FPGA0SUP
):
return
"IDFCAL_FPGA0SUP"
;
193
case
(
IDFCAL_FPGA3
):
return
"IDFCAL_FPGA3"
;
194
case
(
IDFCAL_FPGA0SUP3
):
return
"IDFCAL_FPGA0SUP3"
;
195
196
case
(
IDHBD_FPGA
):
return
"IDHBD_FPGA"
;
197
case
(
IDHBD_FPGA0SUP
):
return
"IDHBD_FPGA0SUP"
;
198
case
(
IDHBD_FPGASHORT
):
return
"IDHBD_FPGASHORT"
;
199
case
(
IDHBD_FPGASHORT0SUP
):
return
"IDHBD_FPGASHORT0SUP"
;
200
201
case
(
IDFVTX_DCM0
):
return
"IDFVTX_DCM0"
;
202
case
(
IDFVTX_SIM
):
return
"IDFVTX_SIM"
;
203
204
case
(
IDRXNP_FPGASHORT
):
return
"IDRXNP_FPGASHORT"
;
205
case
(
IDRXNP_FPGASHORT0SUP
):
return
"IDRXNP_FPGASHORT0SUP"
;
206
207
208
case
(
IDCDEVIR
):
return
"IDCDEVIR"
;
209
case
(
IDCDEVDVM
):
return
"IDCDEVDVM"
;
210
case
(
IDCDEVRING
):
return
"IDCDEVRING"
;
211
case
(
IDCDEVRINGPOL
):
return
"IDCDEVRINGPOL"
;
212
case
(
IDCDEVRINGFILL
):
return
"IDCDEVRINGFILL"
;
213
case
(
IDCDEVWCMHISTORY
):
return
"IDCDEVWCMHISTORY"
;
214
case
(
IDCDEVSIS
):
return
"IDCDEVSIS"
;
215
case
(
IDCDEVPOLARIMETER
):
return
"IDCDEVPOLARIMETER"
;
216
case
(
IDCDEVPOLDATA
):
return
"IDCDEVPOLDATA"
;
217
//ejd ADD cdev packed identifiers
218
case
(
IDCDEVPOLARIMETERTARGET
):
return
"IDCDEVPOLTARGET"
;
219
case
(
IDCDEVBPM
):
return
"IDCDEVBPM"
;
220
case
(
IDCDEVMADCH
):
return
"IDCDEVMADCH"
;
221
case
(
IDCDEVBUCKETS
):
return
"IDCDEVBUCKETS"
;
222
case
(
IDCDEVRINGNOPOL
):
return
"IDCDEVRINGNOPOL"
;
223
224
case
(
IDGL1PSUM
):
return
"IDGL1PSUM"
;
225
case
(
IDGL1PSUMOBS
):
return
"IDGL1PSUMOBS"
;
226
case
(
IDCDEVDESCR
):
return
"IDCDEVDESCR"
;
227
case
(
IDSTARSCALER
):
return
"IDSTARSCALER"
;
228
229
case
(
IDPXL_DCM0
):
return
"IDPXL_DCM0"
;
230
case
(
IDMUTRG_DCM0
):
return
"IDMUTRG_DCM0"
;
231
case
(
IDFOCAL_FPGATEST
):
return
"IDFOCAL_FPGATEST"
;
232
233
234
}
235
return
"UNKNOWN"
;
236
}
237
238
// ---------------------------------------------------------------------
239
240
const
char
*
get_type_mnemonic
(
const
int
id
)
241
{
242
switch
(
id
)
243
{
244
case
(1):
return
" 8-bit"
;
245
case
(2):
return
"16-bit"
;
246
case
(4):
return
"32-bit"
;
247
}
248
return
"UNKNOWN"
;
249
}
online_distribution
blob
master
newbasic
packet_mnemonic.cc
Built by
Jin Huang
. updated:
Sat Feb 17 2024 22:18:28
using
1.8.2 with
sPHENIX GitHub integration