gundam-organization / gundam

GUNDAM, for Generalized and Unified Neutrino Data Analysis Methods, is a suite of applications which aims at performing various statistical analysis with different purposes and setups.
GNU Lesser General Public License v2.1
13 stars 11 forks source link

Change DatasetManager ownership #457

Closed nadrino closed 6 months ago

nadrino commented 6 months ago

This PR sits on top of the curently pending PR: https://github.com/gundam-organization/gundam/pull/452

In the current main branch, the relation between the Propagator and the DatasetManager libraries is not well defined.

This PR places the DatasetManager lib on top of the Propagator and redefines its main function: filling up the Propagator. A few changes to the CalcXsec app has been made as well.

This update won't affect the old config files. 😄

Having such hierarchy in the code also made the code about 40% faster since the the Propagator object is now lighter.

Here is the new code structure:

Screenshot 2024-03-05 at 19 52 48