ROOT  6.07/01
Reference Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Macros | Functions | Variables
testRandomDist.cxx File Reference
#include "Math/Random.h"
#include "Math/GSLRndmEngines.h"
#include "Math/DistFunc.h"
#include "TStopwatch.h"
#include "TRandom3.h"
#include "TRandom2.h"
#include "TCanvas.h"
#include "TH1D.h"
#include "TH2D.h"
#include "TH3D.h"
#include "TMath.h"
#include <iostream>
#include <cmath>
#include <typeinfo>
Include dependency graph for testRandomDist.cxx:

Go to the source code of this file.

Macros

#define PI   3.14159265358979323846264338328 /* pi */
 
#define NEVT   1000000
 

Functions

void testDiff (TH1D &h1, TH1D &h2, const std::string &name="")
 
template<class R >
std::string findName (const R &r)
 
template<class R >
void testPoisson (R &r, double mu, TH1D &h)
 
template<class R >
unsigned int genPoisson (R &r, double mu)
 
template<class R >
unsigned int genPoisson2 (R &r, double mu)
 
template<class R >
void testPoisson2 (R &r, double mu, TH1D &h)
 
template<class R >
void testFlat (R &r, TH1D &h)
 
template<class R >
void testGaus (R &r, double mu, double sigma, TH1D &h)
 
template<class R >
void testLandau (R &r, TH1D &h)
 
template<class R >
void testBreitWigner (R &r, double mu, double gamma, TH1D &h)
 
template<class R >
void testBinomial (R &r, int ntot, double p, TH1D &h)
 
template<class R >
void testBinomialCLHEP (R &r, int ntot, double p, TH1D &h)
 
template<class R >
void testMultinomial (R &r, int ntot, TH1D &h1, TH1D &h2)
 
template<class R >
void testExp (R &r, TH1D &h)
 
template<class R >
void testCircle (R &r, TH1D &h)
 
template<class R >
void testSphere (R &r, TH1D &h1, TH1D &h2)
 
int testRandomDist ()
 
int main ()
 

Variables

static bool fillHist = false
 

Macro Definition Documentation

#define NEVT   1000000
#define PI   3.14159265358979323846264338328 /* pi */

Definition at line 32 of file testRandomDist.cxx.

Referenced by testRandomDist().

Function Documentation

template<class R >
std::string findName ( const R r)
template<class R >
unsigned int genPoisson ( R r,
double  mu 
)

Definition at line 118 of file testRandomDist.cxx.

template<class R >
unsigned int genPoisson2 ( R r,
double  mu 
)

Definition at line 171 of file testRandomDist.cxx.

int main ( )

Definition at line 846 of file testRandomDist.cxx.

template<class R >
void testBinomial ( R r,
int  ntot,
double  p,
TH1D h 
)

Definition at line 432 of file testRandomDist.cxx.

Referenced by testRandomDist().

template<class R >
void testBinomialCLHEP ( R r,
int  ntot,
double  p,
TH1D h 
)

Definition at line 457 of file testRandomDist.cxx.

Referenced by testRandomDist().

template<class R >
void testBreitWigner ( R r,
double  mu,
double  gamma,
TH1D h 
)

Definition at line 406 of file testRandomDist.cxx.

Referenced by testRandomDist().

template<class R >
void testCircle ( R r,
TH1D h 
)

Definition at line 565 of file testRandomDist.cxx.

Referenced by testRandomDist().

void testDiff ( TH1D h1,
TH1D h2,
const std::string &  name = "" 
)

Definition at line 52 of file testRandomDist.cxx.

Referenced by testRandomDist().

template<class R >
void testExp ( R r,
TH1D h 
)

Definition at line 540 of file testRandomDist.cxx.

Referenced by testRandomDist().

template<class R >
void testFlat ( R r,
TH1D h 
)

Definition at line 325 of file testRandomDist.cxx.

Referenced by testRandomDist().

template<class R >
void testGaus ( R r,
double  mu,
double  sigma,
TH1D h 
)

Definition at line 351 of file testRandomDist.cxx.

Referenced by testRandomDist().

template<class R >
void testLandau ( R r,
TH1D h 
)

Definition at line 378 of file testRandomDist.cxx.

Referenced by testRandomDist().

template<class R >
void testMultinomial ( R r,
int  ntot,
TH1D h1,
TH1D h2 
)

Definition at line 482 of file testRandomDist.cxx.

Referenced by testRandomDist().

template<class R >
void testPoisson ( R r,
double  mu,
TH1D h 
)

Definition at line 91 of file testRandomDist.cxx.

Referenced by testRandomDist().

template<class R >
void testPoisson2 ( R r,
double  mu,
TH1D h 
)

Definition at line 219 of file testRandomDist.cxx.

int testRandomDist ( )

Definition at line 657 of file testRandomDist.cxx.

Referenced by main().

template<class R >
void testSphere ( R r,
TH1D h1,
TH1D h2 
)

Definition at line 594 of file testRandomDist.cxx.

Referenced by testRandomDist().

Variable Documentation

bool fillHist = false
static