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
EvtRanFor.cc
Go to the documentation of this file.
1
//--------------------------------------------------------------------------
2
// File and Version Information:
3
// $Id: EvtRanFor.cc,v 1.1.1.2 2007/10/26 05:03:14 pingrg Exp $
4
//
5
// Description:
6
// subroutine emcranfor_.
7
// Provides FORTRAN calable interface to EvtRandom::Flat()
8
// Can be used as EVTRANFOR instead of RANLUX in FORTRAN programs
9
// or as evtranfor_ instead of ranlux_ in C/C++ programs.
10
// No header file is provided, as C++ programs should use EvtRandom
11
//
12
// Environment:
13
// Software developed for the BaBar Detector at the SLAC B-Factory.
14
//
15
// Author List:
16
// Sven Menke
17
//
18
// Copyright Information: See EvtGen/COPYRIGHT
19
//
20
//------------------------------------------------------------------------
21
#include "
EvtGenBase/EvtPatches.hh
"
22
#include <stdlib.h>
23
#include <stdio.h>
24
#include <math.h>
25
#include <iostream>
26
#include "
EvtGenBase/EvtRandom.hh
"
27
extern
"C"
{
28
void
evtranfor_
(
float
*rvec,
int
*len)
29
{
30
for
(
int
i=0;i<*len;i++)
31
rvec[i] =
EvtRandom::Flat
();
32
}
33
}
34
EvtPatches.hh
evtranfor_
void evtranfor_(float *rvec, int *len)
Definition:
EvtRanFor.cc:28
EvtRandom.hh
EvtRandom::Flat
static double Flat()
Definition:
EvtRandom.cc:74
source
Generator
BesEvtGen
BesEvtGen-00-03-98
src
EvtGen
EvtGenBase
EvtRanFor.cc
Generated by
1.9.6