Version: SMASH-3.1
pdgcode_constants.h
Go to the documentation of this file.
1 /*
2  *
3  * Copyright (c) 2016-2021,2023
4  * SMASH Team
5  *
6  * GNU General Public License (GPLv3 or later)
7  *
8  */
9 
10 #ifndef SRC_INCLUDE_SMASH_PDGCODE_CONSTANTS_H_
11 #define SRC_INCLUDE_SMASH_PDGCODE_CONSTANTS_H_
12 
13 namespace smash {
19 namespace pdg {
20 
22 constexpr int invalid = 0x0;
23 
25 constexpr int photon = 0x22;
26 
28 constexpr int p = 0x2212;
30 constexpr int n = 0x2112;
31 
33 constexpr int N1520_p = 0x2124;
35 constexpr int N1520_z = 0x1214;
36 
38 constexpr int N1535_p = 0x22212;
40 constexpr int N1535_z = 0x22112;
41 
43 constexpr int Delta_pp = 0x2224;
45 constexpr int Delta_p = 0x2214;
47 constexpr int Delta_z = 0x2114;
49 constexpr int Delta_m = 0x1114;
50 
52 constexpr int Lambda = 0x3122;
54 constexpr int Sigma_p = 0x3222;
56 constexpr int Sigma_z = 0x3212;
58 constexpr int Sigma_m = 0x3112;
60 constexpr int Xi_z = 0x3322;
62 constexpr int Xi_m = 0x3312;
64 constexpr int Omega_m = 0x3334;
65 
67 constexpr int pi_p = 0x211;
69 constexpr int pi_z = 0x111;
71 constexpr int pi_m = -0x211;
72 
74 constexpr int K_p = 0x321;
76 constexpr int K_z = 0x311;
78 constexpr int Kbar_z = -0x311;
80 constexpr int K_m = -0x321;
81 
83 constexpr int eta = 0x221;
85 constexpr int omega = 0x223;
86 
88 constexpr int rho_p = 0x213;
90 constexpr int rho_z = 0x113;
92 constexpr int rho_m = -0x213;
93 
95 constexpr int h1 = 0x10223;
96 
97 /*
98  * Constants representing PDG codes of nuclei.
99  */
100 
102 constexpr int64_t deuteron = 0x1000010020;
104 constexpr int64_t antideuteron = -0x1000010020;
106 constexpr int64_t dprime = 0x1000010021;
108 constexpr int64_t triton = 0x1000010030;
110 constexpr int64_t antitriton = -0x1000010030;
112 constexpr int64_t he3 = 0x1000020030;
114 constexpr int64_t antihe3 = -0x1000020030;
116 constexpr int64_t hypertriton = 0x1010010030;
118 constexpr int64_t antihypertriton = -0x1010010030;
119 
120 } // namespace pdg
121 
130 constexpr uint64_t pack(int32_t x, int32_t y) {
131  return (static_cast<uint64_t>(static_cast<uint32_t>(x)) << 32) |
132  static_cast<uint64_t>(static_cast<uint32_t>(y));
133  //^ Casting to an intermediate 32-bit integer is important!
134 }
135 
136 } // namespace smash
137 
138 #endif // SRC_INCLUDE_SMASH_PDGCODE_CONSTANTS_H_
constexpr int pi_p
π⁺.
constexpr int rho_p
ρ⁺.
constexpr int Delta_p
Δ⁺.
constexpr int rho_m
ρ⁻.
constexpr int Delta_pp
Δ⁺⁺.
constexpr int64_t antideuteron
Anti-deuteron in decimal digits.
constexpr int Sigma_m
Σ⁻.
constexpr int64_t triton
Triton.
constexpr int64_t antihe3
Anti-He-3.
constexpr int K_p
K⁺.
constexpr int N1520_z
N(1520)⁰.
constexpr int K_z
K⁰.
constexpr int p
Proton.
constexpr int h1
h₁(1170).
constexpr int64_t hypertriton
Hypertriton.
constexpr int omega
ω.
constexpr int N1535_z
N(1535)⁰.
constexpr int K_m
K̄⁻.
constexpr int64_t antihypertriton
Anti-Hypertriton.
constexpr int eta
η.
constexpr int64_t antitriton
Anti-triton.
constexpr int64_t dprime
Deuteron-prime resonance.
constexpr int Xi_m
Ξ⁻.
constexpr int Xi_z
Ξ⁰.
constexpr int Omega_m
Ω⁻.
constexpr int pi_z
π⁰.
constexpr int n
Neutron.
constexpr int64_t deuteron
Deuteron.
constexpr int Delta_m
Δ⁻.
constexpr int photon
Photon.
constexpr int N1520_p
N(1520)⁺.
constexpr int Delta_z
Δ⁰.
constexpr int rho_z
ρ⁰.
constexpr int invalid
Invalid particle.
constexpr int Lambda
Λ.
constexpr int pi_m
π⁻.
constexpr int N1535_p
N(1535)⁺.
constexpr int Sigma_p
Σ⁺.
constexpr int Kbar_z
K̄⁰.
constexpr int Sigma_z
Σ⁰.
constexpr int64_t he3
He-3.
Definition: action.h:24
constexpr uint64_t pack(int32_t x, int32_t y)
Pack two int32_t into an uint64_t.