Newer
Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc
function pdgid (ityp, iso3)
c
c Revision : 1.0
c
coutput pdgid : Particle-ID according to Particle Data Group
c
c converts UrQMD-Id to PDG-Id
c
cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc
implicit none
include 'comres.f'
integer pdgid
integer ityp
integer iso3
integer tab_size
parameter (TAB_SIZE = 165)
logical anti
integer abs_ityp
integer norm_iso3
integer idtab(3,TAB_SIZE)
integer first
integer last
integer next
data idtab/
c Neutron
. 1, -1, 2112,
c Proton
. 1, 1, 2212,
c N*
. 2, -1, 12112, 2, 1, 12212,
. 3, -1, 1214, 3, 1, 2124,
. 4, -1, 22112, 4, 1, 22212,
. 5, -1, 32112, 5, 1, 32212,
. 6, -1, 2116, 6, 1, 2216,
. 7, -1, 12116, 7, 1, 12216,
. 8, -1, 21214, 8, 1, 22124,
. 9, -1, 42112, 9, 1, 42212,
. 10, -1, 31214, 10, 1, 32124,
. 14, -1, 1218, 14, 1, 2128,
c Delta
. 17, -3, 1114, 17, -1, 2114, 17, 1, 2214, 17, 3, 2224,
. 18, -3, 31114, 18, -1, 32114, 18, 1, 32214, 18, 3, 32224,
. 19, -3, 1112, 19, -1, 1212, 19, 1, 2122, 19, 3, 2222,
. 20, -3, 11114, 20, -1, 12114, 20, 1, 12214, 20, 3, 12224,
. 21, -3, 11112, 21, -1, 11212, 21, 1, 12122, 21, 3, 12222,
. 22, -3, 1116, 22, -1, 1216, 22, 1, 2126, 22, 3, 2226,
. 23, -3, 21112, 23, -1, 21212, 23, 1, 22122, 23, 3, 22222,
. 24, -3, 21114, 24, -1, 22114, 24, 1, 22214, 24, 3, 22224,
. 25, -3, 11116, 25, -1, 11216, 25, 1, 12126, 25, 3, 12226,
. 26, -3, 1118, 26, -1, 2118, 26, 1, 2218, 26, 3, 2228,
c Lambda
. 27, 0, 3122,
. 28, 0, 13122,
. 29, 0, 3124,
. 30, 0, 23122,
. 31, 0, 33122,
. 32, 0, 13124,
. 33, 0, 43122,
. 34, 0, 53122,
. 35, 0, 3126,
. 36, 0, 13126,
. 37, 0, 23124,
. 38, 0, 3128,
. 39, 0, 23126,
c Sigma
. 40, -2, 3112, 40, 0, 3212, 40, 2, 3222,
. 41, -2, 3114, 41, 0, 3214, 41, 2, 3224,
. 42, -2, 13112, 42, 0, 13212, 42, 2, 13222,
. 43, -2, 13114, 43, 0, 13214, 43, 2, 13224,
. 44, -2, 23112, 44, 0, 23212, 44, 2, 23222,
. 45, -2, 3116, 45, 0, 3216, 45, 2, 3226,
. 46, -2, 13116, 46, 0, 13216, 46, 2, 13226,
. 47, -2, 23114, 47, 0, 23214, 47, 2, 23224,
. 48, -2, 3118, 48, 0, 3218, 48, 2, 3228,
c Xi
. 49, -1, 3312, 49, 1, 3322,
. 50, -1, 3314, 50, 1, 3324,
. 52, -1, 13314, 52, 1, 13324,
c Omega
. 55, 0, 3334,
c gamma
. 100, 0, 22,
c pion
. 101, -2, -211, 101, 0, 111, 101, 2, 211,
c eta
. 102, 0, 221,
c omega
. 103, 0, 223,
c rho
. 104, -2, -213, 104, 0, 113, 104, 2, 213,
c f0(980)
. 105, 0, 10221,
c kaon
. 106, -1, 311, 106, 1, 321,
c eta'
. 107, 0, 331,
c k*(892)
. 108, -1, 313, 108, 1, 323,
c phi
. 109, 0, 333,
c k0*(1430)
. 110, -1, 10313, 110, 1, 10323,
c a0(980)
. 111, -2,-10211, 111, 0, 10111, 111, 2, 10211,
c f0(1370)
. 112, 0, 20221,
c k1(1270)
. 113, -1, 10313, 113, 1, 10323,
c a1(1260)
. 114, -2,-20213, 114, 0, 20113, 114, 2, 20213,
c f1(1285)
. 115, 0, 20223,
c f1'(1510)
. 116, 0, 40223,
c k2*(1430)
. 117, -1, 315, 117, 1, 325,
c a2(1329)
. 118, -2, -215, 118, 0, 115, 118, 2, 215,
c f2(1270)
. 119, 0, 225,
c f2'(1525)
. 120, 0, 335,
c k1(1400)
. 121, -1, 20313, 121, 1, 20323,
c b1
. 122, -2,-10213, 122, 0, 10113, 122, 2, 10213,
c h1
. 123, 0, 10223,
c K* (1410)
. 125, -1, 30313, 125, 1, 30323,
c rho (1450)
. 126, -2,-40213, 126, 0, 40113, 126, 2, 40213,
c omega (1420)
. 127, 0, 50223,
c phi(1680)
. 128, 0, 10333,
c k*(1680)
. 129, -1, 40313, 129, 1, 40323,
c rho(1700)
. 130, -2,-30213, 130, 0, 30113, 130, 2, 30213,
c omega(1600)
. 131, 0, 60223,
c phi(1850)
. 132, 0, 337 /
cb check for antiparticles
if (ityp.lt.0) then
cl its an antiparticle
anti = .true.
abs_ityp = abs(ityp)
norm_iso3 = -iso3
cl only mesons with odd isospin can have a negative ITYPE
if (abs_ityp.gt.minmes)then
if(mod(isomes(abs_ityp),2).eq.0) then
call error ('pdgid','Negative ITYP not allowed',
. dble(ityp),3)
pdgid = 0
return
endif
endif
else
anti = .false.
abs_ityp = ityp
norm_iso3 = iso3
endif
cb search for the ITYP in IDTAB
first = 1
last = TAB_SIZE
if (idtab(1,first).eq.abs_ityp) then
next = first
goto 200
endif
if (idtab(1,last).eq.abs_ityp) then
next = last
goto 200
endif
100 continue
cl ITYP not found in IDTAB
if (last.le.(first+1)) then
pdgid = 0
return
endif
next = (first+last)/2
if (idtab(1,next).lt.abs_ityp) then
first = next
goto 100
elseif (idtab(1,next).gt.abs_ityp) then
last = next
goto 100
endif
200 continue
cl calculate the entry with the wanted ISO3
next = next - (idtab(2,next)-norm_iso3)/2
cl check if we found the correct values in IDTAB
if ((idtab(1,next).eq.abs_ityp).and.
. (idtab(2,next).eq.norm_iso3)) then
if (anti) then
pdgid = -idtab(3,next)
else
pdgid = idtab(3,next)
endif
else
! M.R 2019-04-27, error to be handled in CORSIKA instead of here
! call error ('pdgid','Error in tablelookup',dble(next),3)
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
pdgid = 0
endif
return
end
cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc
function partname (ityp)
c
c Revision : 1.0
c
coutput partname : Name of the Particle as a character string
c
cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc
implicit none
include 'comres.f'
character*15 partname
integer ityp
integer abs_ityp
character*7 baryon_names(maxbar-minbar+1)
character*11 meson_names(maxmes-minmes+1)
character*1 prefix
data baryon_names/
. 'Nukleon',
. 'N(1440)',
. 'N(1520)',
. 'N(1535)',
. 'N(1650)',
. 'N(1675)',
. 'N(1680)',
. 'N(1700)',
. 'N(1710)',
. 'N(1720)',
. 'N(1900)',
. 'N(1990)',
. 'N(2080)',
. 'N(2190)',
. 'N(2220)',
. 'N(2250)',
. 'D(1232)',
. 'D(1600)',
. 'D(1620)',
. 'D(1700)',
. 'D(1900)',
. 'D(1905)',
. 'D(1910)',
. 'D(1920)',
. 'D(1930)',
. 'D(1950)',
. 'Lambda',
. 'L(1405)',
. 'L(1520)',
. 'L(1600)',
. 'L(1670)',
. 'L(1690)',
. 'L(1800)',
. 'L(1810)',
. 'L(1820)',
. 'L(1830)',
. 'L(1890)',
. 'L(2100)',
. 'L(2110)',
. 'Sigma',
. 'S(1385)',
. 'S(1660)',
. 'S(1670)',
. 'S(1750)',
. 'S(1775)',
. 'S(1915)',
. 'S(1940)',
. 'S(2030)',
. 'Xi',
. 'X(1530)',
. 'X(1690)',
. 'X(1820)',
. 'X(1950)',
. 'X(2030)',
. 'Omega' /
data meson_names/
. 'gamma',
. 'pion',
. 'eta',
. 'omega',
. 'rho',
. 'f0(980)',
. 'kaon',
. 'eta''',
. 'k*(892)',
. 'phi',
. 'k0(1430)',
. 'a0(980)',
. 'f0(1370)',
. 'k1(1270)',
. 'a1(1260)',
. 'f1(1285)',
. 'f1(1510)',
. 'k2*(1430)',
. 'a2(1329)',
. 'f2(1270)',
. 'f2''(1525)',
. 'k1(1400)',
. 'b1',
. 'h1',
. 'h1''',
. 'k*(1410)',
. 'rho(1450)',
. 'omega(1420)',
. 'phi(1680)',
. 'k*(1680)',
. 'rho(1700)',
. 'omega(1600)',
. 'phi3(1850)' /
abs_ityp = abs(ityp)
c set the prefix for anti-particles
if (ityp.lt.0) then
prefix = '*'
else
prefix = ' '
endif
if ((abs_ityp.ge.minbar).and.(abs_ityp.le.maxbar)) then
partname = prefix//baryon_names (abs_ityp)
elseif ((abs_ityp.ge.minmes).and.(abs_ityp.le.maxmes)) then
partname = prefix//meson_names (abs_ityp-99)
else
call error ('partname','ITYP out of range',dble(ityp),3)
partname = '---'
endif
return
end