77// other includes
88#include " pugixml.hpp"
99#include " tools/Log.hpp"
10+ #include " njoy/dryad/format/gnds/processExternalFiles.hpp"
1011#include " njoy/dryad/format/gnds/throwExceptionOnWrongNode.hpp"
1112#include " njoy/dryad/format/gnds/createParticleIdentifier.hpp"
1213#include " njoy/dryad/format/gnds/createInteractionType.hpp"
1314#include " njoy/dryad/format/gnds/createReactions.hpp"
15+ #include " njoy/dryad/format/gnds/covariance/createCovarianceData.hpp"
1416#include " njoy/dryad/ProjectileTarget.hpp"
1517
1618namespace njoy {
@@ -27,11 +29,14 @@ namespace gnds {
2729 * @param[in] style the gnds style to process (default is eval)
2830 */
2931 inline ProjectileTarget
30- createProjectileTarget ( const pugi::xml_document& document,
32+ createProjectileTarget ( pugi::xml_document& document,
3133 bool normalise,
3234 const std::string& style = " eval" ) {
3335
36+ processExternalFiles ( document );
37+
3438 auto suite = document.child ( " reactionSuite" );
39+ auto covsuite = document.child ( " covarianceSuite" );
3540
3641 if ( suite ) {
3742
@@ -44,6 +49,10 @@ namespace gnds {
4449 std::vector< Reaction > reactions = createReactions ( projectile, target, suite, normalise, style );
4550
4651 std::optional< dryad::covariance::CovarianceData > covariances = std::nullopt ;
52+ if ( covsuite ) {
53+
54+ covariances = covariance::createCovarianceData ( projectile, target, covsuite );
55+ }
4756
4857 return ProjectileTarget ( std::move ( projectile ), std::move ( target ),
4958 type, std::move ( reactions ), std::move ( resonances ),
0 commit comments