Geant4  10.02.p02
RandStudentT.icc
Go to the documentation of this file.
1 // $Id:$
2 // -*- C++ -*-
3 //
4 // -----------------------------------------------------------------------
5 // HEP Random
6 // --- RandStudentT ---
7 // inlined functions implementation file
8 // -----------------------------------------------------------------------
9 
10 // =======================================================================
11 // Gabriele Cosmo - Created: 19th August 1998
12 // =======================================================================
13 
14 namespace CLHEP {
15 
16 inline RandStudentT::RandStudentT(HepRandomEngine & anEngine, double a)
17 : HepRandom( ), localEngine( &anEngine, do_nothing_deleter() ), defaultA(a)
18  {}
19 
20 inline RandStudentT::RandStudentT(HepRandomEngine * anEngine, double a)
21 : HepRandom( ), localEngine( anEngine ), defaultA(a)
22  {}
23 
24 inline double RandStudentT::fire() {
25  return fire( defaultA );
26 }
27 
28 inline double RandStudentT::shoot() {
29  return shoot( 1.0 );
30 }
31 
32 inline double RandStudentT::shoot( HepRandomEngine* anEngine )
33 {
34  return shoot( anEngine, 1.0 );
35 }
36 
37 } // namespace CLHEP