StRoot
1
Main Page
Related Pages
Modules
Namespaces
Classes
Files
Examples
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Groups
Pages
StarGenerator
EvtGen1_06_00
EvtGenBase
EvtSimpleRandomEngine.hh
1
//--------------------------------------------------------------------------
2
//
3
// Environment:
4
// This software is part of the EvtGen package developed jointly
5
// for the BaBar and CLEO collaborations. If you use all or part
6
// of it, please give an appropriate acknowledgement.
7
//
8
// Copyright Information: See EvtGen/COPYRIGHT
9
// Copyright (C) 1998 Caltech, UCSB
10
//
11
// Module: EvtGen/EvtRandom.hh
12
//
13
// Description:Class to generate random numbers. Single member
14
// function random is expected to return a random
15
// number in the range ]0..1[.
16
//
17
// Modification history:
18
//
19
// RYD December 25, 1999 Module created
20
//
21
//------------------------------------------------------------------------
22
23
#ifndef EVTSIMPLERANDOMENGINE_HH
24
#define EVTSIMPLERANDOMENGINE_HH
25
26
#include "EvtGenBase/EvtRandomEngine.hh"
27
28
class
EvtSimpleRandomEngine
:
public
EvtRandomEngine
{
29
30
public
:
31
32
EvtSimpleRandomEngine
(){
33
_next=1;
34
}
35
36
void
reset() {
37
_next=1;
38
}
39
40
virtual
double
random();
41
42
private
:
43
44
unsigned
long
int
_next;
45
46
};
47
48
#endif
49
50
EvtSimpleRandomEngine
Definition:
EvtSimpleRandomEngine.hh:28
EvtRandomEngine
Definition:
EvtRandomEngine.hh:27
Generated by
1.8.5