My Project
Public Member Functions | Protected Member Functions
GaussianEventData Class Reference

Event data generator with Gaussian function. More...

#include <GaussianEventData.hh>

List of all members.

Public Member Functions

 GaussianEventData (Double Average, Double Sigma, Int4 Ini, Int4 Fin)
Int4 Next ()
vector< Int4 > Generate (UInt4 size)

Protected Member Functions

Double f (Double x)
UInt4 RandInt (UInt4 Max)
Int4 RandInt (Int4 Min, Int4 Max)

Detailed Description

Event data generator with Gaussian function.

This class generate event data generator with Gaussian function and the class of GslRandGenerator.


Constructor & Destructor Documentation

GaussianEventData::GaussianEventData ( Double  Average,
Double  Sigma,
Int4  Ini,
Int4  Fin 
)

Constructor. The shape of Gaussian function is set with the arguments of this method. The minimum and maximum return value of the generator are Ini and Max. Average and Sigma are the expected value and the standard deviation.


Member Function Documentation

vector< Int4 > GaussianEventData::Generate ( UInt4  size)

This method returns a vector<Int4> vector object whose size is "size". The vector is filled the values obtained with "Next()".

This method returns an integer. If you create the histogram filled with the return values, you will get a Gaussian distributed histogram.


The documentation for this class was generated from the following files:
 All Classes Functions Variables Friends