#include "TStopwatch.h"#include "TUnuran.h"#include "TUnuranMultiContDist.h"#include "TH3.h"#include "TF3.h"#include "TCanvas.h"#include "TMath.h"#include "TRandom3.h"#include "TSystem.h"#include "TApplication.h"#include "TError.h"#include <iostream>#include <cmath>#include <cassert>#include <vector>Go to the source code of this file.
Functions | |
| double | gaus3d (double *x, double *p) |
| double | log_gaus3d (double *x, double *p) |
| double | gaus10d (double *x, double *) |
| double | gaus100d (double *x, double *) |
| int | testUnuran (TUnuran &unr, const std::string &method, const TUnuranMultiContDist &dist, TH3 *h1, const TH3 *href=0, const int dim=3) |
| int | testGetRandom (TF3 *f, TH3 *h1, const TH3 *href=0) |
| int | unuranMultiDim () |
| int | main (int argc, char **argv) |
Variables | |
| int | n |
| bool | useRandomSeed = false |
Definition at line 40 of file unuranMultiDim.cxx.
References c, exp(), TMath::Pi(), result(), sqrt(), u, and w.
Definition at line 54 of file unuranMultiDim.cxx.
References gaus3d(), and log().
Referenced by unuranMultiDim().
| int main | ( | int | argc, | |
| char ** | argv | |||
| ) |
Definition at line 371 of file unuranMultiDim.cxx.
References TApplication::Run(), and unuranMultiDim().
Definition at line 122 of file unuranMultiDim.cxx.
References E, TH2::Fill(), h1, i, n, TH2D::Reset(), w, and x.
| int testUnuran | ( | TUnuran & | unr, | |
| const std::string & | method, | |||
| const TUnuranMultiContDist & | dist, | |||
| TH3 * | h1, | |||
| const TH3 * | href = 0, |
|||
| const int | dim = 3 | |||
| ) |
Definition at line 75 of file unuranMultiDim.cxx.
References ROOT::Math::gv_detail::dist(), E, TH2::Fill(), h1, i, TUnuran::Init(), TUnuran::MethodName(), n, TH2D::Reset(), TUnuran::SampleMulti(), w, and x.
| int unuranMultiDim | ( | ) |
Definition at line 157 of file unuranMultiDim.cxx.
References c1, TCanvas::cd(), ROOT::Math::gv_detail::dist(), TPad::Divide(), TH1::Draw(), flog, gaus100d(), gaus10d(), gaus3d(), gErrorIgnoreLevel, gRandom, gSystem, h1, h2, TSystem::Load(), log_gaus3d(), m, method, n, par, TUnuranMultiContDist::SetDomain(), TUnuranMultiContDist::SetMode(), TRandom::SetSeed(), testGetRandom(), testUnuran(), TCanvas::Update(), useRandomSeed, xmax, and xmin.
Referenced by main().
| int n |
Definition at line 36 of file unuranMultiDim.cxx.
| bool useRandomSeed = false |
Definition at line 38 of file unuranMultiDim.cxx.
1.5.1