forked from govoni/LHEActions
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Functions.h
108 lines (64 loc) · 2.87 KB
/
Functions.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
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
#ifndef Functions_h
#define Functions_h
#include <iostream>
#include "TMath.h"
// ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ----
// SIMPLE FUNCTIONS
// ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ----
/*** powerLaw ***/
double powerLaw(double* x, double* par);
/*** exponential ***/
double exponential(double* x, double* par);
/*** double exponential ***/
double doubleExponential(double* x, double* par);
/*** turn-on fermi function ***/
double antiFermi(double* x, double* par);
/*** gaussian + exponential tail smoothly joined ***/
double superGausCumCauda(double* x, double* par);
/*** gaussian + exponential tail smoothly joined ***/
double doubleSuperGausCumCauda(double* x, double* par);
/*** parabola + double exponential tail smoothly joined ***/
double superParabolaCumDoubleCauda(double* x, double* par);
/*** single crystal ball with high tail ***/
double crystalBallHigh(double* x, double* par);
/*** crystall ball with low tail ***/
double crystalBallLow(double* x, double* par);
/*** double crystall ball ***/
double crystalBallLowHigh(double* x, double* par);
/*** gaussian ***/
double gaussian(double* x, double* par);
/*** breit-wigner ***/
double breitWigner(double* x, double* par);
/*** breit-wigner convoluted with crystalBall ***/
double breitWigner_crystalBallLow(double* x, double* par);
/*** breit-wigner convoluted with a gaussian ***/
double breitWigner_gaussian(double* x, double* par);
/*** exp-polynomial of second order ***/
double expPol2order(double* x, double* par);
/*** exp-polynomial of third order ***/
double expPol3order(double* x, double* par);
/*** exp-polynomial of fourth order ***/
double expPol4order(double* x, double* par);
/*** exp-polynomial of fifth order ***/
double expPol5order(double* x, double* par);
/*** polynomial of fourth order ***/
double pol4order(double* x, double* par);
/*** polynomial of fifth order ***/
double pol5order(double* x, double* par);
/*** polynomial of fourth order in the Bernstein base ***/
double pol4orderBernstein(double* x, double* par);
// ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ----
// COMPOSITE FUNCTIONS
// ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ----
double attenuatedPowerLaw(double* x, double* par);
double attenuatedExponential(double* x, double* par);
double attenuatedDoubleExponential(double* x, double* par);
double attenuatedDoubleExponentialCumLeadingEdge(double* x, double* par);
double attenuatedCrystalBallHigh(double* x, double* par);
double attenuatedCrystalBallLowHigh(double* x, double* par);
double attenuatedExpPol2order(double* x, double* par);
double attenuatedExpPol3order(double* x, double* par);
double attenuatedExpPol4order(double* x, double* par);
double attenuatedExpPol5order(double* x, double* par);
double antiFermiWithScale (double* x, double* par);
#endif