42 for(i = 0 ; i<
nDim ; i++){
79 cout<<
"***** Demonstration Program for Foam version "<<
FoamX->GetVersion()<<
" *****"<<endl;
92 FoamX->Write(
"FoamX");
95 cout <<
"====== Initialization done, entering MC loop" << endl;
100 TH1D *
hst_Wt =
new TH1D(
"hst_Wt" ,
"Main weight of Foam",25,0,1.25);
103 for(loop=0; loop<
NevTot; loop++){
111 cout<<
"MCwt= "<<
MCwt<<
", ";
115 if( ((loop)%100000)==0 ){
116 cout<<
" loop= "<<loop<<endl;
122 cout <<
"====== Events generated, entering Finalize" << endl;
132 cout <<
"================================================================" << endl;
134 cout <<
" Dispersion/<wt>= " <<
Sigma/
AveWt << endl;
135 cout <<
" <wt>/WtMax= " <<
Effic <<
", for epsilon = "<<eps << endl;
136 cout <<
" nCalls (initialization only) = " <<
nCalls << endl;
137 cout <<
"================================================================" << endl;
144 cout <<
"***** End of Demonstration Program *****" << endl;
#define ClassDef(name, id)
ROOT::Detail::TRangeCast< T, true > TRangeDynCast
TRangeDynCast is an adapter class that allows the typed iteration through a TCollection.
A ROOT file is an on-disk file, usually with extension .root, that stores objects in a file-system-li...
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...
1-D histogram with a double per channel (see TH1 documentation)
Random number generator class based on M.
This is the base class for the ROOT Random number generators.
constexpr Double_t Sigma()
Stefan-Boltzmann constant in : .
#define R1(v, w, x, y, z, i)
#define R2(v, w, x, y, z, i)