RandStudentT.icc

Go to the documentation of this file.
00001 // $Id:$
00002 // -*- C++ -*-
00003 // 
00004 // -----------------------------------------------------------------------
00005 //                             HEP Random
00006 //                        --- RandStudentT ---
00007 //                 inlined functions implementation file
00008 // -----------------------------------------------------------------------
00009  
00010 // =======================================================================
00011 // Gabriele Cosmo - Created: 19th August 1998
00012 // =======================================================================
00013 
00014 namespace CLHEP {
00015 
00016 inline RandStudentT::RandStudentT(HepRandomEngine & anEngine, double a)
00017 : HepRandom( ), localEngine( &anEngine, do_nothing_deleter() ), defaultA(a)
00018   {}
00019 
00020 inline RandStudentT::RandStudentT(HepRandomEngine * anEngine, double a)
00021 : HepRandom( ), localEngine( anEngine ), defaultA(a)
00022   {}
00023 
00024 inline double RandStudentT::fire() {
00025   return fire( defaultA );
00026 }
00027 
00028 inline double RandStudentT::shoot() {
00029   return shoot( 1.0 );
00030 }
00031 
00032 inline double RandStudentT::shoot( HepRandomEngine* anEngine )
00033 {
00034   return shoot( anEngine, 1.0 );
00035 }
00036 
00037 }  // namespace CLHEP

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