|
||||
File indexing completed on 2025-01-18 09:54:38
0001 // $Id: RandGeneral.icc,v 1.2 2003/07/17 19:20:02 garren Exp $ 0002 // -*- C++ -*- 0003 // 0004 // ----------------------------------------------------------------------- 0005 // HEP Random 0006 // --- RandGeneral --- 0007 // inlined functions implementation file 0008 // ----------------------------------------------------------------------- 0009 0010 // ======================================================================= 0011 // Gabriele Cosmo - Created: 20th August 1998 0012 // 0013 // M. Fischler - Moved fire() and shoot(anEngine) into inline so that 0014 // the use of mapRandom does not cost an extra function call. 0015 // ======================================================================= 0016 0017 namespace CLHEP { 0018 0019 inline double RandGeneral::fire() 0020 { 0021 double rand = localEngine->flat(); 0022 return mapRandom(rand); 0023 } 0024 0025 inline double RandGeneral::shoot() 0026 { 0027 return fire(); 0028 } 0029 0030 inline double RandGeneral::operator() () 0031 { 0032 return fire(); 0033 } 0034 0035 inline double RandGeneral::shoot( HepRandomEngine* anEngine ) 0036 { 0037 double rand = anEngine->flat(); 0038 return mapRandom(rand); 0039 } 0040 0041 inline void RandGeneral::shootArray( const int size, double* vect ) 0042 { 0043 fireArray(size, vect); 0044 } 0045 0046 } // namespace CLHEP
[ Source navigation ] | [ Diff markup ] | [ Identifier search ] | [ general search ] |
This page was automatically generated by the 2.3.7 LXR engine. The LXR team |