EeTo4eRandom Class Reference

#include <EeTo4eRandom.h>

List of all members.

Static Public Member Functions

static double Flat (double min, double max)
static double Flat (double max)
static double Flat ()
static void FlatArray (double *vect, const int size)
static double random ()
static void setRandomEngine (CLHEP::HepRandomEngine *randomEngine)

Static Private Attributes

static CLHEP::HepRandomEngine * _randomEngine = 0


Detailed Description

Definition at line 19 of file EeTo4eRandom.h.


Member Function Documentation

double EeTo4eRandom::Flat (  )  [static]

Definition at line 55 of file EeTo4eRandom.cxx.

References random().

00055                          {
00056 
00057   return EeTo4eRandom::random();
00058 
00059  } 

double EeTo4eRandom::Flat ( double  max  )  [static]

Definition at line 49 of file EeTo4eRandom.cxx.

References random().

00049                                    {
00050 
00051   return max*EeTo4eRandom::random();
00052 
00053 } 

double EeTo4eRandom::Flat ( double  min,
double  max 
) [static]

Definition at line 39 of file EeTo4eRandom.cxx.

References random().

00039                                                 {
00040 
00041   if ( min > max ) {
00042     cerr<< "min>max in EeTo4eRandom::Flat(" << min << "," << max << ")" <<endl;
00043   }
00044 
00045   return EeTo4eRandom::random()*( max - min )+min;
00046 
00047 } 

void EeTo4eRandom::FlatArray ( double *  vect,
const int  size 
) [static]

Definition at line 61 of file EeTo4eRandom.cxx.

References _randomEngine.

00061                                                         {
00062   if(_randomEngine == 0) cout<<"Can not get randomEngine pointer in EeTo4eRandom::FlatArray"<<endl;
00063   else _randomEngine->flatArray(size,vect);
00064 }

double EeTo4eRandom::random (  )  [static]

Definition at line 28 of file EeTo4eRandom.cxx.

References _randomEngine.

Referenced by Flat().

00028                            {
00029 
00030   if (_randomEngine==0){
00031     cerr <<"No random engine available in "
00032                            <<"EeTo4eRandom::random()."<<endl;
00033   }
00034     return _randomEngine->flat();
00035   }

void EeTo4eRandom::setRandomEngine ( CLHEP::HepRandomEngine *  randomEngine  )  [static]

Definition at line 23 of file EeTo4eRandom.cxx.

References _randomEngine.

Referenced by EeTo4e::initialize().

00023                                                                     {
00024   _randomEngine=randomEngine;
00025 }


Member Data Documentation

HepRandomEngine * EeTo4eRandom::_randomEngine = 0 [static, private]

Definition at line 37 of file EeTo4eRandom.h.

Referenced by FlatArray(), random(), and setRandomEngine().


Generated on Tue Nov 29 23:18:36 2016 for BOSS_7.0.2 by  doxygen 1.4.7