KaliVeda  1.12/06
Heavy-Ion Analysis Toolkit
KVRandomizor.h
Go to the documentation of this file.
1 
4 #ifndef __KVRandomizor_H
5 #define __KVRandomizor_H
6 
7 #include "TNamed.h"
8 #include <vector>
9 class TRandom3;
10 class TH1;
11 
18 class KVRandomizor : public TNamed {
19 
20 protected:
24 
27  std::vector<Double_t> fMin;
28  std::vector<Double_t> fMax;
29 
33 
34 public:
35  KVRandomizor(Int_t ndim);
37 
38  void SetExtrema(Double_t, Double_t vmin = 0);
39  void SetRange(Double_t* min, Double_t* max);
40  std::vector<Double_t> GetPosition();
42  virtual Double_t ComputeValue(Double_t* pos);
43 
45 
46  TH1* FillHisto(Int_t ntimes = 1000);
47  TH1* Test(Int_t ntimes = 1000);
48  virtual ~KVRandomizor();
49 
50  ClassDef(KVRandomizor, 1) //Test of generic class to perform sample on fonctions
51 };
52 
53 #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:18
virtual Double_t ComputeValue(Double_t *pos)
KVRandomizor(Int_t ndim)
std::vector< Double_t > fMax
Definition: KVRandomizor.h:28
TH1 * Test(Int_t ntimes=1000)
Double_t fVmin
Definition: KVRandomizor.h:26
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
Definition: KVRandomizor.h:27
Double_t fVmax
Definition: KVRandomizor.h:25
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()