herwig is hosted by Hepforge, IPPP Durham
Herwig  7.2.1
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 
52 };
53 }
54 #endif /* HERWIG_EvtGenRandom_H */
virtual ~EvtGenRandom()
Destructor.
Definition: EvtGenRandom.h:44
The EvtGenRamdom class is a wrapper around the RandomGenerator class of ThePEG so that when running H...
Definition: EvtGenRandom.h:26
double random()
Member to return the random number.
Definition: EvtGenRandom.h:39
Ptr< RandomGenerator >::pointer _rand
The pointer to the random number generator.
Definition: EvtGenRandom.h:51
EvtGenRandom(Ptr< RandomGenerator >::pointer rand)
The Constructor.
Definition: EvtGenRandom.h:34
-*- C++ -*-
RCPtr< RandomGenerator > pointer