'NUMERIC ALGORITHM TUNING' RooFit tutorial macro #903
Caching of slow numeric integrals and parameterization of slow numeric integrals
Processing /mnt/build/workspace/root-makedoc-v608/rootspi/rdoc/src/v6-08-00-patches/tutorials/roofit/rf903_numintcache.C...
void rf903_numintcache(
Int_t mode=0)
{
if (mode==1) {
if (hhcache) {
new TCanvas(
"rf903_numintcache",
"rf903_numintcache",600,600) ;
}
else {
Error(
"rf903_numintcache",
"Cached histogram is not existing in workspace");
}
}
new TCanvas(
"rf903_numintcache",
"rf903_numintcache",600,600) ;
}
{
if (mode!=2) {
w->
factory(
"EXPR::model('1/((x-a)*(x-a)+0.01)+1/((y-a)*(y-a)+0.01)+1/((z-a)*(z-a)+0.01)',x[-1,1],y[-1,1],z[-1,1],a[-5,5])") ;
}
if (mode==1) {
}
if (mode==2) {
TFile* f = new TFile("rf903_numintcache.root") ;
}
return w ;
}
- Author
- 07/2008 - Wouter Verkerke
Definition in file rf903_numintcache.C.