Skip to content

Conversation

@M7medS3d
Copy link

added a new reweigh function for the new hA2025 FSI model.

@M7medS3d M7medS3d marked this pull request as ready for review August 29, 2025 02:00
@M7medS3d M7medS3d closed this Aug 29, 2025
@M7medS3d M7medS3d reopened this Aug 29, 2025
@M7medS3d M7medS3d closed this Aug 29, 2025
@M7medS3d M7medS3d reopened this Aug 29, 2025
@M7medS3d M7medS3d changed the title H a2025 rw adding new Reweight calculator for new hA2025 FSI model Aug 29, 2025
Copy link
Member

@nusense nusense left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This isn't a full review, but a few concerns that come up upon a semi-cursory look

AlgFactory* algf = AlgFactory::Instance();

Algorithm* alg = algf->AdoptAlgorithm( id );
fFSIModel = dynamic_cast< HAIntranuke2018* >( alg );
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I want to understand what the intent of this code is. Is it to take HAIntranuke2018 to HAIntranuke2025? Is there code to check that the input was generated with HAIntranuke2018?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes, given the FSI issue observed in hA2018, we want to Reweight from hA2018 to hA2025, the above code I think just check if the sample was generated with hA2018.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This code assures us that the requested algorithm is HAIntranuke2018 via the dynamic_cast. But my question was more directed at whether there is (or possibly could be) some check that the data one is reweighting was actually generated with HA2018. That is is there any check to prevent, say, reweighting data that was generated with 2025, but treated as if it were 2018, with the weights 2018->2025? That might not be possible, and it might just come down to vigilance on the part of the user.

Physics changes are considered separately for pions and nucleons.
Unitarity is explicitly conserved.

\author Jim Dobson <J.Dobson07 \at imperial.ac.uk>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Again, a review of the author list.

Copy link
Member

@nusense nusense left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm going to approve this, though I have one outstanding question.

AlgFactory* algf = AlgFactory::Instance();

Algorithm* alg = algf->AdoptAlgorithm( id );
fFSIModel = dynamic_cast< HAIntranuke2018* >( alg );
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This code assures us that the requested algorithm is HAIntranuke2018 via the dynamic_cast. But my question was more directed at whether there is (or possibly could be) some check that the data one is reweighting was actually generated with HA2018. That is is there any check to prevent, say, reweighting data that was generated with 2025, but treated as if it were 2018, with the weights 2018->2025? That might not be possible, and it might just come down to vigilance on the part of the user.

@M7medS3d
Copy link
Author

M7medS3d commented Feb 1, 2026

Thanks a lot Robert for approving that. Regarding your last comment, this is a good question that I think don't have good way to go around. If you have any ideas please let me know.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants