#include "RooFit.h"
#include "RooRandom.h"
#include "RooRandom.h"
#include "RooQuasiRandomGenerator.h"
#include "TRandom3.h"
#include <assert.h>
ClassImp(RooRandom)
;
TRandom *RooRandom::randomGenerator() {
static TRandom *_theGenerator= 0;
if(0 == _theGenerator) _theGenerator= new TRandom3();
return _theGenerator;
}
RooQuasiRandomGenerator *RooRandom::quasiGenerator() {
static RooQuasiRandomGenerator *_theGenerator= 0;
if(0 == _theGenerator) _theGenerator= new RooQuasiRandomGenerator();
return _theGenerator;
}
Double_t RooRandom::uniform(TRandom *generator) {
return generator->Rndm();
}
void RooRandom::uniform(UInt_t dimension, Double_t vector[], TRandom *generator) {
for(UInt_t index= 0; index < dimension; index++) vector[index]= uniform(generator);
}
UInt_t RooRandom::integer(UInt_t n, TRandom *generator) {
return generator->Integer(n);
}
Double_t RooRandom::gaussian(TRandom *generator) {
return generator->Gaus();
}
Bool_t RooRandom::quasi(UInt_t dimension, Double_t vector[], RooQuasiRandomGenerator *generator) {
return generator->generate(dimension,vector);
}
ROOT page - Class index - Class Hierarchy - Top of the page
This page has been automatically generated. If you have any comments or suggestions about the page layout send a mail to ROOT support, or contact the developers with any questions or problems regarding ROOT.