herwig is hosted by Hepforge, IPPP Durham
Herwig 7.3.0
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
17namespace Herwig {
18
19using namespace ThePEG;
20
26class EvtGenRandom : public EvtRandomEngine {
27
28public:
29
34 inline EvtGenRandom(Ptr<RandomGenerator>::pointer rand){_rand=rand;}
35
39 inline double random(){return _rand->rnd();}
40
44 inline virtual ~EvtGenRandom(){;}
45
46private:
47
51 Ptr<RandomGenerator>::pointer _rand;
52};
53}
54#endif /* HERWIG_EvtGenRandom_H */
The EvtGenRamdom class is a wrapper around the RandomGenerator class of ThePEG so that when running H...
Definition: EvtGenRandom.h:26
Ptr< RandomGenerator >::pointer _rand
The pointer to the random number generator.
Definition: EvtGenRandom.h:51
double random()
Member to return the random number.
Definition: EvtGenRandom.h:39
EvtGenRandom(Ptr< RandomGenerator >::pointer rand)
The Constructor.
Definition: EvtGenRandom.h:34
virtual ~EvtGenRandom()
Destructor.
Definition: EvtGenRandom.h:44
-*- C++ -*-