KaliVeda
Toolkit for HIC analysis
KVRandomizor.h
1 
4 #ifndef __KVRandomizor_H
5 #define __KVRandomizor_H
6 
7 #include "TNamed.h"
8 #include <vector>
9 class TRandom3;
10 class TH1;
11 
19 class KVRandomizor : public TNamed {
20 
21 protected:
22  Int_t fNtest;
23  Int_t fNd;
24  Int_t fNdMax;
25 
26  Double_t fVmax;
27  Double_t fVmin;
28  std::vector<Double_t> fMin;
29  std::vector<Double_t> fMax;
30 
31  TH1* FillHisto1D(Int_t);
32  TH1* FillHisto2D(Int_t);
33  TH1* FillHisto3D(Int_t);
34 
35 public:
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.
Definition: KVRandomizor.h:19
virtual Double_t ComputeValue(Double_t *pos)
KVRandomizor(Int_t ndim)
TH1 * Test(Int_t ntimes=1000)
virtual ~KVRandomizor()
Destructor.
void SetRange(Double_t *min, Double_t *max)
Bool_t TestValue(Double_t)
TH1 * FillHisto(Int_t ntimes=1000)
void SetExtrema(Double_t, Double_t vmin=0)
KVRandomizor(const char* name, const char* title);.
std::vector< Double_t > GetPosition()
double min(double x, double y)
double max(double x, double y)