-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathBetheBloch.h
80 lines (50 loc) · 1.73 KB
/
BetheBloch.h
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
#ifndef BETHEBLOCH_H
#define BETHEBLOCH_H
#include <map>
#include "Math/VavilovAccurate.h"
#include "TF1.h"
using namespace std;
class TSpline3;
class BetheBloch {
public:
BetheBloch();
BetheBloch(int pdg);
void SetPdgCode(int pdg);
int GetPdgCode(){ return pdgcode;};
double Landau_xi(double KE, double pitch);
double Get_Wmax(double KE);
double meandEdx(double KE);
double MPVdEdx(double KE, double pitch);
double IntegratedEdx(double KE0, double KE1, int n = 10000);
double RangeFromKE(double KE);
double RangeFromKESpline(double KE);
double KEFromRangeSpline(double range);
double KEAtLength(double KE0, double tracklength);
double KEtoMomentum(double KE);
void CreateSplineAtKE(int iKE);
TF1 *dEdx_PDF(double KE, double pitch);
private:
int pdgcode;
double mass;
int charge;
TSpline3 *sp_KE_range;
TSpline3 *sp_range_KE;
map<int, TSpline3*> spmap;
double densityEffect(double beta, double gamma);
double betaGamma(double KE);
void CreateSplines(int np = 1000, double minke = .01, double maxke = 2e5);
// == Bethe-Bloch parameters, https://indico.fnal.gov/event/14933/contributions/28526/attachments/17961/22583/Final_SIST_Paper.pdf
const double rho = 1.39; // [g/cm3], density of LAr
const double K = 0.307075; // [MeV cm2 / mol]
const double Z = 18.; // atomic number of Ar
const double A = 39.948; // [g / mol], atomic mass of Ar
const double I = 188.0e-6; // [MeV], mean excitation energy
const double me = 0.511; // [Mev], mass of electron
// == Parameters for the density correction
const double density_C = 5.2146;
const double density_y0 = 0.2;
const double density_y1 = 3.0;
const double density_a = 0.19559;
const double density_k = 3.0;
};
#endif