Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 09:54:38

0001 // $Id: Randomize.h,v 1.4 2011/05/31 20:57:00 garren Exp $
0002 // -*- C++ -*-
0003 //
0004 // -----------------------------------------------------------------------
0005 //                             HEP Random
0006 // -----------------------------------------------------------------------
0007 // This file is part of Geant4 (simulation toolkit for HEP).
0008 //
0009 // This file must be included to make use of the HEP Random module
0010 // On some compilers the static instance of the HepRandom generator
0011 // needs to be created explicitly in the client code. The static
0012 // generator is assured to be correctly initialized by including this
0013 // header in the client code.
0014 
0015 // =======================================================================
0016 // Gabriele Cosmo - Created: 5th September 1995
0017 // Gabriele Cosmo - Last change: 13th February 1996
0018 // Ken Smith      - Added Ranshi and DualRand engines: 4th June 1998
0019 //                - Added Ranlux64 and MTwist engines: 14th July 1998
0020 //                - Added Hurd160, Hurd288m and TripleRand 6th Aug 1998
0021 // =======================================================================
0022 
0023 #ifndef Rndmze_h
0024 #define Rndmze_h 1
0025 
0026 // Including Engines ...
0027 
0028 #include "CLHEP/Random/defs.h"
0029 #include "CLHEP/Random/DRand48Engine.h"
0030 #include "CLHEP/Random/DualRand.h"
0031 #include "CLHEP/Random/Hurd160Engine.h"
0032 #include "CLHEP/Random/Hurd288Engine.h"
0033 #include "CLHEP/Random/JamesRandom.h"
0034 #include "CLHEP/Random/MixMaxRng.h"
0035 #include "CLHEP/Random/MTwistEngine.h"
0036 #include "CLHEP/Random/RandEngine.h"
0037 #include "CLHEP/Random/RanecuEngine.h"
0038 #include "CLHEP/Random/RanluxEngine.h"
0039 #include "CLHEP/Random/Ranlux64Engine.h"
0040 #include "CLHEP/Random/RanluxppEngine.h"
0041 #include "CLHEP/Random/RanshiEngine.h"
0042 #include "CLHEP/Random/TripleRand.h"
0043 
0044 // Including distributions ...
0045 
0046 #include "CLHEP/Random/RandBinomial.h"
0047 #include "CLHEP/Random/RandBreitWigner.h"
0048 #include "CLHEP/Random/RandChiSquare.h"
0049 #include "CLHEP/Random/RandExponential.h"
0050 #include "CLHEP/Random/RandExpZiggurat.h"
0051 #include "CLHEP/Random/RandFlat.h"
0052 #include "CLHEP/Random/RandBit.h"
0053 #include "CLHEP/Random/RandGamma.h"
0054 #include "CLHEP/Random/RandGauss.h"
0055 #include "CLHEP/Random/RandGaussQ.h"
0056 #include "CLHEP/Random/RandGaussT.h"
0057 #include "CLHEP/Random/RandGaussZiggurat.h"
0058 #include "CLHEP/Random/RandGeneral.h"
0059 #include "CLHEP/Random/RandLandau.h"
0060 #include "CLHEP/Random/RandPoissonQ.h"
0061 #include "CLHEP/Random/RandPoissonT.h"
0062 #include "CLHEP/Random/RandSkewNormal.h"
0063 #include "CLHEP/Random/RandStudentT.h"
0064 namespace CLHEP {
0065 
0066 #define HepUniformRand() HepRandom::getTheEngine()->flat()
0067 
0068 // On some compilers the static instance of the HepRandom generator
0069 // needs to be created explicitly in the client code (i.e. here).
0070 
0071 #if __GNUC__
0072 static const int HepRandomGenActive __attribute__((unused)) = HepRandom::createInstance();
0073 #else
0074 static const int HepRandomGenActive = HepRandom::createInstance();
0075 #endif
0076 
0077 }  // namespace CLHEP
0078 
0079 #ifdef ENABLE_BACKWARDS_COMPATIBILITY
0080 //  backwards compatibility will be enabled ONLY in CLHEP 1.9
0081 using namespace CLHEP;
0082 #endif
0083 
0084 #endif