Logo ROOT   6.10/09
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 //_____________________________________________________________________
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 par[1]
Definition: unuranDistr.cxx:38
Double_t fdm2(Double_t *xx, Double_t *par)
LongDouble_t Power(LongDouble_t x, LongDouble_t y)
Definition: TMath.h:628
Double_t x[n]
Definition: legend1.C:17
const Double_t sigma
const Double_t dxbin
Double_t Exp(Double_t x)
Definition: TMath.h:622
double Double_t
Definition: RtypesCore.h:55
Double_t fdm5(Double_t *xx, Double_t *par)