AlcapDAQ  1
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 "TEventList.h"
7 
8 const Double_t dxbin = (0.17-0.13)/40; // Bin-width
9 const Double_t sigma = 0.0012;
10 
11 //_____________________________________________________________________
12 Double_t fdm5(Double_t *xx, Double_t *par)
13 {
14  Double_t x = xx[0];
15  if (x <= 0.13957) return 0;
16  Double_t xp3 = (x-par[3])*(x-par[3]);
17  Double_t res = dxbin*(par[0]*TMath::Power(x-0.13957, par[1])
18  + par[2] / 2.5066/par[4]*TMath::Exp(-xp3/2/par[4]/par[4]));
19  return res;
20 }
21 
22 //_____________________________________________________________________
23 Double_t fdm2(Double_t *xx, Double_t *par)
24 {
25  Double_t x = xx[0];
26  if (x <= 0.13957) return 0;
27  Double_t xp3 = (x-0.1454)*(x-0.1454);
28  Double_t res = dxbin*(par[0]*TMath::Power(x-0.13957, 0.25)
29  + par[1] / 2.5066/sigma*TMath::Exp(-xp3/2/sigma/sigma));
30  return res;
31 }
32