Belle II Software development
EvtGenFwRandEngine.h
1/**************************************************************************
2 * basf2 (Belle II Analysis Software Framework) *
3 * Author: The Belle II Collaboration *
4 * *
5 * See git log for contributors and copyright holders. *
6 * This file is licensed under LGPL-3.0, see LICENSE.md. *
7 **************************************************************************/
8
9#pragma once
10
11#include <EvtGenBase/EvtRandomEngine.hh>
12#include <TRandom3.h>
13
15class EvtGenFwRandEngine : public EvtRandomEngine {
16public:
17
18 /* Constructor. */
19 virtual double random()
20 {
21 return gRandom->Uniform(1.0);
22 }
23};
24
Evtgen random generator.
virtual double random()