Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-30 10:03:30

0001 // $Id: RandStudentT.icc,v 1.3 2010/06/16 17:24:53 garren Exp $
0002 // -*- C++ -*-
0003 // 
0004 // -----------------------------------------------------------------------
0005 //                             HEP Random
0006 //                        --- RandStudentT ---
0007 //                 inlined functions implementation file
0008 // -----------------------------------------------------------------------
0009  
0010 // =======================================================================
0011 // Gabriele Cosmo - Created: 19th August 1998
0012 // =======================================================================
0013 
0014 namespace CLHEP {
0015 
0016 inline RandStudentT::RandStudentT(HepRandomEngine & anEngine, double a)
0017 : HepRandom( ), localEngine( &anEngine, do_nothing_deleter() ), defaultA(a)
0018   {}
0019 
0020 inline RandStudentT::RandStudentT(HepRandomEngine * anEngine, double a)
0021 : HepRandom( ), localEngine( anEngine ), defaultA(a)
0022   {}
0023 
0024 inline double RandStudentT::fire() {
0025   return fire( defaultA );
0026 }
0027 
0028 inline double RandStudentT::shoot() {
0029   return shoot( 1.0 );
0030 }
0031 
0032 inline double RandStudentT::shoot( HepRandomEngine* anEngine )
0033 {
0034   return shoot( anEngine, 1.0 );
0035 }
0036 
0037 }  // namespace CLHEP