17 fNd(ndim), fNdMax(6), fMin(ndim), fMax(ndim)
26 Warning(
"KVRandomizor",
"Too high dimensions (max : %d)", fNdMax);
63 for (
Int_t ii = 0; ii <
fNd; ii += 1) {
78 std::vector<Double_t> pos(
fNd);
79 for (
Int_t ii = 0; ii <
fNd; ii += 1) {
108 Info(
"ComputeValue",
"To be defined in child class");
123 return (prob <= val);
146 Info(
"FillHisto",
"method implemented for dimansion <= 3\nDo nothing ...");
168 for (
Int_t ii = 0; ii < ntimes; ii += 1) {
196 for (
Int_t ii = 0; ii < ntimes; ii += 1) {
224 for (
Int_t ii = 0; ii < ntimes; ii += 1) {
228 h1->
Fill(pos[0], pos[1], pos[2]);
ClassImp(KVPartitionList) void KVPartitionList
Initialisation.
R__EXTERN TRandom * gRandom
char * Form(const char *fmt,...)
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)
virtual ~KVRandomizor()
Destructor.
void SetRange(Double_t *min, Double_t *max)
Bool_t TestValue(Double_t)
TH1 * FillHisto(Int_t ntimes=1000)
std::vector< Double_t > fMin
void SetExtrema(Double_t, Double_t vmin=0)
KVRandomizor(const char* name, const char* title);.
std::vector< Double_t > GetPosition()
virtual Int_t Fill(const char *name, Double_t w)
virtual void Info(const char *method, const char *msgfmt,...) const
virtual Double_t Uniform(Double_t x1, Double_t x2)