BOSS
7.0.4
BESIII Offline Software System
Toggle main menu visibility
Main Page
Related Pages
Namespaces
Namespace List
Namespace Members
All
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
r
s
t
u
v
w
x
z
Functions
a
b
c
d
e
f
g
i
l
m
n
o
p
r
s
t
u
v
w
z
Variables
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
v
w
x
z
Typedefs
b
c
d
e
g
h
i
l
m
n
o
p
r
s
t
v
Enumerations
_
e
f
g
h
i
l
m
o
p
r
s
t
Enumerator
a
b
c
d
e
f
i
k
l
m
n
o
p
r
s
t
u
w
x
z
Classes
Class List
Class Index
Class Hierarchy
Class Members
All
:
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
a
b
c
d
e
f
g
h
i
m
n
p
r
s
t
v
w
Enumerations
b
c
d
e
f
g
h
i
k
l
m
n
p
r
s
t
v
Enumerator
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
r
s
t
u
v
w
x
z
Related Functions
:
a
b
c
d
e
f
g
i
k
l
m
n
o
p
r
s
t
w
x
Files
File List
File Members
All
!
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Functions
!
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
q
r
s
t
u
v
w
x
Variables
!
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
a
b
c
d
e
f
g
h
i
j
k
l
m
n
p
q
r
s
t
u
v
w
z
Enumerations
d
e
g
h
p
r
s
t
Enumerator
a
b
c
d
e
f
g
h
i
k
m
n
o
p
r
s
t
u
w
Macros
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Pages
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 replaced 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:
Event/RootEventData/RootEventData-00-03-80/RootEventData/RootEventData_rootcint.cxx:16
source
Analysis
ParticleID
ParticleID-00-04-65
src
calg.cxx
Generated by
1.9.6