BOSS
8.0.0
BESIII Offline Software System
Loading...
Searching...
No Matches
KKMCRandom.h
Go to the documentation of this file.
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:Source of random numbers for EvtGen code
14
//
15
// Modification history:
16
//
17
// RYD March 24, 1998 Module created
18
//
19
//------------------------------------------------------------------------
20
21
#ifndef KKMCRANDOM_H
22
#define KKMCRANDOM_H
23
24
#include "CLHEP/Random/RandomEngine.h"
25
26
class
KKMCRandom
{
27
28
public
:
29
static
double
Flat
(
double
min
,
double
max
);
30
static
double
Flat
(
double
max
);
31
static
double
Flat
();
32
static
void
FlatArray
(
double
* vect,
const
int
size );
33
34
static
double
random
();
35
36
// This class does not take ownership of the random engine;
37
// the caller needs to make sure that the engine is not
38
// destroyed.
39
static
void
setRandomEngine
( CLHEP::HepRandomEngine* randomEngine );
40
41
private
:
42
static
CLHEP::HepRandomEngine* _randomEngine;
43
};
44
45
#endif
min
#define min(a, b)
Definition
Eepipi/src/ee2eepp/basesv5.1/f2c.h:157
max
#define max(a, b)
Definition
Eepipi/src/ee2eepp/basesv5.1/f2c.h:158
KKMCRandom
Definition
KKMCRandom.h:26
KKMCRandom::Flat
static double Flat()
Definition
KKMCRandom.cxx:57
KKMCRandom::FlatArray
static void FlatArray(double *vect, const int size)
Definition
KKMCRandom.cxx:59
KKMCRandom::setRandomEngine
static void setRandomEngine(CLHEP::HepRandomEngine *randomEngine)
Definition
KKMCRandom.cxx:32
KKMCRandom::random
static double random()
Definition
KKMCRandom.cxx:36
8.0.0
BOSS_Gen
KKMC
src
KKMCRandom.h
Generated by
1.16.1