aboutsummaryrefslogtreecommitdiff
path: root/src/pdg.h
blob: 0e062f06fe5e0a6f96dfcec1af2dd432562e2b68 (plain)
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
/* Copyright (c) 2019, Anthony Latorre <tlatorre at uchicago>
 *
 * This program is free software: you can redistribute it and/or modify it
 * under the terms of the GNU General Public License as published by the Free
 * Software Foundation, either version 3 of the License, or (at your option)
 * any later version.

 * This program is distributed in the hope that it will be useful, but WITHOUT
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
 * more details.

 * You should have received a copy of the GNU General Public License along with
 * this program. If not, see <https://www.gnu.org/licenses/>.
 */

#ifndef PDG_H
#define PDG_H

#define SPEED_OF_LIGHT 29.9792458 /* cm/ns */
/* From http://pdg.lbl.gov/2017/AtomicNuclearProperties/HTML/water_liquid.html.
 *
 * Technically there is a different radiation length for D2O and H2O, and each
 * should be divided by the density of the water. However, the results for
 * water and heavy water are very close so instead of having to keep track of
 * which medium we are in we just use the radiation length in light water. */
#define RADIATION_LENGTH 36.08 /* g/cm^2 */
#define ELECTRON_MASS 0.5109989461 /* MeV */
#define MUON_MASS 105.6583745 /* MeV */
#define PROTON_MASS 938.272081 /* MeV */
#define FINE_STRUCTURE_CONSTANT 7.297352566417e-3

double get_scattering_rms(double x, double p, double beta, double z);

#endif