ROOT
master
Reference Guide
h1analysisProxy.h
Go to the documentation of this file.
1
#include "
TH2.h
"
2
#include "
TF1.h
"
3
#include "
TStyle.h
"
4
#include "
TCanvas.h
"
5
#include "
TLine.h
"
6
#include "
TEntryList.h
"
7
#include "
TPaveStats.h
"
8
#include "
TMath.h
"
9
10
const
Double_t
dxbin
= (0.17-0.13)/40;
// Bin-width
11
const
Double_t
sigma
= 0.0012;
12
13
//_____________________________________________________________________
14
Double_t
fdm5
(
Double_t
*xx,
Double_t
*par)
15
{
16
Double_t
x
= xx[0];
17
if
(
x
<= 0.13957)
return
0;
18
Double_t
xp3 = (
x
-par[3])*(
x
-par[3]);
19
Double_t
res =
dxbin
*(par[0]*
TMath::Power
(
x
-0.13957, par[1])
20
+ par[2] / 2.5066/par[4]*
TMath::Exp
(-xp3/2/par[4]/par[4]));
21
return
res;
22
}
23
24
//_____________________________________________________________________
25
Double_t
fdm2
(
Double_t
*xx,
Double_t
*par)
26
{
27
Double_t
x
= xx[0];
28
if
(
x
<= 0.13957)
return
0;
29
Double_t
xp3 = (
x
-0.1454)*(
x
-0.1454);
30
Double_t
res =
dxbin
*(par[0]*
TMath::Power
(
x
-0.13957, 0.25)
31
+ par[1] / 2.5066/
sigma
*
TMath::Exp
(-xp3/2/
sigma
/
sigma
));
32
return
res;
33
}
34
TLine.h
TMath::Exp
Double_t Exp(Double_t x)
Definition:
TMath.h:727
TStyle.h
TPaveStats.h
x
Double_t x[n]
Definition:
legend1.C:17
TCanvas.h
fdm5
Double_t fdm5(Double_t *xx, Double_t *par)
Definition:
h1analysisProxy.h:14
dxbin
const Double_t dxbin
Definition:
h1analysisProxy.h:10
TMath::Power
LongDouble_t Power(LongDouble_t x, LongDouble_t y)
Definition:
TMath.h:735
TH2.h
sigma
const Double_t sigma
Definition:
h1analysisProxy.h:11
Double_t
double Double_t
Definition:
RtypesCore.h:59
TF1.h
TEntryList.h
fdm2
Double_t fdm2(Double_t *xx, Double_t *par)
Definition:
h1analysisProxy.h:25
TMath.h
tutorials
tree
h1analysisProxy.h
ROOT master - Reference Guide Generated on Fri Mar 5 2021 12:13:09 (GVA Time) using Doxygen 1.9.0