herwig
is hosted by
Hepforge
,
IPPP Durham
Herwig
7.3.0
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