herwig
is hosted by
Hepforge
,
IPPP Durham
Herwig
7.3.0
Toggle main menu visibility
Main Page
Related Pages
Modules
Namespaces
Namespace List
Namespace Members
All
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
r
s
t
u
v
w
x
y
z
Functions
a
b
c
d
f
g
h
i
l
m
o
p
r
s
t
u
w
z
Variables
Typedefs
a
b
c
d
h
i
j
k
l
m
o
p
s
t
v
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
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
a
c
d
e
h
i
m
o
p
r
s
t
u
v
w
x
Enumerations
Enumerator
Related Functions
b
c
d
e
f
g
h
k
m
o
p
s
t
Files
File List
File Members
All
Functions
Variables
Macros
Decay
EvtGen
EvtGenRandom.h
1
// -*- C++ -*-
2
//
3
// EvtGenRandom.h is a part of Herwig - A multi-purpose Monte Carlo event generator
4
// Copyright (C) 2002-2019 The Herwig Collaboration
5
//
6
// Herwig is licenced under version 3 of the GPL, see COPYING for details.
7
// Please respect the MCnet academic guidelines, see GUIDELINES for details.
8
//
9
#ifndef HERWIG_EvtGenRandom_H
10
#define HERWIG_EvtGenRandom_H
11
//
12
// This is the declaration of the EvtGenRandom class.
13
//
14
#include <EvtGenBase/EvtRandomEngine.hh>
15
#include <ThePEG/Repository/RandomGenerator.h>
16
17
namespace
Herwig
{
18
19
using namespace
ThePEG
;
20
26
class
EvtGenRandom
:
public
EvtRandomEngine {
27
28
public
:
29
34
inline
EvtGenRandom
(Ptr<RandomGenerator>::pointer rand){
_rand
=rand;}
35
39
inline
double
random
(){
return
_rand
->rnd();}
40
44
inline
virtual
~EvtGenRandom
(){;}
45
46
private
:
47
51
Ptr<RandomGenerator>::pointer
_rand
;
52
};
53
}
54
#endif
/* HERWIG_EvtGenRandom_H */
Herwig::EvtGenRandom
The EvtGenRamdom class is a wrapper around the RandomGenerator class of ThePEG so that when running H...
Definition:
EvtGenRandom.h:26
Herwig::EvtGenRandom::_rand
Ptr< RandomGenerator >::pointer _rand
The pointer to the random number generator.
Definition:
EvtGenRandom.h:51
Herwig::EvtGenRandom::random
double random()
Member to return the random number.
Definition:
EvtGenRandom.h:39
Herwig::EvtGenRandom::EvtGenRandom
EvtGenRandom(Ptr< RandomGenerator >::pointer rand)
The Constructor.
Definition:
EvtGenRandom.h:34
Herwig::EvtGenRandom::~EvtGenRandom
virtual ~EvtGenRandom()
Destructor.
Definition:
EvtGenRandom.h:44
Herwig
-*- C++ -*-
Definition:
BasicConsistency.h:17
ThePEG
Generated on Thu Jun 20 2024 17:50:52 for Herwig by
1.9.6