Go to the source code of this file.
Double_t langaufun |
( |
Double_t * |
x, |
|
|
Double_t * |
par |
|
) |
| |
Definition at line 835 of file CrtCal.cc.
849 Double_t invsq2pi = 0.3989422804014;
850 Double_t mpshift = -0.22278298;
867 mpc = par[1] - mpshift * par[0];
870 xlow =
x[0] - sc * par[3];
871 xupp =
x[0] + sc * par[3];
873 step = (xupp-xlow) / np;
876 for(i=1.0; i<=np/2; i++) {
877 xx = xlow + (i-.5) * step;
878 fland = TMath::Landau(xx,mpc,par[0]) / par[0];
879 sum += fland * TMath::Gaus(
x[0],xx,par[3]);
881 xx = xupp - (i-.5) * step;
882 fland = TMath::Landau(xx,mpc,par[0]) / par[0];
883 sum += fland * TMath::Gaus(
x[0],xx,par[3]);
886 return (par[2] * step * sum * invsq2pi / par[3]);
process_name opflash particleana ie x