Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 09:54:37

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