Toy study not running

Hi Experts,
I am doing some toy study and trying to run over 1000 toys but at some point(after 31 toys), the loop stops. The interesting part is it is not giving any error. So that I can’t able to figure out what is happening.

The macro is attached below.

Thank you
Chandi
totalpdftoyprofile.cc (10.2 KB)

Hello,

From a quick look it looks you are doing a lot of ‘new’ in your loop, did you check memory consumption?

G Ganis

Hi Ganis,

Could you please tell me how to check the memory consumption and how to reduce it?

Cheers
Chandi

Hi Chandi,

You may want to re-read the RooFit documentation and user’s guide.

In first approximation simply moving all the calls to new outside the loop should do the trick.

Cheers,
Philippe.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.