-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathPlotTrack.h
38 lines (28 loc) · 1.02 KB
/
PlotTrack.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
/*******************************************************************************
file name: PlotTrack.h
author: Zhe Yang
created: 02/09/2019
last modified: 02/09/2019
description:
-Header for PlotTrack.cxx
*******************************************************************************/
#ifndef PLOTTRACK_H_
#define PLOTTRACK_H_
#include <string>
#include <math.h>
int PlotTrack();
Double_t RTFunction(Double_t drift_time) {
return drift_time * 0.0375; // linear approximation
}
Double_t LegendreUpperCurve(Double_t theta, Double_t x_0, Double_t y_0,
Double_t r_0) {
return x_0 * cos(theta) + y_0 * sin(theta) + r_0;
}
Double_t LegendreLowerCurve(Double_t theta, Double_t x_0, Double_t y_0,
Double_t r_0) {
return x_0 * cos(theta) + y_0 * sin(theta) - r_0;
}
Double_t FermiDiracFunction(Double_t *x, Double_t *par) {
return (par[0] + par[3] * x[0]) / (1 + exp((par[1] - x[0]) / par[2])) + par[5];
}
#endif // PLOTTRACK_H_