1 |
mayorov |
1.1 |
#include <iostream> |
2 |
|
|
#include <fstream> |
3 |
|
|
#include <stdio.h> |
4 |
|
|
//#include <vector.h> |
5 |
|
|
#include <math.h> |
6 |
|
|
#include <TH1F.h> |
7 |
|
|
#include <TH2F.h> |
8 |
|
|
#include <TH1D.h> |
9 |
|
|
#include <TH2D.h> |
10 |
|
|
#include <TFile.h> |
11 |
|
|
#include <TROOT.h> |
12 |
|
|
#include <TList.h> |
13 |
|
|
#include <TString.h> |
14 |
|
|
//#include <TObjectString.h> |
15 |
|
|
#include <TGraphAsymmErrors.h> |
16 |
|
|
#include <TGraphErrors.h> |
17 |
|
|
#include <TChain.h> |
18 |
|
|
#include <TCutG.h> |
19 |
|
|
#include <TF1.h> |
20 |
|
|
#include <TCanvas.h> |
21 |
|
|
#include <TObjString.h> |
22 |
|
|
#include <TMath.h> |
23 |
|
|
#include <Math/GSLRndmEngines.h> |
24 |
|
|
#include <TRandom3.h> |
25 |
|
|
|
26 |
|
|
|
27 |
|
|
#ifndef RANGEN_H |
28 |
|
|
#define RANGEN_H |
29 |
|
|
|
30 |
|
|
using std::vector; |
31 |
|
|
|
32 |
|
|
class RanGen: public TRandom3{ |
33 |
|
|
public: |
34 |
|
|
|
35 |
|
|
RanGen(Int_t seed=0); |
36 |
|
|
~RanGen(); |
37 |
|
|
|
38 |
|
|
Double_t Gamma(Int_t n, Double_t theta); |
39 |
|
|
vector<Double_t> Dirichlet(Int_t n, vector<Int_t> x); |
40 |
|
|
vector<Int_t> Multinomial(Int_t n, vector<Double_t> p); |
41 |
|
|
Int_t Binomial(Int_t n, Double_t p); |
42 |
|
|
Double_t Beta(const Int_t a, const Int_t b); |
43 |
|
|
|
44 |
|
|
|
45 |
|
|
// private: |
46 |
|
|
|
47 |
|
|
ClassDef(RanGen, 1); |
48 |
|
|
}; |
49 |
|
|
|
50 |
|
|
#endif |