RandLandau.icc

Go to the documentation of this file.
00001 // $Id:$
00002 // -*- C++ -*-
00003 //
00004 // -----------------------------------------------------------------------
00005 //                             HEP Random
00006 //                         --- RandLandau ---
00007 //                 inlined functions implementation file
00008 // -----------------------------------------------------------------------
00009 // This file is part of Geant4 (simulation toolkit for HEP).
00010  
00011 // =======================================================================
00012 // Gabriele Cosmo - Created: 19th August 1998
00013 // M Fischler     - Added some inline methods that had been in the .cc file,
00014 //                  which are shells for calls to transform(r): 30 Sep 1999
00015 // =======================================================================
00016 
00017 // Constructors
00018 // ------------
00019 
00020 namespace CLHEP {
00021 
00022 RandLandau::RandLandau(HepRandomEngine & anEngine )
00023 : HepRandom(), localEngine(&anEngine, do_nothing_deleter())
00024 {}
00025 
00026 RandLandau::RandLandau(HepRandomEngine * anEngine ) 
00027 : HepRandom(), localEngine(anEngine) 
00028 {}
00029 
00030 // Getting a Landau deviate - static methods
00031 // -------------------------------------------
00032 
00033 double RandLandau::shoot()
00034 {
00035   HepRandomEngine* anEngine = HepRandom::getTheEngine();
00036   return transform (anEngine->flat());
00037 }
00038 
00039 double RandLandau::shoot( HepRandomEngine* anotherEngine )
00040 { 
00041   return transform  (anotherEngine->flat());
00042 }
00043 
00044 // Getting a Landau deviate - instance methods
00045 // ---------------------------------------------
00046 
00047 double RandLandau::fire() {
00048   return transform(localEngine->flat());
00049 }
00050 
00051 double RandLandau::operator()() {
00052   return transform(localEngine->flat());
00053 }
00054 
00055 }  // namespace CLHEP

Generated on Mon May 27 17:50:33 2013 for Geant4 by  doxygen 1.4.7