All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Rndm::Gauss Class Reference

Parameters for the Gauss random number generation. More...

#include <GaudiKernel/RndmGenerators.h>

Inheritance diagram for Rndm::Gauss:
Collaboration diagram for Rndm::Gauss:

Public Member Functions

 Gauss (double m, double s)
 Standard Constructor. More...
 
virtual ~Gauss ()
 Standard Destructor. More...
 
double mean () const
 Access mean value of the distribution. More...
 
double sigma () const
 Access width of the distribution. More...
 
virtual IRndmGen::Paramclone () const
 Clone parameters. More...
 
- Public Member Functions inherited from IRndmGen::Param
 Param (const InterfaceID &type=IID_IRndmFlat)
 Standard constructor. More...
 
virtual ~Param ()
 Standard Destructor. More...
 
virtual const InterfaceIDtype () const
 Parameter's type. More...
 

Static Public Member Functions

static const InterfaceIDtypeID ()
 Identifier for factory. More...
 

Protected Attributes

double m_mean
 Mean of the Gauss distribution. More...
 
double m_sigma
 Sigma of the Gauss distribution. More...
 
- Protected Attributes inherited from IRndmGen::Param
const InterfaceID m_type
 Type of the generator. More...
 

Friends

class Generator< Gauss >
 Generator is the friend. More...
 

Detailed Description

Parameters for the Gauss random number generation.

Definition at line 22 of file RndmGenerators.h.

Constructor & Destructor Documentation

Rndm::Gauss::Gauss ( double  m,
double  s 
)
inline

Standard Constructor.

Definition at line 32 of file RndmGenerators.h.

33  : IRndmGen::Param(IID_IRndmGauss), m_mean(m), m_sigma(s) { }
double m_mean
Mean of the Gauss distribution.
double m_sigma
Sigma of the Gauss distribution.
string s
Definition: gaudirun.py:210
virtual Rndm::Gauss::~Gauss ( )
inlinevirtual

Standard Destructor.

Definition at line 35 of file RndmGenerators.h.

35 { }

Member Function Documentation

virtual IRndmGen::Param* Rndm::Gauss::clone ( ) const
inlinevirtual

Clone parameters.

Implements IRndmGen::Param.

Definition at line 43 of file RndmGenerators.h.

43  {
44  return new Gauss(m_mean, m_sigma);
45  }
Gauss(double m, double s)
Standard Constructor.
double m_mean
Mean of the Gauss distribution.
double m_sigma
Sigma of the Gauss distribution.
double Rndm::Gauss::mean ( ) const
inline

Access mean value of the distribution.

Definition at line 37 of file RndmGenerators.h.

37 { return m_mean; }
double m_mean
Mean of the Gauss distribution.
double Rndm::Gauss::sigma ( ) const
inline

Access width of the distribution.

Definition at line 39 of file RndmGenerators.h.

39 { return m_sigma; }
double m_sigma
Sigma of the Gauss distribution.
static const InterfaceID& Rndm::Gauss::typeID ( )
inlinestatic

Identifier for factory.

Definition at line 41 of file RndmGenerators.h.

41 { return IID_IRndmGauss; }

Friends And Related Function Documentation

friend class Generator< Gauss >
friend

Generator is the friend.

Definition at line 25 of file RndmGenerators.h.

Member Data Documentation

double Rndm::Gauss::m_mean
protected

Mean of the Gauss distribution.

Definition at line 27 of file RndmGenerators.h.

double Rndm::Gauss::m_sigma
protected

Sigma of the Gauss distribution.

Definition at line 29 of file RndmGenerators.h.


The documentation for this class was generated from the following file: