4 // -----------------------------------------------------------------------
7 // inlined functions implementation file
8 // -----------------------------------------------------------------------
9 // This file is part of Geant4 (simulation toolkit for HEP).
11 // =======================================================================
12 // Gabriele Cosmo - Created: 19th August 1998
13 // M Fischler - Added some inline methods that had been in the .cc file,
14 // which are shells for calls to transform(r): 30 Sep 1999
15 // =======================================================================
22 RandLandau::RandLandau(HepRandomEngine & anEngine )
23 : HepRandom(), localEngine(&anEngine, do_nothing_deleter())
26 RandLandau::RandLandau(HepRandomEngine * anEngine )
27 : HepRandom(), localEngine(anEngine)
30 // Getting a Landau deviate - static methods
31 // -------------------------------------------
33 double RandLandau::shoot()
35 HepRandomEngine* anEngine = HepRandom::getTheEngine();
36 return transform (anEngine->flat());
39 double RandLandau::shoot( HepRandomEngine* anotherEngine )
41 return transform (anotherEngine->flat());
44 // Getting a Landau deviate - instance methods
45 // ---------------------------------------------
47 double RandLandau::fire() {
48 return transform(localEngine->flat());
51 double RandLandau::operator()() {
52 return transform(localEngine->flat());