64{
65 if(!PDG) return 0;
66 else if(PDG>0)
67 {
68 if(PDG<100)
69 {
71 else if(PDG>10 && PDG<17)
72 {
73 if(PDG<13)
74 {
77 }
78 else
79 {
80 if(PDG<15)
81 {
84 }
85 else
86 {
89 }
90 }
91 }
92 else return 0;
93 }
94 else if(PDG<1000)
95 {
96 if(PDG<420)
97 {
98 if(PDG<320)
99 {
105 else return 0;
106 }
107 else
108 {
113 else return 0;
114 }
115 }
116 else
117 {
118 if(PDG<500)
119 {
123 else return 0;
124 }
125 else
126 {
130 else return 0;
131 }
132 }
133 }
134 else
135 {
136 if(PDG<3333)
137 {
138 if(PDG<3211)
139 {
140 if(PDG<3111)
141 {
144 else return 0;
145 }
146 else
147 {
150 else return 0;
151 }
152 }
153 else
154 {
155 if(PDG<3311)
156 {
159 else return 0;
160 }
161 else
162 {
165 else return 0;
166 }
167 }
168 }
169 else
170 {
171 if(PDG<4221)
172 {
173 if(PDG<4121)
174 {
177 else return 0;
178 }
179 else
180 {
183 else return 0;
184 }
185 }
186 else
187 {
188 if(PDG<4231)
189 {
192 else return 0;
193 }
194 else
195 {
198 else return 0;
199 }
200 }
201 }
202 }
203 }
204 else
205 {
207#ifdef pdebug
208 G4cout<<
"G4QPDGToG4Particle:Antiparticle PDG="<<PDG<<
G4endl;
209#endif
210 if(aPDG<100)
211 {
212 if(aPDG>10 && aPDG<17)
213 {
214 if(aPDG<13)
215 {
218 }
219 else
220 {
221 if(aPDG<15)
222 {
225 }
226 else
227 {
230 }
231 }
232 }
233 else return 0;
234 }
235 else if(aPDG<1000)
236 {
237#ifdef pdebug
238 G4cout<<
"G4QPDGToG4Particle:AntiMesons aPDG="<<aPDG<<
G4endl;
239#endif
240 if(aPDG<420)
241 {
242#ifdef pdebug
243 G4cout<<
"G4QPDGToG4Particle:AntiSU(3)Mesons aPDG="<<aPDG<<
G4endl;
244#endif
245 if(aPDG<320)
246 {
247#ifdef pdebug
248 G4cout<<
"G4QPDGToG4Particle:AntiPi&KMesons aPDG="<<aPDG<<
G4endl;
249#endif
252 else return 0;
253 }
254 else
255 {
256#ifdef pdebug
257 G4cout<<
"G4QPDGToG4Particle:AntiK&DMesons aPDG="<<aPDG<<
G4endl;
258#endif
259 if(aPDG==321)
260 {
261#ifdef pdebug
262 G4cout<<
"G4QPDGToG4Particle:KaonMinus aPDG="<<aPDG<<
G4endl;
263#endif
265 }
267 else return 0;
268 }
269 }
270 else
271 {
272 if(aPDG<500)
273 {
276 else return 0;
277 }
278 else
279 {
283 else return 0;
284 }
285 }
286 }
287 else
288 {
289 if(aPDG<3333)
290 {
291 if(aPDG<3211)
292 {
293 if(aPDG<3111)
294 {
297 else return 0;
298 }
299 else
300 {
303 else return 0;
304 }
305 }
306 else
307 {
308 if(aPDG<3311)
309 {
312 else return 0;
313 }
314 else
315 {
318 else return 0;
319 }
320 }
321 }
322 else
323 {
324 if(aPDG<4221)
325 {
326 if(aPDG<4121)
327 {
330 else return 0;
331 }
332 else
333 {
336 else return 0;
337 }
338 }
339 else
340 {
341 if(aPDG<4231)
342 {
345 else return 0;
346 }
347 else
348 {
351 else return 0;
352 }
353 }
354 }
355 }
356 }
357 return 0;
358}
G4DLLIMPORT std::ostream G4cout
static G4AntiBMesonZero * AntiBMesonZero()
static G4AntiBsMesonZero * AntiBsMesonZero()
static G4AntiDMesonZero * AntiDMesonZero()
static G4AntiKaonZero * AntiKaonZero()
static G4AntiLambda * AntiLambda()
static G4AntiLambdacPlus * AntiLambdacPlus()
static G4AntiNeutrinoE * AntiNeutrinoE()
static G4AntiNeutrinoMu * AntiNeutrinoMu()
static G4AntiNeutrinoTau * AntiNeutrinoTau()
static G4AntiNeutron * AntiNeutron()
static G4AntiOmegaMinus * AntiOmegaMinus()
static G4AntiOmegacZero * AntiOmegacZero()
static G4AntiProton * AntiProton()
static G4AntiSigmaMinus * AntiSigmaMinus()
static G4AntiSigmaPlus * AntiSigmaPlus()
static G4AntiSigmaZero * AntiSigmaZero()
static G4AntiSigmacPlusPlus * AntiSigmacPlusPlus()
static G4AntiSigmacPlus * AntiSigmacPlus()
static G4AntiSigmacZero * AntiSigmacZero()
static G4AntiXiMinus * AntiXiMinus()
static G4AntiXiZero * AntiXiZero()
static G4AntiXicPlus * AntiXicPlus()
static G4AntiXicZero * AntiXicZero()
static G4BMesonMinus * BMesonMinus()
static G4BMesonPlus * BMesonPlus()
static G4BMesonZero * BMesonZero()
static G4BsMesonZero * BsMesonZero()
static G4DMesonMinus * DMesonMinus()
static G4DMesonPlus * DMesonPlus()
static G4DMesonZero * DMesonZero()
static G4DsMesonMinus * DsMesonMinus()
static G4DsMesonPlus * DsMesonPlus()
static G4Electron * Electron()
static G4EtaPrime * EtaPrime()
static G4KaonMinus * KaonMinus()
static G4KaonPlus * KaonPlus()
static G4KaonZeroLong * KaonZeroLong()
static G4KaonZeroShort * KaonZeroShort()
static G4KaonZero * KaonZero()
static G4Lambda * Lambda()
static G4LambdacPlus * LambdacPlus()
static G4MuonMinus * MuonMinus()
static G4MuonPlus * MuonPlus()
static G4NeutrinoE * NeutrinoE()
static G4NeutrinoMu * NeutrinoMu()
static G4NeutrinoTau * NeutrinoTau()
static G4Neutron * Neutron()
static G4OmegaMinus * OmegaMinus()
static G4OmegacZero * OmegacZero()
static G4PionMinus * PionMinus()
static G4PionPlus * PionPlus()
static G4PionZero * PionZero()
static G4Positron * Positron()
static G4Proton * Proton()
static G4SigmaMinus * SigmaMinus()
static G4SigmaPlus * SigmaPlus()
static G4SigmaZero * SigmaZero()
static G4SigmacPlusPlus * SigmacPlusPlus()
static G4SigmacPlus * SigmacPlus()
static G4SigmacZero * SigmacZero()
static G4TauMinus * TauMinus()
static G4TauPlus * TauPlus()
static G4XiMinus * XiMinus()
static G4XiZero * XiZero()
static G4XicPlus * XicPlus()
static G4XicZero * XicZero()