CLHEP 2.4.7.1
C++ Class Library for High Energy Physics
Random.icc
Go to the documentation of this file.
1// $Id: Random.icc,v 1.2 2003/07/17 19:20:02 garren Exp $
2// -*- C++ -*-
3//
4// -----------------------------------------------------------------------
5// HEP Random
6// --- HepRandom ---
7// inlined functions implementation file
8// -----------------------------------------------------------------------
9// This file is part of Geant4 (simulation toolkit for HEP).
10
11// =======================================================================
12// Gabriele Cosmo - Created: 5th September 1995
13// - Added methods for engine status: 19th November 1996
14// - operator()() is now virtual: 28th July 1997
15// - Simplified initialisation of static generator: 5th Jan 1999
16// =======================================================================
17
18namespace CLHEP {
19
20inline double HepRandom::flat(HepRandomEngine* theNewEngine)
21{
22 return theNewEngine->flat();
23}
24
25inline void HepRandom::flatArray(HepRandomEngine* theNewEngine,
26 const int size, double* vect)
27{
28 theNewEngine->flatArray(size,vect);
29}
30
31} // namespace CLHEP
32
virtual double flat()=0
virtual void flatArray(const int size, double *vect)=0
void flatArray(const int size, double *vect)