-
Notifications
You must be signed in to change notification settings - Fork 23
adding new Reweight calculator for new hA2025 FSI model #42
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
nusense
left a comment
There was a problem hiding this 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
| temp_map[ kXSecTwkDial_CoulombCCQE ] = "CoulombCCQE"; | ||
| temp_map[ kXSecTwkDial_NormCCCOHpi ] = "NormCCCOH"; | ||
| temp_map[ kXSecTwkDial_NormNCCOHpi ] = "NormNCCOH"; | ||
| temp_map[ kXSecTwkDial_ZExpELFF ] = "ZExpELFFCCQE"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Was it intended that kXSecTwkDial_ZExpELFF* be removed when adding kINukehA2025_cex; or are these being excised by accident from working with an outdated version of the code?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
oh sorry these were removed by mistake.
| if ( !fsi_enabled ) { | ||
| LOG( "ReW", pERROR ) << "FSIs are not enabled for the current tune." | ||
| << " Refusing to reweight FSIs."; | ||
| std::exit( 1 ); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If the code is going to exit(1) then the LOG message should be using pFATAL level.
| AlgFactory* algf = AlgFactory::Instance(); | ||
|
|
||
| Algorithm* alg = algf->AdoptAlgorithm( id ); | ||
| fFSIModel = dynamic_cast< HAIntranuke2018* >( alg ); |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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.
src/RwCalculators/GReWeighthA2025.h
Outdated
| Physics changes are considered separately for pions and nucleons. | ||
| Unitarity is explicitly conserved. | ||
| \author Jim Dobson <J.Dobson07 \at imperial.ac.uk> |
There was a problem hiding this comment.
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.
added a new reweigh function for the new hA2025 FSI model.