26 macroName.
Append(
"/foam/foam_demo.C");
30 cout<<
"====================== TestVector ================================"<<endl;
31 TFile fileA(
"foam_demo.root");
33 cout<<
"------------------------------------------------------------------"<<endl;
35 cout<<
"------------------------------------------------------------------"<<endl;
37 cout<<
"------------------------------------------------------------------"<<endl;
38 fileA.ShowStreamerInfo();
39 cout<<
"------------------------------------------------------------------"<<endl;
40 fileA.GetListOfKeys()->Print();
41 cout<<
"------------------------------------------------------------------"<<endl;
55 for(
long loop=0; loop<50000; loop++){
60 if(loop<10) cout<<
"(x,y) = ( "<<
x <<
", "<<
y <<
" )"<<endl;
67 cout <<
" MCresult= " << MCresult <<
" +- " << MCerror <<endl;
68 cout<<
"===================== TestPers FINISHED ======================="<<endl;
A ROOT file is a suite of consecutive data records (TKey instances) with a well defined format.
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 void CheckAll(Int_t)
User utility, miscellaneous and debug.
virtual void GetMCvect(Double_t *)
User may get generated MC point/vector with help of this method.
virtual void MakeEvent()
User method.
virtual void GetIntegMC(Double_t &, Double_t &)
User method.
virtual void SetRho(TFoamIntegrand *Rho)
User may use this method to set the distribution object.
virtual void Finalize(Double_t &, Double_t &)
May be called optionally by the user after the MC run.
const char * Data() const
TString & Append(const char *cs)
static TString Format(const char *fmt,...)
Static method which formats a string using a printf style format descriptor and return a TString.