source: trunk/MagicSoft/Mars/mtemp/mmpi/macros/mtools.C@ 4635

Last change on this file since 4635 was 4088, checked in by mazin, 21 years ago
*** empty log message ***
File size: 485 bytes
Line 
1Double_t LiMa17(Double_t Non, Double_t Noff, Double_t alpha)
2{
3 Double_t term1, term2, signif;
4 term1 = ((1.+alpha) / alpha) * (Non / (Non + Noff));
5 term2 = (1.+alpha) * (Noff / (Non + Noff));
6
7 signif = sqrt(2.* (Non*log(term1) + Noff*log(term2)));
8
9 if (Non>(alpha*Noff)) return signif;
10 else return -signif;
11
12}
13
14Double_t parabfunc(Double_t *x, Double_t *par)
15{
16 Double_t result=0.;
17 if (par[2]!=0) result = (par[0] * x[0] * x[0] + par[1]) / par[2];
18 return result;
19}
Note: See TracBrowser for help on using the repository browser.