herwig
is hosted by
Hepforge
,
IPPP Durham
Herwig
7.2.1
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::~EvtGenRandom
virtual ~EvtGenRandom()
Destructor.
Definition:
EvtGenRandom.h:44
Herwig::EvtGenRandom
The EvtGenRamdom class is a wrapper around the RandomGenerator class of ThePEG so that when running H...
Definition:
EvtGenRandom.h:26
ThePEG
Herwig::EvtGenRandom::random
double random()
Member to return the random number.
Definition:
EvtGenRandom.h:39
Herwig::EvtGenRandom::_rand
Ptr< RandomGenerator >::pointer _rand
The pointer to the random number generator.
Definition:
EvtGenRandom.h:51
Herwig::EvtGenRandom::EvtGenRandom
EvtGenRandom(Ptr< RandomGenerator >::pointer rand)
The Constructor.
Definition:
EvtGenRandom.h:34
Herwig
-*- C++ -*-
Definition:
BasicConsistency.h:17
Ptr< RandomGenerator >::pointer
RCPtr< RandomGenerator > pointer
Generated on Sat Apr 11 2020 14:50:29 for Herwig by
1.8.13