Belle II Software  release-05-01-25
EvtGenFwRandEngine.h
1 /**************************************************************************
2  * BASF2 (Belle Analysis Framework 2) *
3  * Copyright(C) 2010 - Belle II Collaboration *
4  * *
5  * Author: The Belle II Collaboration *
6  * Contributors: Martin Ritter, Susanne Koblitz, Andreas Moll *
7  * *
8  * This software is provided "as is" without any warranty. *
9  **************************************************************************/
10 
11 #pragma once
12 
13 #include <EvtGenBase/EvtRandomEngine.hh>
14 #include <TRandom3.h>
15 
17 class EvtGenFwRandEngine : public EvtRandomEngine {
18 public:
19 
20  /* Constructor. */
21  virtual double random()
22  {
23  return gRandom->Uniform(1.0);
24  }
25 };
26 
EvtGenFwRandEngine::random
virtual double random()
Definition: EvtGenFwRandEngine.h:29
EvtGenFwRandEngine
Evtgen random generator.
Definition: EvtGenFwRandEngine.h:17