Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
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
10const Double_t dxbin = (0.17-0.13)/40; // Bin-width
11const Double_t sigma = 0.0012;
12
13//_____________________________________________________________________
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//_____________________________________________________________________
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
double Double_t
Definition RtypesCore.h:59
Double_t fdm5(Double_t *xx, Double_t *par)
const Double_t sigma
const Double_t dxbin
Double_t fdm2(Double_t *xx, Double_t *par)
Double_t x[n]
Definition legend1.C:17
Double_t Exp(Double_t x)
Returns the base-e exponential function of x, which is e raised to the power x.
Definition TMath.h:707
LongDouble_t Power(LongDouble_t x, LongDouble_t y)
Returns x raised to the power y.
Definition TMath.h:719