BOSS
6.6.4.p01
BESIII Offline Software System
Loading...
Searching...
No Matches
calg.cxx
Go to the documentation of this file.
1
// This is "translation" of "subroutine calg" from sub.f file to C++
2
//
3
// The function gausin(x) from CERNLIB replased with
4
// M_SQRT2*TMath::ErfInverse(2*x-1) from ROOT
5
// (see http://en.wikipedia.org/wiki/Probit_function)
6
7
/*
8
subroutine calg(Px,e2)
9
c real*8 Px,chi
10
c Px=0.5
11
c external sub
12
real*8 e2
13
external sub
14
c chi = 0.0
15
REAL Px
16
c print*, "the value of Px is ",Px
17
e2=gausin(Px)
18
c print*, "the value of chi is ",e2
19
c calg=chi
20
c Px=0.1
21
c print*, "the value of chi is ",e2
22
c RETURN
23
end
24
*/
25
26
#include <iostream>
27
#include <TMath.h>
28
29
using namespace
std
;
30
31
void
CALG
(
double
Px
,
double
&
e2
)
32
{
33
// cout << "the value of Px is " << Px << endl;
34
e2
= M_SQRT2*TMath::ErfInverse(2*
Px
-1);
35
// cout << "the value of chi is " << e2 << endl;
36
}
Px
double Px(RecMdcKalTrack *trk)
Definition:
CalibEventSelect.cxx:58
e2
Double_t e2
Definition:
DataBase/tau_mode.c:7
CALG
void CALG(double Px, double &e2)
Definition:
calg.cxx:31
std
Definition:
RootEventData_rootcint.cxx:15
source
Analysis
ParticleID
ParticleID-00-04-54
src
calg.cxx
Generated by
1.9.6