Closed bgrube closed 2 years ago
Hi Matt,
thanks for the hint! Changing the option, with which the AmpToolsInterface is constructed, is a much better approach. It prevents not only the unnecessary creation of the normalization integral interface but also that of the Minuit interface.
Hi Boris,
As an alternative to your change to printAmplitudes.cc could you try this:
remove the resetSource call that you added.
On line 58 change:
AmpToolsInterface ATI(cfgInfo);
to
AmpToolsInterface ATI( cfgInfo, AmpToolsInterface::kPlotGeneration );
I think this will avoid creation of normalization integral interface and then the reset is not needed. This should be much more efficient if one wants to print a few amplitudes.
Thanks again for checking these things. This "bug" was introduced when the NI interface was restructured a few months ago. This moved the data read calls to the constructor and caused the issue you noticed.
Matt