Hi,
I observe a severe growing memory usage when using RooWorkspace (RooFit v3.60, ROOT 6.06/02) in a loop. The following code
#include "RooWorkspace.h"
void testworkspace()
{
for (int i=0; i<1000; ++i)
{
if (i%10==0) cout <<i<<endl;
RooWorkspace w("w");
w.factory("a[10,-100,200]");
w.factory("b[20]");
w.factory("prod::N(a,b)"); // comment this line
}
}
finally uses 345 MB of memory. If commenting the line with prod::N, it ends up with only 50MB. Does anybody have an idea what’s going wrong?
Best regards and thanks,
Klaus