MINT2
Main Page
Related Pages
+
Namespaces
Namespace List
+
Namespace Members
+
All
a
c
f
g
k
l
m
n
o
p
s
+
Functions
a
c
f
g
k
l
m
n
o
p
s
Enumerations
Enumerator
+
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
k
m
n
o
p
r
s
t
v
w
x
y
z
Typedefs
Enumerations
+
Enumerator
a
b
c
d
e
f
g
h
i
k
l
m
n
p
q
r
s
u
v
w
Related Functions
+
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
+
Functions
_
a
b
c
d
e
f
g
h
i
l
m
n
o
p
q
r
s
u
+
Variables
a
b
c
d
e
f
g
h
j
k
l
m
n
o
p
r
s
t
u
v
w
Typedefs
Enumerations
Enumerator
Macros
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Pages
Mint
TGenPhaseSpaceWithRnd.h
Go to the documentation of this file.
1
#ifndef TGENPHASESPACE_WITH_RND_HH
2
#define TGENPHASESPACE_WITH_RND_HH
3
4
#include "TGenPhaseSpace.h"
5
#include "TRandom.h"
6
7
class
TGenPhaseSpaceWithRnd
:
public
TGenPhaseSpace{
8
TRandom*
_rnd
;
9
public
:
10
TGenPhaseSpaceWithRnd
(TRandom* rnd=gRandom) :
_rnd
(rnd){}
11
void
setRandom
(TRandom* rnd=gRandom){
_rnd
= rnd;}
12
Double_t
Generate
(){
13
TRandom* oldGRandom = gRandom;
14
gRandom =
_rnd
;
15
Double_t returnVal = TGenPhaseSpace::Generate();
16
gRandom = oldGRandom;
17
return
returnVal;
18
}
19
};
20
21
#endif
22
//
TGenPhaseSpaceWithRnd::_rnd
TRandom * _rnd
Definition:
TGenPhaseSpaceWithRnd.h:8
TGenPhaseSpaceWithRnd::setRandom
void setRandom(TRandom *rnd=gRandom)
Definition:
TGenPhaseSpaceWithRnd.h:11
TGenPhaseSpaceWithRnd::TGenPhaseSpaceWithRnd
TGenPhaseSpaceWithRnd(TRandom *rnd=gRandom)
Definition:
TGenPhaseSpaceWithRnd.h:10
TGenPhaseSpaceWithRnd::Generate
Double_t Generate()
Definition:
TGenPhaseSpaceWithRnd.h:12
TGenPhaseSpaceWithRnd
Definition:
TGenPhaseSpaceWithRnd.h:7
Generated by
1.8.15