Version: SMASH-2.1
pdgcode_constants.h
Go to the documentation of this file.
1 /*
2  *
3  * Copyright (c) 2016-2020
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 
98 constexpr int decimal_d = 1000010020;
100 constexpr int decimal_antid = -1000010020;
101 
102 } // namespace pdg
103 
112 constexpr uint64_t pack(int32_t x, int32_t y) {
113  return (static_cast<uint64_t>(static_cast<uint32_t>(x)) << 32) |
114  static_cast<uint64_t>(static_cast<uint32_t>(y));
115  //^ Casting to an intermediate 32-bit integer is important!
116 }
117 
118 } // namespace smash
119 
120 #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 int Sigma_m
Σ⁻.
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 int omega
ω.
constexpr int N1535_z
N(1535)⁰.
constexpr int K_m
K̄⁻.
constexpr int eta
η.
constexpr int Xi_m
Ξ⁻.
constexpr int Xi_z
Ξ⁰.
constexpr int Omega_m
Ω⁻.
constexpr int pi_z
π⁰.
constexpr int n
Neutron.
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 decimal_antid
Anti-deuteron in decimal digits.
constexpr int N1535_p
N(1535)⁺.
constexpr int Sigma_p
Σ⁺.
constexpr int decimal_d
Deuteron in decimal digits.
constexpr int Kbar_z
K̄⁰.
constexpr int Sigma_z
Σ⁰.
Definition: action.h:24
constexpr uint64_t pack(int32_t x, int32_t y)
Pack two int32_t into an uint64_t.