This program must be compiled and executed with Aclic as follows. 
 
 
 
 
#include <iostream>
 
 
 
  return 0.5*Dist;
}
 
   public:
   double Density(
int nDim, 
double * 
x) {
 
   }
 
};
 
 
 
  cout<<"--- kanwa started ---"<<endl;
  TH2D  *
hst_xy = 
new TH2D(
"foam_hst_xy" ,  
"FOAM x-y plot", 50,0,1.0, 50,0,1.0);
 
 
  
  
  
 
   
 
 
  
 
  for(
long loop=0; loop<
nev; loop++){
 
    
    
      
    }
  }
 
  double time = 
w.CpuTime()*1.E9/
nev;
 
  cout << "Time using FOAM \t\t " << "   \t=\t " << time << "\tns/call" << endl;
 
  
  
  cout<<"--- kanwa ended ---"<<endl;
 
  return 0;
}
 
 
 
}
 
   
 
   std::cout << "run unuran " << std::endl;
 
 
   TH2D  *
h1 = 
new TH2D(
"unr_hst_xy" ,  
"UNURAN x-y plot", 50,0,1.0, 50,0,1.0);
 
 
 
 
 
 
 
   
 
 
   
      std::cerr << 
"Error initializing unuran with method " << 
unr.MethodName() << endl;
 
      return -1;
   }
 
   for (
int i = 0; i < 
nev; ++i) {
 
   }
 
   double time = 
w.CpuTime()*1.E9/
nev;
 
   cout << 
"Time using Unuran  " << 
unr.MethodName() << 
"   \t=\t " << time << 
"\tns/call" << endl;
 
   return 0;
}
 
 
  
 
 
 
 
 
 
  std::cout <<"\nChi2 Test Results (UNURAN-FOAM):\t";
  
 
  return 0;
}
#define ClassDef(name, id)
 
ROOT::Detail::TRangeCast< T, true > TRangeDynCast
TRangeDynCast is an adapter class that allows the typed iteration through a TCollection.
 
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t Rectangle_t WindowAttributes_t Float_t r
 
R__EXTERN TSystem * gSystem
 
A 2-Dim function with parameters.
 
Abstract class representing n-dimensional real positive integrand function.
 
TFoam is the main class of the multi-dimensional general purpose Monte Carlo event generator (integra...
 
virtual Int_t Fill(Double_t x)
Increment bin with abscissa X by 1.
 
void Draw(Option_t *option="") override
Draw this histogram with options.
 
2-D histogram with a double per channel (see TH1 documentation)
 
Service class for 2-D histogram classes.
 
Random number generator class based on M.
 
This is the base class for the ROOT Random number generators.
 
virtual int Load(const char *module, const char *entry="", Bool_t system=kFALSE)
Load a shared library.
 
TUnuranMultiContDist class describing multi dimensional continuous distributions.
 
double dist(Rotation3D const &r1, Rotation3D const &r2)