unuranFoamTest.C File Reference

#include "TH2.h"
#include "TF2.h"
#include "TSystem.h"
#include "TCanvas.h"
#include "TMath.h"
#include "TRandom3.h"
#include "TFoam.h"
#include "TFoamIntegrand.h"
#include "TStopwatch.h"
#include "TROOT.h"
#include "TUnuran.h"
#include "TUnuranMultiContDist.h"
#include <iostream>

Go to the source code of this file.

Classes

class  FoamFunction

Functions

Double_t sqr (Double_t x)
Double_t Camel2 (Int_t nDim, Double_t *Xarg)
Int_t run_foam (int nev)
double UCamel2 (double *x, double *)
int run_unuran (int nev, std::string method="hitro")
Int_t unuranFoamTest ()

Variables

TH2hFoam
TH2hUnr


Function Documentation

Double_t Camel2 ( Int_t  nDim,
Double_t Xarg 
)

Definition at line 32 of file unuranFoamTest.C.

References ROOT::Math::GSLSimAn::Dist(), exp(), TMath::Pi(), sqr(), x, and y.

Int_t run_foam ( int  nev  ) 

Definition at line 57 of file unuranFoamTest.C.

References TH1::Draw(), TH2::Fill(), TFoam::GetIntegMC(), TFoam::GetMCvect(), gSystem, hFoam, TFoam::Initialize(), TSystem::Load(), TFoam::MakeEvent(), TFoam::SetkDim(), TFoam::SetnCells(), TFoam::SetPseRan(), TFoam::SetRho(), TRandom::SetSeed(), w, x, and y.

Referenced by unuranFoamTest().

int run_unuran ( int  nev,
std::string  method = "hitro" 
)

Definition at line 120 of file unuranFoamTest.C.

References ROOT::Math::gv_detail::dist(), TH1::Draw(), TH2::Fill(), gSystem, h1, hUnr, i, TUnuran::Init(), TSystem::Load(), method, TUnuran::MethodName(), TUnuran::SampleMulti(), UCamel2(), w, and x.

Referenced by unuranFoamTest().

Double_t sqr ( Double_t  x  ) 

Definition at line 27 of file unuranFoamTest.C.

double UCamel2 ( double x,
double  
)

Definition at line 116 of file unuranFoamTest.C.

References Camel2().

Referenced by run_unuran().

Int_t unuranFoamTest (  ) 

Definition at line 166 of file unuranFoamTest.C.

References TCanvas::cd(), TH1::Chi2Test(), TPad::Divide(), hFoam, hUnr, n, run_foam(), run_unuran(), and TCanvas::Update().


Variable Documentation

TH2* hFoam

Definition at line 53 of file unuranFoamTest.C.

Referenced by run_foam(), and unuranFoamTest().

TH2* hUnr

Definition at line 54 of file unuranFoamTest.C.

Referenced by run_unuran(), and unuranFoamTest().


Generated on Tue Jul 5 16:09:39 2011 for ROOT_528-00b_version by  doxygen 1.5.1