#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 | |
| TH2 * | hFoam |
| TH2 * | hUnr |
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().
Definition at line 27 of file unuranFoamTest.C.
| 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().
1.5.1