BOSS
7.1.2
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
c
d
e
f
g
i
l
m
n
o
p
r
s
t
u
v
w
Variables
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
r
s
t
v
w
x
z
Typedefs
c
d
e
g
h
i
l
m
n
o
p
r
s
t
Enumerations
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 Symbols
:
a
b
c
d
e
f
g
i
k
l
m
n
o
p
r
s
t
v
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
h
i
j
k
l
m
n
p
r
s
t
u
v
w
z
Enumerations
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
▼
BOSS
Used Packages
Requirements
►
How to use the ERS package
Todo List
►
Namespaces
►
Classes
▼
Files
▼
File List
▼
7.1.2
►
Analysis
►
BesCxxPolicy
►
BesExamples
►
BesPolicy
►
Calibration
►
Control
►
Database
►
DetectorDescription
►
DistBoss
►
DQA
►
Emc
►
Event
►
EventDisplay
►
EventFilter
►
EvtPreSelect
►
External
▼
Generator
►
Babayaga
►
BabayagaNLO
▼
BesBdkRc
▼
BesBdkRc-00-01-00
►
BesBdkRc
▼
src
►
fortran
►
BesBdkRc.cxx
BesBdkRcRandom.cxx
►
BesEvtGen
►
BesGenInterface
►
BesGenModule
►
BesTwogam
►
Bhlumi
►
Bhwide
►
CosmicGenerator
►
Eepipi
►
EeTo4e
►
EeToeeV
►
Ekhara
►
GenAnalysisTools
►
GeneratorModule
►
GeneratorObject
►
GeneratorUtil
►
KKMC
►
McEventSelector
►
Mcgpj
►
Phokhara
►
SingleParticleGun
►
InstallArea
►
LumTauAlg
►
MagneticField
►
Mdc
►
Muc
►
OfflineEvtFilter
►
Reconstruction
►
RootPolicy
►
Simulation
►
Tof
►
Trigger
►
Utilities
►
Validation
►
File Members
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Pages
Loading...
Searching...
No Matches
BesBdkRcRandom.cxx
Go to the documentation of this file.
1
#include "
BesBdkRc/BesBdkRcRandom.h
"
2
3
#include "CLHEP/Random/RanluxEngine.h"
4
#include <iostream>
5
using namespace
std
;
6
using namespace
CLHEP;
7
8
HepRandomEngine* BesBdkRcRandom::_randomEngine=0;
9
10
void
BesBdkRcRandom::setRandomEngine
(CLHEP::HepRandomEngine* randomEngine){
11
_randomEngine=randomEngine;
12
}
10
void
BesBdkRcRandom::setRandomEngine
(CLHEP::HepRandomEngine* randomEngine) {
…
}
13
14
double
BesBdkRcRandom::random
(){
15
16
if
(_randomEngine==0){
17
cerr <<
"No random engine available in "
18
<<
"BesBdkRcRandom::random()."
<<endl;
19
}
20
return
_randomEngine->flat();
21
}
14
double
BesBdkRcRandom::random
() {
…
}
22
23
24
25
double
BesBdkRcRandom::Flat
(
double
min
,
double
max
){
26
27
if
(
min
>
max
) {
28
cerr<<
"min>max in BesBdkRcRandom::Flat("
<<
min
<<
","
<<
max
<<
")"
<<endl;
29
}
30
31
return
BesBdkRcRandom::random
()*(
max
-
min
)+
min
;
32
33
}
25
double
BesBdkRcRandom::Flat
(
double
min
,
double
max
) {
…
}
34
35
double
BesBdkRcRandom::Flat
(
double
max
){
36
37
return
max
*
BesBdkRcRandom::random
();
38
39
}
35
double
BesBdkRcRandom::Flat
(
double
max
) {
…
}
40
41
double
BesBdkRcRandom::Flat
(){
42
43
return
BesBdkRcRandom::random
();
44
45
}
41
double
BesBdkRcRandom::Flat
() {
…
}
46
47
void
BesBdkRcRandom::FlatArray
(
double
* vect,
const
int
size){
48
if
(_randomEngine == 0) cout<<
"Can not get randomEngine pointer in BesBdkRcRandom::FlatArray"
<<endl;
49
else
_randomEngine->flatArray(size,vect);
50
}
47
void
BesBdkRcRandom::FlatArray
(
double
* vect,
const
int
size) {
…
}
51
52
53
BesBdkRcRandom.h
min
#define min(a, b)
Definition
Eepipi/Eepipi-00-01-00/src/ee2eepp/basesv5.1/f2c.h:153
max
#define max(a, b)
Definition
Eepipi/Eepipi-00-01-00/src/ee2eepp/basesv5.1/f2c.h:154
BesBdkRcRandom::random
static double random()
Definition
BesBdkRcRandom.cxx:14
BesBdkRcRandom::setRandomEngine
static void setRandomEngine(CLHEP::HepRandomEngine *randomEngine)
Definition
BesBdkRcRandom.cxx:10
BesBdkRcRandom::FlatArray
static void FlatArray(double *vect, const int size)
Definition
BesBdkRcRandom.cxx:47
BesBdkRcRandom::Flat
static double Flat()
Definition
BesBdkRcRandom.cxx:41
std
Definition
RootEventData/RootEventData_rootcint.cxx:38
7.1.2
Generator
BesBdkRc
BesBdkRc-00-01-00
src
BesBdkRcRandom.cxx
Generated by
1.12.0