Version: SMASH-1.5
pdgcode_constants.h
Go to the documentation of this file.
1 /*
2  *
3  * Copyright (c) 2016-2018
4  * SMASH Team
5  *
6  * GNU General Public License (GPLv3 or later)
7  *
8  */
9 
10 #ifndef SRC_INCLUDE_PDGCODE_CONSTANTS_H_
11 #define SRC_INCLUDE_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 N1535_p = 0x22212;
35 constexpr int N1535_z = 0x22112;
36 
38 constexpr int Delta_pp = 0x2224;
40 constexpr int Delta_p = 0x2214;
42 constexpr int Delta_z = 0x2114;
44 constexpr int Delta_m = 0x1114;
45 
47 constexpr int Lambda = 0x3122;
49 constexpr int Sigma_p = 0x3222;
51 constexpr int Sigma_z = 0x3212;
53 constexpr int Sigma_m = 0x3112;
55 constexpr int Xi_z = 0x3322;
57 constexpr int Xi_m = 0x3312;
59 constexpr int Omega_m = 0x3334;
60 
62 constexpr int pi_p = 0x211;
64 constexpr int pi_z = 0x111;
66 constexpr int pi_m = -0x211;
67 
69 constexpr int K_p = 0x321;
71 constexpr int K_z = 0x311;
73 constexpr int Kbar_z = -0x311;
75 constexpr int K_m = -0x321;
76 
78 constexpr int eta = 0x221;
80 constexpr int omega = 0x223;
81 
83 constexpr int rho_p = 0x213;
85 constexpr int rho_z = 0x113;
87 constexpr int rho_m = -0x213;
88 
90 constexpr int h1 = 0x10223;
91 
93 constexpr int decimal_d = 1000010020;
95 constexpr int decimal_antid = -1000010020;
96 
97 } // namespace pdg
98 
107 constexpr uint64_t pack(int32_t x, int32_t y) {
108  return (static_cast<uint64_t>(static_cast<uint32_t>(x)) << 32) |
109  static_cast<uint64_t>(static_cast<uint32_t>(y));
110  //^ Casting to an intermediate 32-bit integer is important!
111 }
112 
113 } // namespace smash
114 
115 #endif // SRC_INCLUDE_PDGCODE_CONSTANTS_H_
constexpr int K_m
K̄⁻.
constexpr int Lambda
Λ.
constexpr int Omega_m
Ω⁻.
constexpr int Sigma_p
Σ⁺.
constexpr int omega
ω.
constexpr int K_p
K⁺.
constexpr uint64_t pack(int32_t x, int32_t y)
Pack two int32_t into an uint64_t.
constexpr int Sigma_z
Σ⁰.
constexpr int photon
Photon.
constexpr int Delta_m
Δ⁻.
constexpr int rho_z
ρ⁰.
constexpr int eta
η.
constexpr int invalid
Invalid particle.
constexpr int Delta_z
Δ⁰.
constexpr int N1535_p
N(1535)⁺.
constexpr int pi_z
π⁰.
constexpr int Delta_p
Δ⁺.
constexpr int h1
h₁(1170).
constexpr int K_z
K⁰.
constexpr int Kbar_z
K̄⁰.
constexpr int decimal_d
Deuteron in decimal digits.
constexpr int rho_p
ρ⁺.
constexpr int Delta_pp
Δ⁺⁺.
constexpr int N1535_z
N(1535)⁰.
constexpr int decimal_antid
Anti-deuteron in decimal digits.
constexpr int Xi_m
Ξ⁻.
constexpr int pi_p
π⁺.
constexpr int Sigma_m
Σ⁻.
constexpr int rho_m
ρ⁻.
constexpr int p
Proton.
constexpr int Xi_z
Ξ⁰.
constexpr int pi_m
π⁻.
constexpr int n
Neutron.
Definition: action.h:24