GamR  0.0.0
GammaROOT
Loading...
Searching...
No Matches
MonteCarlo.hh
Go to the documentation of this file.
1#ifndef GAMR_TOOLKIT_MONTECARLO_HH
2#define GAMR_TOOLKIT_MONTECARLO_HH
3
4#include <functional>
5#include <memory>
6
7#include <TCanvas.h>
8#include <TH2.h>
9#include <TRandom3.h>
10
11namespace GamR {
12namespace TK {
13
14std::shared_ptr<TH2D> MonteCarlo(std::function<std::pair<double, double>(TH1 *, TRandom3 &)> func, TH1 *system,
15 size_t ntoys, Bool_t draw = kTRUE, const Bool_t weight = kFALSE,
16 TCanvas *c1 = nullptr);
17
18} /* namespace TK */
19} /* namespace GamR */
20
21#endif
std::shared_ptr< TH2D > MonteCarlo(std::function< std::pair< double, double >(TH1 *, TRandom3 &)> func, TH1 *system, size_t ntoys, Bool_t draw, const Bool_t weight, TCanvas *c1)
Definition MonteCarlo.cc:9
Definition Gain.cc:19