This simple macro demonstrates persistency of FOAM object.
First run macro foam_demo.C to create file foam_demo.root with FOAM object.
Next type root -l foam_demopers.C
from shell command line
{
cout<<"====================== TestVector ================================"<<endl;
cout<<"------------------------------------------------------------------"<<endl;
cout<<"------------------------------------------------------------------"<<endl;
cout<<"------------------------------------------------------------------"<<endl;
fileA.ShowStreamerInfo();
cout<<"------------------------------------------------------------------"<<endl;
fileA.GetListOfKeys()->Print();
cout<<"------------------------------------------------------------------"<<endl;
for(long loop=0; loop<50000; loop++){
if(loop<10) cout<<
"(x,y) = ( "<<
x <<
", "<<
y <<
" )"<<endl;
}
cout<<"===================== TestPers FINISHED ======================="<<endl;
return 0;
}
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...
static TString Format(const char *fmt,...)
Static method which formats a string using a printf style format descriptor and return a TString.
- Author
- Stascek Jadach
Definition in file foam_demopers.C.