CLHEP
2.4.7.1
C++ Class Library for High Energy Physics
CLHEP
Random
RandChiSquare.icc
Go to the documentation of this file.
1
// $Id: RandChiSquare.icc,v 1.3 2010/06/16 17:24:53 garren Exp $
2
// -*- C++ -*-
3
//
4
// -----------------------------------------------------------------------
5
// HEP Random
6
// --- RandChiSquare ---
7
// inlined functions implementation file
8
// -----------------------------------------------------------------------
9
10
// =======================================================================
11
// Gabriele Cosmo - Created: 19th August 1998
12
// =======================================================================
13
14
namespace
CLHEP
{
15
16
inline
RandChiSquare::RandChiSquare
(
HepRandomEngine
& anEngine,
double
a)
17
:
HepRandom
( ), localEngine(&anEngine,
do_nothing_deleter
()), defaultA(a)
18
{}
19
20
inline
RandChiSquare::RandChiSquare
(
HepRandomEngine
* anEngine,
double
a)
21
:
HepRandom
( ), localEngine(anEngine), defaultA(a)
22
{}
23
24
inline
double
RandChiSquare::fire
() {
25
return
fire
( defaultA );
26
}
27
28
inline
double
RandChiSquare::shoot
() {
29
return
shoot
( 1.0 );
30
}
31
32
inline
double
RandChiSquare::operator()
() {
33
return
fire
( defaultA );
34
}
35
36
inline
double
RandChiSquare::operator()
(
double
a ) {
37
return
fire
( a );
38
}
39
40
inline
double
RandChiSquare::shoot
(
HepRandomEngine
* anEngine ) {
41
return
shoot
( anEngine, 1.0 );
42
}
43
44
}
// namespace CLHEP
CLHEP::HepRandomEngine
Definition
RandomEngine.h:55
CLHEP::HepRandom
Definition
Random.h:50
CLHEP::RandChiSquare::fire
double fire()
Definition
RandChiSquare.icc:24
CLHEP::RandChiSquare::operator()
double operator()()
Definition
RandChiSquare.icc:32
CLHEP::RandChiSquare::RandChiSquare
RandChiSquare(HepRandomEngine &anEngine, double a=1)
Definition
RandChiSquare.icc:16
CLHEP::RandChiSquare::shoot
static double shoot()
Definition
RandChiSquare.icc:28
CLHEP
Definition
ClhepVersion.h:13
CLHEP::do_nothing_deleter
Definition
memory.h:25
Generated by
1.10.0