KaliVeda
Toolkit for HIC analysis
Loading...
Searching...
No Matches
KVRandomizor.h
1
3
4#ifndef __KVRandomizor_H
5#define __KVRandomizor_H
6
7#include "TNamed.h"
8#include <vector>
9class TRandom3;
10class TH1;
11
19class KVRandomizor : public TNamed {
20
21protected:
25
28 std::vector<Double_t> fMin;
29 std::vector<Double_t> fMax;
30
34
35public:
36 KVRandomizor(Int_t ndim);
38
39 void SetExtrema(Double_t, Double_t vmin = 0);
40 void SetRange(Double_t* min, Double_t* max);
41 std::vector<Double_t> GetPosition();
43 virtual Double_t ComputeValue(Double_t* pos);
44
46
47 TH1* FillHisto(Int_t ntimes = 1000);
48 TH1* Test(Int_t ntimes = 1000);
49 virtual ~KVRandomizor();
50
51 ClassDef(KVRandomizor, 1) //Test of generic class to perform sample on fonctions
52};
53
54#endif
int Int_t
bool Bool_t
double Double_t
#define ClassDef(name, id)
Test of generic class to perform sample on functions.
virtual Double_t ComputeValue(Double_t *pos)
std::vector< Double_t > fMax
TH1 * Test(Int_t ntimes=1000)
Double_t fVmin
virtual ~KVRandomizor()
Destructor.
TH1 * FillHisto2D(Int_t)
void SetRange(Double_t *min, Double_t *max)
Bool_t TestValue(Double_t)
TH1 * FillHisto(Int_t ntimes=1000)
std::vector< Double_t > fMin
Double_t fVmax
TH1 * FillHisto3D(Int_t)
TH1 * FillHisto1D(Int_t)
void SetExtrema(Double_t, Double_t vmin=0)
KVRandomizor(const char* name, const char* title);.
std::vector< Double_t > GetPosition()